/* ==========================================================================
   Refonte : accueil, sections, FAQ, pages de contenu
   ========================================================================== */
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin-bottom: .4em; }
.section-head p { color: var(--gray); margin: 0; }
.home-section { padding-top: 56px; padding-bottom: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #1d2125 0%, #2d343a 55%, #4a3322 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,27,.82) 0%, rgba(20,24,27,.55) 55%, rgba(20,24,27,.25) 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 80px; max-width: var(--container); }
.hero-kicker { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(232,116,31,.95); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 58px); font-weight: 800; max-width: 820px; margin-bottom: .45em; }
.hero-sub { max-width: 640px; font-size: clamp(16px, 1.6vw, 19px); color: #e6e9eb; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; font-weight: 600; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips .icon { color: #ffb36b; width: 20px; height: 20px; }

/* Univers (catégories) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.tile-media { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--orange-soft), #fff); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 54px; font-weight: 800; color: var(--orange); }
.tile-body { display: block; padding: 14px 16px 16px; }
.tile-body strong { display: block; font-size: 16px; }
.tile-body small { color: var(--gray); }

/* Arguments */
.why { margin-top: 56px; padding: 56px 0; background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.why-card { padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.why-card .icon { width: 34px; height: 34px; color: var(--orange); margin-bottom: 12px; }
.why-card h3 { font-size: 18px; }
.why-card p { margin: 0; color: #4a5056; font-size: 15px; }

/* Rangées produits : en-tête */
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-align: left; margin-bottom: 18px; }
.row-head h2 { margin: 0; font-size: clamp(21px, 2.4vw, 28px); }
.row-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.row-all .icon { width: 18px; height: 18px; }
.home-row { padding-top: 40px; }

/* Étapes */
.steps { margin-top: 56px; padding: 56px 0; background: var(--ink); color: #fff; }
.steps .section-head h2 { color: #fff; }
.steps .section-head p { color: #c9ced2; }
.steps-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.steps-grid li { position: relative; padding: 28px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.steps-grid li span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); font-weight: 800; margin-bottom: 14px; }
.steps-grid h3 { color: #fff; font-size: 19px; }
.steps-grid p { margin: 0; color: #c9ced2; font-size: 15px; }

/* Texte éditorial d'accueil */
.home-intro { background: #fff; padding: 56px 0 8px; }
.home-intro h2 { font-size: clamp(22px, 2.5vw, 30px); margin-top: 1.6em; padding-left: 16px; border-left: 4px solid var(--orange); }
.home-intro h2:first-child { margin-top: 0; }

/* Villes */
.city-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.city-pills a { display: inline-block; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
.city-pills a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* FAQ */
.entry-content details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 12px; padding: 0; }
.entry-content details.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.entry-content details.faq summary::-webkit-details-marker { display: none; }
.entry-content details.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--orange); }
.entry-content details.faq[open] summary::after { content: "–"; }
.entry-content details.faq[open] summary { border-bottom: 1px solid var(--line); }
.entry-content details.faq p { padding: 14px 20px 6px; margin: 0 0 .6em; }

/* Bloc d'appel à l'action */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: var(--radius); background: linear-gradient(120deg, var(--orange), var(--orange-dark)); color: #fff; margin: 40px 0; }
.cta-box h2 { color: #fff; font-size: clamp(21px, 2.4vw, 28px); margin: 0 0 .3em; padding: 0; border: 0; }
.cta-box p { margin: 0; color: #fff3e8; }
.cta-box .btn-primary { background: #fff; color: var(--orange-dark); border-color: #fff; }
.cta-box .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Pages de contenu (solutions, villes, légales) */
.page-hero { margin: 0 0 28px; }
.page-hero img { width: 100%; border-radius: var(--radius); max-height: 440px; object-fit: cover; }
.cp-figure { margin: 1.6em 0; }
.cp-figure img { width: 100%; border-radius: var(--radius); }
.cp-figure figcaption { margin-top: 8px; color: var(--gray); font-size: 14px; text-align: center; }
.page-article .entry-content { max-width: 920px; }
.entry-content .link-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.entry-content .link-list li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.entry-content .callout { padding: 18px 22px; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }

@media (max-width: 860px) {
	.hero-inner { padding-top: 56px; padding-bottom: 52px; }
	.cta-box { flex-direction: column; align-items: flex-start; }
	.row-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 540px) {
	.tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Carrousel des partenaires : défilement continu, pause au survol */
.partners-carousel { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.partners-track { display: flex; width: max-content; animation: partners-scroll 38s linear infinite; }
.partners-carousel:hover .partners-track, .partners-carousel:focus-within .partners-track { animation-play-state: paused; }
.partners-list { display: flex; flex: none; align-items: center; gap: 22px; margin: 0; padding: 0 11px; list-style: none; }
.partners-list li { display: flex; align-items: center; justify-content: center; flex: none; width: 190px; height: 104px; padding: 18px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.partners-list li:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 14px 34px rgba(20, 24, 27, .12); }
.partners-list img { width: auto; max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.partners-list li:hover img { filter: none; opacity: 1; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.partners-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.partners-track { animation: none; }
	.partners-list[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) {
	.partners-list li { width: 150px; height: 88px; padding: 14px 18px; }
	.partners-track { animation-duration: 30s; }
}

/* ==========================================================================
   Boutique sur mobile : grille de produits, catégories repliables, favoris compacts
   ========================================================================== */

/* WooCommerce impose 48 % de largeur aux produits sur petit écran : on garde notre grille. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product { width: auto !important; float: none !important; clear: none !important; margin: 0 !important; }

.sidebar-toggle { display: none; }

@media (max-width: 860px) {
	/* Liste des catégories : un bouton, ouvert à la demande */
	.shop-sidebar .sidebar-title { display: none; }
	.sidebar-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
	.sidebar-toggle span { flex: 1; text-align: left; }
	.sidebar-toggle .icon { width: 20px; height: 20px; color: var(--orange); }
	.sidebar-toggle .icon-chevron { transform: rotate(90deg); transition: transform .2s; color: var(--gray); }
	.shop-sidebar.is-open .sidebar-toggle .icon-chevron { transform: rotate(-90deg); }
	.shop-sidebar .cat-tree { display: none; margin-top: 10px; padding: 4px 16px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
	.shop-sidebar.is-open .cat-tree { display: block; }

	/* Tri et nombre de résultats */
	.woocommerce-result-count { float: none; margin-bottom: 10px; }
	.woocommerce-ordering { float: none; width: 100%; margin-bottom: 18px; }
	.woocommerce-ordering select { width: 100%; }
}

@media (max-width: 560px) {
	ul.products { gap: 10px; }
	ul.products li.product { padding: 10px 10px 12px; border-radius: 12px; }
	.loop-cat { font-size: 11px; letter-spacing: .02em; }
	.woocommerce-loop-product__title { font-size: 13.5px; line-height: 1.35; margin-bottom: 8px; }

	/* Liste de souhaits : juste le cœur, le texte reste lisible par les lecteurs d'écran */
	ul.products .yith-wcwl-add-to-wishlist { margin-top: auto; }
	ul.products .yith-wcwl-add-to-wishlist a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
	ul.products .yith-wcwl-add-to-wishlist a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); }
}
