/* Base commune — composants du site. Les couleurs et polices viennent de brand.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; overflow-x: hidden; font-family: var(--f-body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; letter-spacing: -0.012em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tight { padding-block: clamp(36px, 6vw, 70px); }
.section--mist { background: var(--mist); }
.section--brand { background: var(--brand-deep); color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section--brand .section-head p { color: rgba(255,255,255,.78); }
.lead { font-size: clamp(18px, 2vw, 21px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--brand-deep); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, filter .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { flex: none; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { filter: brightness(1.06); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-deep); }
.btn--accent { background: var(--accent); color: var(--brand-deep); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: rgba(127,127,127,.12); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--sm { padding: 10px 16px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.top__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.top__logo img { height: 40px; max-width: 170px; object-fit: contain; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--mist); }
.nav a.is-new { background: var(--accent); color: var(--brand-deep); }
.nav .btn { margin-left: 8px; }
.burger { display: none; appearance: none; border: 0; background: var(--mist); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; place-items: center; color: var(--ink); }
@media (max-width: 860px) {
  .burger { display: grid; }
  .nav { display: none; position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Cartes & grilles */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.card__body h3 { font-size: 21px; }
.card__body p { color: var(--muted); margin: 0; }
.card__body .btn, .card__body .link { margin-top: auto; justify-self: start; }
.link { font-weight: 700; color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Liste de prestations compactes */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.feature-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--brand); display: grid; place-items: center; }
.feature-list .ico svg { width: 24px; height: 24px; }
.feature-list strong { display: block; font-family: var(--f-display); font-size: 17px; }
.feature-list span { color: var(--muted); font-size: 15px; }

/* Étapes (séquence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 20px; position: relative; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--brand-deep); font-family: var(--f-display); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; font-family: var(--f-display); font-size: 18px; margin-bottom: 4px; }
.steps span { opacity: .8; font-size: 15px; }

/* Bandeau Matériaux (teaser) */
.teaser { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1.1fr 1fr; } }
.teaser__swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.teaser__swatches a { display: block; border-radius: var(--r-lg); overflow: hidden; position: relative; aspect-ratio: 3 / 4; background-size: cover; background-position: center; text-decoration: none; color: #fff; }
.teaser__swatches a span { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.teaser__swatches a:nth-child(2) { transform: translateY(18px); }
.teaser__swatches a:nth-child(3) { transform: translateY(36px); }
.teaser__swatches a:hover { filter: brightness(1.08); }

/* Contact */
.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact__list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.contact__list small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.contact__list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.form > p { color: var(--muted); }
.form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand); }
.form .row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Pied de page */
.foot { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(36px, 6vw, 64px) 0 28px; font-size: 15px; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 13.5px; }
.foot__logo img { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 14px 30px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
body.has-tray .wa-float { bottom: 84px; }

/* Utilitaires */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--brand-deep); font-weight: 700; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; }
.pill--soft { background: rgba(255,255,255,.14); color: #fff; }

/* Garde-fous responsive */
.hero__in > *, .wrap > * { min-width: 0; }

/* ===== Téléphone : plus d'air, moins de bruit ===== */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .top__in { height: 60px; }
  .nav { inset: 60px 0 auto 0; }
  .section { padding-block: 44px; }
  .section--tight { padding-block: 30px; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 27px; }
  .section-head p, .lead { font-size: 16px; }
  .btn { padding: 13px 20px; font-size: 15.5px; }
  .btn-row { display: grid; grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  /* Héros */
  .hero__in { gap: 12px; padding: 34px 0 26px; min-height: 0; }
  .hero h1 { font-size: 36px; line-height: 1.05; }
  .hero__lead { font-size: 15.5px; }
  .hero__q { margin-top: 6px; font-size: 16px; }
  .chooser, .fan { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; justify-self: stretch; width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; grid-template-columns: none; scroll-padding-inline: var(--gutter); }
  .chooser::-webkit-scrollbar, .fan::-webkit-scrollbar { display: none; }
  .chooser a, .fan a { flex: 0 0 150px; scroll-snap-align: start; padding: 16px 12px 13px; }
  .chooser a.is-new, .fan a.is-new { order: -1; }
  .chooser a:last-child, .fan a:last-child { grid-column: auto; }
  .hero__cta { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; margin-top: 4px; }
  .hero__cta .btn { width: 100%; }
  /* Cartes */
  .service { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; }
  .service img { width: 72px; height: 72px; border-radius: 12px; }
  .service h3 { font-size: 17px; }
  .service p { font-size: 14px; }
  .feature-list li { padding: 12px 14px; }
  .card__body { padding: 16px; }
  .metier img { aspect-ratio: 16 / 10; max-height: 240px; }
  .metier__body { padding: 18px 18px 20px; }
  .metier__body h3 { font-size: 22px; }
  .teaser { gap: 22px; }
  .teaser__swatches { gap: 8px; }
  .teaser__swatches a:nth-child(2) { transform: translateY(10px); }
  .teaser__swatches a:nth-child(3) { transform: translateY(20px); }
  .teaser__swatches a span { font-size: 12.5px; padding: 5px 8px; }
  .steps li { padding: 16px; }
  .about__stats { gap: 8px; }
  .about__stats div { padding: 12px 10px; }
  .about__stats strong { font-size: 24px; }
  .contact__list li { padding: 12px 14px; }
  .contact__list a:not(.btn) { font-size: 16px; }
  .form { padding: 18px 16px; }
  .foot { font-size: 14px; }
  .wa-float { right: 14px; bottom: 14px; }
  .mx-hero h1 { font-size: 32px; }
  .mx-hero p { font-size: 16px; }
  .mx-why { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mx-why div { font-size: 13.5px; padding: 10px 12px; }
}
