/*
Theme Name: Meubles Poncet
Theme URI: https://meublesponcet.fr
Author: Agence B2S
Author URI: https://www.agence-b2s.fr
Description: Thème sur mesure pour Meubles Poncet (Bellegarde-en-Forez). Reprend la charte du site d'origine, sans constructeur de pages ni licence. Contenu modifiable avec l'éditeur natif de WordPress et le menu « Meubles Poncet ».
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meubles-poncet
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--red: #d1202f;
	--red-dark: #a91622;
	--accent: #e11b22;
	--ink: #2b2b2b;
	--text: #5c5c5c;
	--muted: #8a8a8a;
	--line: rgba(0, 0, 0, .08);
	--soft: #f6f3f1;
	--white: #fff;
	--radius: 8px;
	--container: 1160px;
	--gutter: 16px;
	--font: "Public Sans", Arial, Helvetica, sans-serif;
	--shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 0, 0, .06);
	--sticky-top: 0px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; margin: 1.4em 0 .6em; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
del { color: var(--muted); }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

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

/* Boutons */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: 600 .95rem/1.2 var(--font); letter-spacing: .01em; text-decoration: none !important; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .wp-block-button__link { background: var(--red); color: #fff; }
.btn-primary:hover, .wp-block-button__link:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: #fff; color: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-block { width: 100%; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { background: var(--red); color: #fff; z-index: 100; position: relative; }
.site-header.is-sticky { position: sticky; top: var(--sticky-top); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 12px; }
.site-logo { display: block; flex: 0 1 705px; line-height: 0; }
.site-logo img { width: 100%; max-width: 705px; height: auto; }
.site-logo-text { font-size: 3rem; font-weight: 300; color: #fff; line-height: 1; letter-spacing: .02em; }
.header-phone {
	display: inline-flex; align-items: center; gap: .35em; color: #fff; white-space: nowrap;
	font-size: 2rem; font-weight: 300; letter-spacing: .03em; margin-top: 18px;
}
.header-phone .icon { width: .7em; height: .7em; opacity: .85; }
.header-phone:hover { color: #fff; text-decoration: none; opacity: .85; }

.menu-toggle { display: none; }

.nav-bar { background: var(--red); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .22); }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 14px 13px; color: #fff; text-transform: uppercase;
	font-size: .9rem; font-weight: 600; letter-spacing: .03em; text-decoration: none; position: relative;
}
.main-nav .menu > li:first-child > a { padding-left: 0; }
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 2px; background: currentColor;
	transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.main-nav .menu > li:first-child > a::after { left: 0; }
.main-nav .menu a:hover { color: #fff; }
.main-nav .menu a:hover::after { transform: scaleX(1); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: #111; }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { transform: scaleX(1); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 6px 6px; display: none; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { color: var(--ink); text-transform: none; font-weight: 400; padding: 8px 16px; }
.main-nav .sub-menu a::after { display: none; }
.nav-phone { display: none; }
.social-link { color: #fff; display: inline-flex; padding: 8px; border-radius: 50%; }
.social-link:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.social-link .icon { width: 18px; height: 18px; }

/* En-tête compact au défilement (ordinateur) : seule la barre de menu reste visible */
.site-header.is-scrolled .nav-bar { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }

/* ==========================================================================
   Contenu
   ========================================================================== */
.site-main { padding-bottom: 56px; }
.page-header { text-align: center; margin: 44px 0 28px; }
.page-title { font-size: 1.9rem; font-weight: 300; text-transform: uppercase; letter-spacing: .08em; margin: 0; color: var(--ink); }
.page-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin: 14px auto 0; border-radius: 2px; }
.page-meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .has-text-align-justify { text-align: justify; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .alignwide { margin-left: auto; margin-right: auto; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content mark { padding: 0 .1em; border-radius: 2px; }
.entry-content mark.has-inline-color { background-color: transparent; }
.entry-content mark[style*="background-color:#"] , .entry-content mark[style*="background-color: #"] { padding: .05em .2em; }
.entry-content .wp-block-image figcaption, .entry-content .wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; }

/* Texte d'accroche des rubriques (anciens « titres 5 ») */
.is-style-accroche, .entry-content p.is-style-accroche {
	font-size: 1.18rem; line-height: 1.55; color: #3d3d3d; font-weight: 500; max-width: 900px; margin-left: auto; margin-right: auto; margin-bottom: .75em;
}
.is-style-slogan {
	font-size: 1.5rem; line-height: 1.35; font-weight: 700; max-width: 900px; margin-left: auto; margin-right: auto;
}

/* Bloc citation / encadré */
.entry-content blockquote, .wp-block-quote { margin: 1.5em 0; padding: .6em 1.2em; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }

/* Tableaux */
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Mentions légales et pages texte : lecture confortable */
body:not(.is-rubrique) .page-article .entry-content { max-width: 860px; margin: 0 auto; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: calc(var(--header-h, 60px) + 16px); }
.entry-content .legal-todo { background: #fff3c4; padding: 0 .2em; }

/* ==========================================================================
   Galeries photo (pages rubriques)
   ========================================================================== */
.entry-content .wp-block-gallery.has-nested-images { gap: 18px; margin: 32px 0 8px; --wp--style--unstable-gallery-gap: 18px; }
.wp-block-gallery.has-nested-images figure.wp-block-image {
	background: #f0f0f0; border: 3px solid #f0f0f0; border-radius: 4px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: box-shadow .25s, transform .25s;
}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transform: translateY(-2px); }
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { aspect-ratio: 6 / 5; height: auto; object-fit: cover; transition: transform .4s; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.has-nested-images figure.wp-block-image a { cursor: zoom-in; display: block; }
/* Légendes : visibles au survol (et dans la visionneuse) */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	opacity: 0; transition: opacity .25s; font-size: .82rem; padding: 18px 8px 6px;
	background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image:focus-within figcaption { opacity: 1; }
@media (hover: none) {
	.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
	.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
		width: calc(33.333% - var(--wp--style--unstable-gallery-gap, 16px) * .667);
	}
}

/* Visionneuse photo */
.lightbox {
	position: fixed; inset: 0; z-index: 1000; background: rgba(12, 12, 12, .94);
	display: flex; align-items: center; justify-content: center; flex-direction: column;
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { margin: 0; max-width: 92vw; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #222; }
.lightbox-caption { color: #fff; text-align: center; font-size: 1rem; margin-top: 12px; min-height: 1.5em; }
.lightbox-count { color: rgba(255, 255, 255, .6); font-size: .85rem; margin-left: .6em; }
.lightbox button {
	position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button svg { width: 28px; height: 28px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.has-lightbox { overflow: hidden; }

/* Bandeau d'appel en bas des rubriques */
.cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin: 56px 0 0; padding: 28px 32px; border-radius: var(--radius); color: #fff;
	background: linear-gradient(120deg, var(--red) 0%, #b7172a 100%);
}
.cta-title { font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; color: #fff; }
.cta-sub { margin: 0; opacity: .92; font-size: .95rem; }
.cta-sub .icon { margin-right: .2em; }
.cta-sep { margin: 0 .6em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero { margin-top: 28px; }
.slider { position: relative; overflow: hidden; }
.hero .slider { aspect-ratio: 2 / 1; background: #eee; border-radius: 2px; }
.slider-track { position: relative; width: 100%; height: 100%; }
.hero .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.hero .slide.is-active { opacity: 1; z-index: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-arrow {
	position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .78); color: var(--ink); display: flex; align-items: center; justify-content: center;
	cursor: pointer; opacity: 0; transition: opacity .25s, background .2s; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.slider-arrow svg { width: 26px; height: 26px; }
.slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .6); cursor: pointer; box-shadow: 0 0 3px rgba(0, 0, 0, .4); transition: background .2s, transform .2s; }
.slider-dots button.is-active { background: #fff; transform: scale(1.25); }
@media (hover: none) { .slider-arrow { opacity: 1; } }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.home-grid > :only-child { grid-column: 1 / -1; }

/* Onglets (même allure que l'ancien site : rouge, arrondi, brillant) */
.tab-list { display: flex; gap: 4px; padding-left: 6px; }
.tab-list [role="tab"] {
	display: inline-flex; align-items: center; gap: .45em; padding: 10px 20px; border: 0; cursor: pointer;
	font: 600 .92rem/1.3 var(--font); text-transform: uppercase; letter-spacing: .04em; color: #fff;
	background: linear-gradient(180deg, #e2505c 0%, var(--red) 50%, #b81826 100%);
	border-radius: var(--radius) var(--radius) 0 0; opacity: .72; transition: opacity .2s;
}
.tab-list [role="tab"] .icon { width: 16px; height: 16px; }
.tab-list [role="tab"][aria-selected="true"] { opacity: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.tab-list [role="tab"]:hover { opacity: 1; }
.tab-panel {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05); color: #333;
}
.tab-panel[hidden] { display: none; }
.tab-panel img { display: block; margin: 0 auto; border-radius: 4px; }
.tab-panel > *:last-child { margin-bottom: 0; }

/* Bonnes affaires */
.deals { border-radius: 6px; }
.deals .slider-track { display: grid; }
.deals .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.deals .slide.is-active { opacity: 1; visibility: visible; }
.deal-media { position: relative; border-radius: 6px; overflow: hidden; background: #f3f3f3; }
.deal-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.deal-badge {
	position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 1rem;
	padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.deal-body { text-align: center; padding: 14px 6px 4px; }
.deal-title { font-size: 1.08rem; margin: 0 0 6px; color: var(--ink); }
.deal-text { font-size: .92rem; color: var(--text); margin: 0 0 6px; }
.deal-price { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.deal-old { color: var(--muted); font-size: 1rem; }
.deal-new { color: var(--red); font-size: 1.5rem; font-weight: 700; }
.deals .slider-arrow { top: calc(50% - 50px); }
.deals .slider-dots { position: static; margin-top: 12px; }
.deals .slider-dots button { background: #d6d6d6; box-shadow: none; }
.deals .slider-dots button.is-active { background: var(--red); }

.home-welcome { padding-top: 46px; font-size: 1.02rem; }
.home-welcome h2 { margin-top: 0; font-size: 1.5rem; font-weight: 600; color: var(--red); }
.home-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ==========================================================================
   Contact
   ========================================================================== */
#formulaire, .contact-form { scroll-margin-top: calc(var(--header-h, 60px) + 16px); }
.contact-intro { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.contact-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
.contact-form .field { margin: 0 0 16px; }
.contact-form label { display: block; font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: 5px; }
.contact-form .req { color: var(--red); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
	width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); padding: 11px 13px;
	border: 1px solid #cfcfcf; border-radius: 6px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(209, 32, 47, .15); }
.contact-form .has-error input, .contact-form .has-error textarea { border-color: var(--red); }
.contact-form .field-error { display: block; color: var(--red); font-size: .85rem; margin-top: 4px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form .form-legal { font-size: .82rem; color: var(--muted); }
.contact-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; }
.notice-success { background: #e8f6ec; color: #1d6b34; border: 1px solid #b9e2c4; }
.notice-error { background: #fdecee; color: #a01523; border: 1px solid #f3c1c6; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 24px 26px; }
.contact-card h2 { font-size: 1.15rem; margin: 0 0 14px; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.contact-list .icon { color: var(--red); width: 20px; height: 20px; margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-map { height: 380px; margin-top: 44px; border-radius: var(--radius); overflow: hidden; background: #e9e6e2; z-index: 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 36px; font-size: .9rem; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 32px; }
.footer-name { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); margin-bottom: 16px; max-width: 220px; }
.footer-name:hover { color: var(--red); text-decoration: none; }
.footer-title { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--text); margin: 0 0 14px; }
.footer-title--spaced { margin-top: 26px; }
.footer-text { line-height: 1.75; }
.footer-text p { margin: 0 0 .6em; }
.footer-menu { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.footer-menu a, .footer-links a { color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.footer-copy { font-size: .82rem; color: var(--muted); }
.footer-copy a { color: var(--muted); }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partners img { max-height: 80px; width: auto; max-width: 150px; filter: grayscale(.15); transition: filter .2s; }
.partners a:hover img { filter: none; }

.back-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
	background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s, visibility .25s, transform .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--red-dark); }

/* Articles / archives (non utilisés aujourd'hui, prêts au besoin) */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.post-card img { border-radius: 6px; }
.post-card h2 { font-size: 1.2rem; margin: .8em 0 .4em; }
.menu-404 { columns: 2; }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1080px) {
	.header-phone { font-size: 1.6rem; }
	.main-nav .menu a { padding: 13px 9px; font-size: .84rem; }
	.main-nav .menu > li > a::after { left: 9px; right: 9px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Mobile : menu repliable, téléphone cliquable
   ========================================================================== */
@media (max-width: 900px) {
	.header-top { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.site-logo { flex: 1 1 auto; min-width: 0; }
	.site-logo img { max-height: 54px; width: auto; max-width: 100%; }
	.header-phone {
		margin: 0; font-size: 0; width: 42px; height: 42px; border-radius: 50%; justify-content: center;
		background: rgba(255, 255, 255, .16); flex: none;
	}
	.header-phone span { display: none; }
	.header-phone .icon { width: 20px; height: 20px; opacity: 1; }
	.menu-toggle {
		display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px;
		border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
	}
	.menu-toggle .icon { width: 24px; height: 24px; }
	.menu-toggle .icon-close, .menu-open .menu-toggle .icon-menu { display: none; }
	.menu-open .menu-toggle .icon-close { display: block; }

	.nav-bar { display: none; border-top: 1px solid rgba(255, 255, 255, .22); max-height: calc(100vh - 70px); overflow-y: auto; }
	.menu-open .nav-bar { display: block; }
	.nav-inner { flex-direction: column; align-items: stretch; border-top: 0; padding-bottom: 14px; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu a, .main-nav .menu > li:first-child > a { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.main-nav .menu > li > a::after { display: none; }
	.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #fff; background: rgba(0, 0, 0, .14); padding-left: 12px !important; }
	.main-nav .sub-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
	.main-nav .sub-menu a { color: #fff; }
	.nav-phone {
		display: flex; align-items: center; justify-content: center; gap: .5em; margin-top: 14px; padding: 12px; border-radius: 999px;
		background: #fff; color: var(--red); font-weight: 700; font-size: 1.1rem;
	}
	.nav-phone:hover { color: var(--red-dark); text-decoration: none; }
	.social-link { align-self: center; margin-top: 8px; }

	.page-header { margin: 30px 0 22px; }
	.page-title { font-size: 1.5rem; }
	.hero { margin-top: 16px; padding: 0; }
	.hero .slider { border-radius: 0; }
	.home-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
	.home-welcome { padding-top: 0; }
	.contact-grid { grid-template-columns: 1fr; }
	.cta-band { padding: 24px; }
	.is-style-accroche, .entry-content p.is-style-accroche { font-size: 1.06rem; }
	.is-style-slogan { font-size: 1.25rem; }
}

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	.contact-form .form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 26px; }
	.tab-list [role="tab"] { padding: 9px 13px; font-size: .82rem; }
	.cta-actions, .cta-actions .btn, .home-cta .btn { width: 100%; }
	.cta-sep { display: block; height: 0; overflow: hidden; }
	.lightbox-prev, .lightbox-next { top: auto !important; bottom: 18px; transform: none !important; }
	.lightbox-img { max-height: 72vh; }
	.contact-map { height: 300px; }
	.menu-404 { columns: 1; }
}
