/* La Valaisanne du Carrelage — feuille de style unique, sans dépendances */
:root {
  --red: #d7262e;
  --red-dark: #a8191f;
  --ink: #1b1c20;
  --ink-2: #33363d;
  --muted: #646872;
  --stone: #f5f1ec;
  --stone-2: #ebe5dd;
  --line: #e3ddd4;
  --white: #fff;
  --star: #f5a623;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 25, .06), 0 8px 28px rgba(20, 20, 25, .08);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: #c9cbd1; }
.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(--red); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 40px; }
.muted { color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--stone); color: var(--ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.topbar { background: var(--ink); color: #c9cbd1; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar span + span::before { content: "·"; margin: 0 10px; opacity: .5; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { width: 140px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .has-sub { position: relative; }
.nav .has-sub > button::after { content: ""; display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 3px 8px; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -8px; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 10px 12px; font-weight: 600; }
.sub a:hover { background: var(--stone); }
.header-cta { flex: none; padding: 11px 20px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Fil d'Ariane */
.crumbs { font-size: .88rem; color: var(--muted); padding: 14px 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* Héros */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,14,18,.88) 0%, rgba(14,14,18,.66) 48%, rgba(14,14,18,.22) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 128px); }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: #ff8a8f; }
.hero .lead { color: #e2e3e7; font-size: 1.2rem; }
.hero .btns { margin-top: 28px; }
.hero--small .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero--small h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding: 0; list-style: none; font-size: .95rem; color: #e2e3e7; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: #ff8a8f; flex: none; }
.trust .stars { color: var(--star); letter-spacing: 1px; }

/* Cartes services */
.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); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,20,25,.06), 0 18px 40px rgba(20,20,25,.14); color: inherit; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__more { margin-top: auto; font-weight: 700; color: var(--red-dark); display: inline-flex; align-items: center; gap: 6px; }
.card__more::after { content: "→"; transition: transform .2s; }
a.card:hover .card__more::after { transform: translateX(4px); }
.card--cta { background: var(--ink); color: #c9cbd1; justify-content: center; }
.card--cta .card__body { justify-content: center; }
.card--cta h3 { color: #fff; font-size: 1.5rem; }
.card--cta p { color: #c9cbd1; }
.card--cta .card__more { color: #ff8a8f; }

/* Atouts */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.split__badge { position: absolute; left: -14px; bottom: 24px; background: var(--red); color: #fff; border-radius: 12px; padding: 14px 18px; font-weight: 700; box-shadow: var(--shadow); max-width: 230px; line-height: 1.35; }
.split__badge strong { display: block; font-size: 1.6rem; }
.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat; margin-top: 2px; }
.checks strong { color: var(--ink); display: block; }
.section--dark .checks strong { color: #fff; }

/* Vidéo verticale : recadrée en 3:4 pour masquer les bandes noires */
.video { max-width: 420px; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--stone-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: .3s; }
.gallery a:hover::after { background: rgba(0,0,0,.12); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery [hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .92rem; margin: 0; padding: 0 20px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Avis Google */
.reviews { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.rating { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; }
.rating__g { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.rating__g svg { width: 22px; height: 22px; }
.rating__score { font-size: 3.6rem; font-weight: 800; color: var(--ink); line-height: 1; margin: 14px 0 6px; }
.stars { color: var(--star); font-size: 1.25rem; letter-spacing: 2px; }
.rating .btn { width: 100%; margin-top: 12px; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: 12px 0 18px; color: var(--ink-2); font-size: 1rem; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }

/* Étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: 2.4rem; font-weight: 800; color: var(--red); line-height: 1; }
.steps h3 { color: #fff; }

/* Zones */
.zones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.zones li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .93rem; font-weight: 600; color: var(--ink); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* Bandeau CTA */
.cta { background: var(--red); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #ffe3e4; font-size: 1.1rem; }

/* Contenu rédactionnel */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose ol > li::marker { font-weight: 700; color: var(--red); }
.prose li > h2 { font-size: 1.25rem; margin-top: 1em; }
.prose img { border-radius: var(--radius); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.box { background: var(--stone); border-radius: var(--radius); padding: 26px; }
.box h3 { font-size: 1.15rem; }
.box ul { list-style: none; padding: 0; margin: 0; }
.box li + li { border-top: 1px solid var(--line); }
.box li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.box li a:hover { color: var(--red); }
.box--red { background: var(--ink); color: #c9cbd1; }
.box--red h3 { color: #fff; }
.box--red .btn { width: 100%; margin-top: 8px; }

/* Blog */
.post-card time { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 6px; }
.post-card h3 { font-size: 1.12rem; }
.post-head { max-width: 860px; }
.post-meta { color: var(--muted); font-size: .95rem; }
.post-cover { border-radius: var(--radius); margin: 28px 0 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfc8bf; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(215,38,46,.18); }
.hp { position: absolute; left: -5000px; }
.form small { color: var(--muted); display: block; margin-top: 12px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert--err { background: #fde8e8; color: #8a1116; }
.info { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.info li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--stone); display: grid; place-items: center; color: var(--red); }
.info .ico svg { width: 20px; height: 20px; }
.info strong { display: block; color: var(--ink); }
.info a { color: var(--ink-2); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); display: block; background: var(--stone-2); }

/* Pied de page */
.footer { background: #141518; color: #a9acb4; padding: 64px 0 0; font-size: .95rem; }
.footer a { color: #d9dbe0; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h2 { font-size: 1rem; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; }
.footer__logo img { width: 150px; margin-bottom: 16px; }
.footer__bottom { border-top: 1px solid #2a2c31; margin-top: 48px; padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; }

/* Barre d'appel mobile */
.callbar { display: none; }

@media (max-width: 1080px) {
  .nav > ul { gap: 0; }
  .nav a, .nav button { padding: 10px 8px; font-size: .93rem; }
  .header-cta { display: none; }
  .review-list { grid-template-columns: 1fr 1fr; }
  .review-list .review:nth-child(3) { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  body { font-size: 16.5px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; padding: 12px 20px 120px; overflow-y: auto; margin: 0; display: none; }
  .menu-open .nav { display: block; }
  .menu-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; text-align: left; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .split, .layout, .contact, .reviews { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__badge { left: 12px; }
  .aside { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .rating { display: grid; grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-weight: 700; text-decoration: none; color: #fff; background: var(--ink); }
  .callbar a + a { background: var(--red); }
  .callbar svg { width: 18px; height: 18px; }
  .footer { padding-bottom: 60px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid--3, .grid--2, .grid--4, .review-list { grid-template-columns: 1fr; }
  .review-list .review:nth-child(3) { display: flex; }
  .gallery, .gallery--3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar .hide-xs { display: none; }
  .hero .btn { width: 100%; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 40px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
