/* =====================================================================
   Accueil : application stricte du SYSTÈME GRAPHIQUE WAYNE (voir styles.css, charte.html)
   Grille 12 colonnes, échelle typo unique, arrondis 28 / 20 / 12 / pilule,
   chiffres suisses, verre seulement sur photo, rythme --s-xl / --s-lg / --s-md.
   ===================================================================== */

/* ---------- Rythme vertical régulier ---------- */
body[data-page="home"] main > section.section { padding: var(--s-lg) 0; }
body[data-page="home"] main > section.section-tight { padding: var(--s-md) 0; }
body[data-page="home"] main > section.facts { padding: var(--s-lg) 0 var(--s-md); }
body[data-page="home"] main > section.services-photos { padding-top: var(--s-md); }

/* ---------- En-tête de section : texte à gauche, sans liseré ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head > .label { flex-basis: 100%; color: var(--muted); }
.sec-head > .h2, .sec-head > div:not([class]) .h2 { max-width: 20ch; }
.facts-head.sec-head > .facts-since { font-size: 13.5px; }
.facts-head .accent { color: var(--accent); }

/* ---------- Héros : cadre 28, barre de recherche en verre clair (sur photo) ---------- */
.hero-frame { border-radius: var(--r-frame); }
.hero-frame .estimate-bar { background: var(--glass-light); border: 1px solid var(--glass-light-line); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-radius: var(--r-pill); }
.hero-frame .estimate-bar input { border-radius: 0; }

/* ---------- Chiffres : cartes 20, chiffres suisses ---------- */
.fact-card { border-radius: var(--r-card); box-shadow: none; }
.fact-card.is-open { box-shadow: none; border-color: var(--ink); }
.fact-card:has([data-tone="night"]).is-open { border-color: var(--accent); }
.fact:focus-visible { border-radius: var(--r-card); }
.fact-title { font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.fact-value { font-weight: 400; letter-spacing: -0.06em; line-height: .9; }
.fact-note { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; opacity: .7; }
.fact-detail { border-radius: calc(var(--r-card) - 6px); }
.fact-plus { opacity: .3; }
.fact-card, .fact-reading, .fact-detail { transition-duration: var(--t-slow); }

/* ---------- Biens en vedette : images 20, pas d'ombre ---------- */
.featured-row .listing-media { border-radius: var(--r-card); }
.featured-row .chip { border-radius: var(--r-pill); }
.featured-more { margin-top: var(--s-md); }

/* ---------- Services : tuiles photo 20, verre seulement pour la flèche (sur photo) ---------- */
.bento { gap: var(--g); }
.tile { border-radius: var(--r-card); transition: transform var(--t-mid) var(--ease); }
.tile h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; }
.tile p { font-size: 14.5px; line-height: 1.5; }

/* ---------- Promotions : cartes 20, une seule interaction (le carrousel) ---------- */
.sec-promos .fan-stage { padding-top: 8px; }
.fan-card { border-radius: var(--r-card); }
.fan-facts small { font-size: 11px; letter-spacing: .08em; }

/* ---------- Méthode : liste suisse sur filets, sans cartes ni pastilles ---------- */
.split-sticky .sticky > .label { display: block; margin-bottom: 18px; }
.steps { gap: 0; counter-reset: step; }
.step { counter-increment: step; grid-template-columns: 72px 1fr 40px; gap: 18px; padding: 26px 0; border-radius: 0; background: none; border: 0; transition: background-color var(--t-fast); }
.step::before { content: counter(step, decimal-leading-zero); grid-column: 1; grid-row: 1; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -0.06em; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.step > div:last-child { grid-column: 2; grid-row: 1; }
.step-icon { grid-column: 3; grid-row: 1; width: auto; height: auto; border-radius: 0; background: none; color: var(--muted); justify-self: end; }
.step-icon i { font-size: 22px; }
.step h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.025em; }
.step p { font-size: 15px; line-height: 1.55; }
@media (max-width: 640px) { .step { grid-template-columns: 52px 1fr; } .step-icon { display: none; } }

/* ---------- Avis : note en chiffre suisse, cartes 20 ---------- */
.rating-badge { gap: 16px; padding: 0; border: 0; border-radius: 0; background: none; align-items: flex-end; }
.rating-badge .num { color: var(--ink); }
.rating-meta { display: grid; gap: 6px; padding-bottom: 4px; }
.rating-meta .stars { color: var(--ink); font-size: 13px; display: inline-flex; gap: 2px; }
.rating-badge > .ph-arrow-up-right { padding-bottom: 6px; color: var(--muted); transition: transform var(--t-fast) var(--ease), color var(--t-fast); }
.rating-badge:hover > .ph-arrow-up-right { color: var(--accent); transform: translate(2px, -2px); }
.review-card { border-radius: var(--r-card); }

/* ---------- Appel final : cadre 28, bleu Wayne plein, sans halo ni dégradé ---------- */
.cta-panel { border-radius: var(--r-frame); background: var(--accent); color: #fff; }
.cta-panel::after { display: none; }
.cta-panel .label { color: rgba(255, 255, 255, .7); display: block; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  .step, .tile, .rating-badge > .ph-arrow-up-right { transition: none; }
}

/* ---------- Chiffres : que des lignes noires, et un fond bleu pour la carte ouverte (2.12.2026) ---------- */
.fact-card, .fact-card:has([data-tone="night"]), .fact-card:has([data-tone="soft"]) { background: transparent; border: 1px solid var(--ink); }
.fact-card .fact, .fact-card .fact[data-tone="night"] { color: var(--ink); transition: color var(--t-mid); }
.fact-card { transition-property: flex-grow, height, background-color, border-color; }
.fact-card.is-open, .fact-card.is-open:has([data-tone]) { background: #0f2d7a; border-color: #0f2d7a; }
.fact-card.is-open .fact, .fact-card.is-open .fact[data-tone="night"] { color: #fff; }
.fact-card.is-open .fact:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.fact-plus { opacity: 1; }
.fact-copy, .fact-card:has([data-tone="soft"]) .fact-copy, .fact-map { background: transparent; color: #fff; }
.fact-credit, .fact-map p { color: rgba(255, 255, 255, .7); }
.fact-stars { color: #fff; }
.fact-map img, :root .fact-map img { filter: invert(1) !important; mix-blend-mode: screen; }
.fact-map { background: #0f2d7a; }
/* Projets neufs : photo remontée dans son cadre, le couple au centre */
.tile-photo.t-d img { object-position: center 72%; }

/* ---------- Biens en vedette : roue sans fin, largeur du site, bords en fondu, tuiles qu'on saisit (2.12.2026) ---------- */
.featured-grid.featured-row { --fr-fade: 56px; display: block; overflow: hidden; margin-inline: 0; padding: 14px 0 10px; scroll-snap-type: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fr-fade), #000 calc(100% - var(--fr-fade)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fr-fade), #000 calc(100% - var(--fr-fade)), transparent 100%); }
.fr-track { display: flex; gap: 20px; will-change: transform; }
.fr-set { display: grid; grid-auto-flow: column; gap: 20px; flex: none; grid-auto-columns: calc((var(--fr-w, 1200px) - 2 * var(--fr-fade) - 60px) / 4); }
.fr-set > * { min-width: 0; }
.featured-row .listing { transition: transform var(--t-mid) var(--ease) !important; }
.featured-row .listing:hover { transform: translateY(-8px) !important; }
.featured-row .listing-media img { -webkit-user-drag: none; }
.featured-row.is-dragging, .featured-row.is-dragging .listing { cursor: grabbing; }
.featured-row.is-dragging .listing:hover { transform: none !important; }
.fr-arrow:disabled { opacity: 1; cursor: pointer; }
@media (max-width: 1100px) { .fr-set { grid-auto-columns: calc((var(--fr-w, 900px) - 2 * var(--fr-fade) - 40px) / 3); } }
@media (max-width: 760px) { .featured-grid.featured-row { --fr-fade: 20px; } .fr-track, .fr-set { gap: 14px; } .fr-set { grid-auto-columns: calc(var(--fr-w, 360px) * .76); } }

/* ---------- Avis clients : note sur fond bleu + un avis en grand dans un cadre au trait noir (2.12.2026) ---------- */
.av-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: 20px; align-items: stretch; }
.av-score { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-frame); background: var(--accent); color: #fff; min-height: clamp(300px, 28vw, 400px); transition: transform var(--t-mid) var(--ease); }
.av-score:hover { transform: translateY(-4px); }
.av-score-top { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.av-score .stars { display: inline-flex; gap: 4px; color: #fff; }
.av-score-num { font-size: clamp(5rem, 9vw, 8.5rem); font-weight: 400; letter-spacing: -0.07em; line-height: .85; margin-top: auto; }
.av-score-num small { font-size: .3em; letter-spacing: -0.02em; margin-left: .15em; opacity: .75; }
.av-score-cap { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.av-quote { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 3vw, 48px); border-radius: var(--r-frame); border: 1px solid var(--ink); }
.av-text { margin: 0; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.28; letter-spacing: -0.025em; color: var(--ink); max-width: 34em; text-wrap: pretty; transition: opacity .26s var(--ease), transform .26s var(--ease); }
.av-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.av-who { display: grid; gap: 4px; transition: opacity .26s var(--ease); }
.av-who b { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.av-who small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.av-quote.is-out .av-text { opacity: 0; transform: translateY(8px); }
.av-quote.is-out .av-who { opacity: 0; }
.av-nav { display: flex; align-items: center; gap: 10px; }
.av-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
.av-count b { color: var(--ink); font-weight: 500; }
.av-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.av-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
@media (max-width: 860px) {
  .av-grid { grid-template-columns: 1fr; }
  .av-score { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; }
  .av-score-top { order: 2; margin-left: auto; }
  .av-score-num { font-size: 4.4rem; margin-top: 0; }
  .av-score-cap { order: 3; flex-basis: 100%; }
  .av-quote { min-height: 340px; }
}

/* ---------- Avis clients, version à plusieurs avis : note bleue + six tuiles au trait noir (2.12.2026) ---------- */
.av-grid { grid-template-columns: minmax(240px, 1fr) 3.2fr; }
.av-score { min-height: 0; }
.av-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.av-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 18px; min-height: 236px; height: 100%; padding: 22px 22px 20px; border-radius: var(--r-card); border: 1px solid var(--ink); color: var(--ink); transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.av-card:hover { transform: translateY(-4px); }
.av-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.av-card-top { display: flex; align-items: center; justify-content: space-between; }
.av-n { font-size: 11.5px; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.av-card .stars { display: inline-flex; gap: 3px; font-size: 13px; color: var(--accent); }
.av-body { font-size: 15.5px; line-height: 1.45; letter-spacing: -0.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.av-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.av-card-foot > span { display: grid; gap: 3px; }
.av-card-foot b { font-size: 15px; font-weight: 500; }
.av-card-foot small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.av-card-foot > i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 14px; flex: none; transition: transform var(--t-mid) var(--ease); }
.av-card.is-short .av-card-foot > i { display: none; }
.av-card.is-short { cursor: default; }
.av-card.is-open { background: var(--accent); border-color: var(--accent); color: #fff; }
.av-card.is-open .av-body { display: block; }
.av-card.is-open .stars, .av-card.is-open .av-n, .av-card.is-open small { color: #fff; }
.av-card.is-open .av-card-foot > i { transform: rotate(45deg); }
@media (max-width: 1100px) { .av-grid { grid-template-columns: 1fr; } .av-score { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; } .av-score-top { order: 2; margin-left: auto; } .av-score-num { font-size: 4.6rem; margin-top: 0; } .av-score-cap { order: 3; flex-basis: 100%; } }
@media (max-width: 760px) {
  .av-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter, 20px)); padding-inline: var(--gutter, 20px); scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none; align-items: stretch; }
  .av-list::-webkit-scrollbar { display: none; }
  .av-card { flex: 0 0 82%; scroll-snap-align: start; height: auto; }
}
