/*
Theme Name: Artisans Alsaciens – Parquet
Theme URI: https://artisans-alsaciens.fr/
Author: Les Compagnons Alsaciens
Description: Thème sur mesure, léger et sans dépendance, pour un artisan parqueteur : restauration, pose, ponçage et vitrification de parquet à Paris.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL v2 or later
Text Domain: artisans-alsaciens
*/

/* ---------- Variables ---------- */
:root {
  --ink: #1f1a15;
  --ink-soft: #4a4139;
  --muted: #776b60;
  --oak: #a8692f;
  --oak-dark: #87511f;
  --oak-light: #e9d6bf;
  --cream: #f8f3ec;
  --paper: #fffdf9;
  --line: #e6dccf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 26, 21, .08);
  --max: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink-soft); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oak-dark); text-underline-offset: 3px; }
a:hover { color: var(--oak); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: #d9cfc4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oak); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--oak); color: #fff; }
.btn--primary:hover { background: var(--oak-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { flex-shrink: 0; white-space: nowrap; display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); font-weight: 700; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { white-space: nowrap; display: block; padding: 8px 9px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .94rem; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { background: var(--cream); color: var(--oak-dark); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .header-cta .btn { display: none; }
}
@media (max-width: 480px) { .header-phone { display: none; } }
@media (min-width: 1241px) and (max-width: 1420px) { .header-phone { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.55) 55%, rgba(20,16,12,.88) 100%); }
.hero__content { padding: 120px 0 72px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--oak-light); }
.hero p { font-size: 1.2rem; color: #efe6db; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Bandeau confiance ---------- */
.trust { background: var(--ink); color: #e9dfd3; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; flex-direction: column; }
.trust strong { font-family: var(--serif); color: #fff; font-size: 1.3rem; }
.trust span { font-size: .9rem; color: #bfb2a4; }
@media (max-width: 760px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card__link::after { content: " →"; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink); }
.section--dark .chips li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #eee3d6; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--oak-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2387511f' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2rem; color: var(--oak-light); margin-bottom: 8px; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Avant / après ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; user-select: none; background: #ddd; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(20,16,12,.7); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba-caption { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,12,9,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--oak); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--oak-dark), var(--oak)); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #f6e9da; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--cream); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .3em; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.entry { padding: clamp(40px, 6vw, 72px) 0; }
.entry > .container > * { max-width: 820px; }
.entry > .container > .wide, .entry > .container > .alignwide, .entry > .container > .alignfull { max-width: none; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.3em; }
.entry img { border-radius: 12px; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.entry .wide { margin: 2em 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oak); font-weight: 700; margin-top: 16px; }
.contact-card dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }
.contact-card dd a { color: var(--ink); text-decoration: none; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d6c9b9; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 3px rgba(168,105,47,.18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 16px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e7f4e8; color: #1f5d2a; }
.notice--err { background: #fbeaea; color: #8a2020; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- Pied de page ---------- */
.site-footer { background: #17130f; color: #b9ab9c; padding: 64px 0 28px; font-size: .95rem; }
.site-footer h2 { font-size: 1.05rem; color: #fff; font-family: var(--sans); letter-spacing: .04em; }
.site-footer a { color: #e2d6c8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* ---------- Bouton d'appel mobile ---------- */
.call-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 8px; background: var(--oak); color: #fff; padding: 14px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.25); font-weight: 700; text-decoration: none; }
.call-fab svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .call-fab { display: inline-flex; } body { padding-bottom: 76px; } }

/* ---------- Divers ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition: none !important; } }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-block-image img { border-radius: 12px; }
