/* Francis Beauchemin, site preview. Shared styles for every page.
   Look approved 2026-11-15 (../DESIGN.md "Look: from Mathieu's references", "Look approved").
   Flat and sober: one ground, one ink, one accent; no gradient, glow, blur or shadow. */
:root{
  --ground:#ffffff;
  --band:#f4f4f2;
  --ink:#222222;
  --muted:#555555;
  --dark:#111111;
  --accent:#1f2a44;
  --accent-hover:#2c3a5c;
  --line:#d9d9d6;
  --radius:6px;
  --wrap:1200px;
  --gutter:48px;
  --hero-gutter:72px;
  --header:96px;
  --font:"Work Sans", Arial, sans-serif;
}
*{box-sizing:border-box}
html{overflow-x:clip;-webkit-text-size-adjust:100%}
body{margin:0;overflow-x:clip;background:var(--ground);color:var(--ink);font:400 17px/1.6 var(--font)}
img,video{max-width:100%}
a{color:inherit}
p{margin:0 0 16px}
.wrap{width:100%;max-width:calc(var(--wrap) + 2*var(--gutter));margin:0 auto;padding:0 var(--gutter)}
:focus-visible{outline:3px solid #8fb3ff;outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0;background:#fff;color:var(--dark);padding:12px 16px;z-index:50}
.skip:focus{left:16px;top:16px}

/* Header */
.site-header{position:sticky;top:0;z-index:30;background:var(--dark);color:#fff;height:var(--header)}
.site-header .wrap{height:100%;display:flex;align-items:center;gap:32px;position:relative}
.brand{display:flex;align-items:center;gap:16px;text-decoration:none;margin-right:auto;min-width:0}
.brand-name{display:block;font-weight:600;font-size:22px;line-height:1.1;letter-spacing:-0.01em}
.brand-title{display:block;font-size:13px;line-height:1.3;color:rgba(255,255,255,.85);margin-top:4px}
.remax-logo{height:46px;width:auto;flex:none;display:block}
.nav{display:flex;gap:28px;list-style:none;margin:0;padding:0}
.nav a{text-decoration:none;text-transform:uppercase;font-size:14px;font-weight:500;letter-spacing:.06em;padding:12px 0;display:inline-block;border-bottom:2px solid transparent}
.nav a:hover{color:#c9d3e6}
.nav a[aria-current="page"]{border-bottom-color:#fff}
.nav .nav-call{display:none}
.header-call{font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap;min-height:48px;display:inline-flex;align-items:center}
.menu-btn{display:none}

/* Buttons */
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:14px 26px;border-radius:var(--radius);
  font:500 14px/1.2 var(--font);text-transform:uppercase;letter-spacing:.05em;text-decoration:none;border:1px solid transparent;text-align:center;cursor:pointer;
  transition:background-color .2s,color .2s,border-color .2s,transform .1s}
.btn-light{background:#fff;color:var(--dark)}
.btn-light:hover{background:#e8ebf1}
.btn:active{transform:translateY(1px)}
.btn-ghost{border-color:#fff;color:#fff;background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-solid{background:var(--accent);color:#fff}
.btn-solid:hover{background:var(--accent-hover)}
.btn-line{border-color:var(--accent);color:var(--accent);background:transparent}
.btn-line:hover{background:#e8ebf1}

/* Type */
h1{font-weight:500;font-size:clamp(32px,3.4vw,48px);line-height:1.1;letter-spacing:-0.01em;margin:0 0 20px;text-wrap:balance}
h2{font-weight:500;font-size:clamp(28px,2.8vw,40px);line-height:1.15;letter-spacing:-0.01em;margin:0 0 16px;text-wrap:balance}
h3{font-weight:500;font-size:22px;line-height:1.25;margin:0 0 8px;text-wrap:balance}
.lead{font-size:18px;color:var(--muted);max-width:60ch;margin-bottom:32px}
.muted{color:var(--muted)}

/* Mandatory mentions (OACIQ art. 114, 115, 117) */
.ids{margin:0 0 28px;font-size:16px;line-height:1.5}
.ids strong{display:block;font-weight:600;font-size:20px}
.ids span{display:block;color:rgba(255,255,255,.88)}

/* Sections */
.section{padding:96px 0}
.section.band{background:var(--band)}
.section.dark{background:var(--dark);color:#fff}
.section.dark .lead{color:rgba(255,255,255,.85)}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}

/* Home hero (structure of yanicksarrazin.com, 2026-11-19): the clip fills a band about 560 px tall, no photo of Francis on top,
   words bottom-left on the content edge, one button. Height measured on the reference: 558 px at 1440, 420 px at 390. */
.hero{position:relative;background:var(--dark);color:#fff;height:clamp(560px, calc(100svh - var(--header) - 72px), 820px);overflow:hidden}
.hero-stage{position:absolute;inset:0}
.hero-media{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;background:var(--dark)}
.hero-stage::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.36);z-index:1} /* flat scrim over the clip */
.hero-text{position:relative;z-index:3;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:56px}
.hero-text .hero-copy{width:100%;max-width:calc(var(--wrap) + 2*var(--gutter));margin:0 auto;padding:0 var(--gutter)}
.hero-copy > *{max-width:640px}

/* Intro line under the hero (one centred sentence, as on the reference) */
.intro{padding:48px 0 0;text-align:center}
.intro p{margin:0 auto;max-width:56ch;font-size:20px;line-height:1.5;color:var(--ink);text-wrap:balance}
.intro a{color:var(--accent);text-underline-offset:3px}

/* Section head: title left, « see all » link right (the reference's « Tout voir ») */
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-bottom:20px}
.sec-head h2{margin:0}
.sec-all{font-size:15px;font-weight:500;color:var(--accent);text-decoration:underline;text-underline-offset:3px;min-height:48px;display:inline-flex;align-items:center}
.sec-all.is-pending{color:var(--muted);text-decoration:none;font-weight:400}

/* Listing card slots: photo 3:2, two lines, details left and price right */
.listing-slot .slot-pic{aspect-ratio:3/2}
.slot-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:16px}
.slot-foot .bar{margin:0}
.bar.price{width:26%;height:14px;background:#d4d4d0}
.bar.w30{width:30%;margin-top:18px}

/* One review at a time */
.review-slot{padding:40px 40px 36px;text-align:center}
.review-slot .bar{margin-left:auto;margin-right:auto}

/* Contact: the form on a white card over the band */
.form-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:32px}

/* Instagram: six square tiles in one row (three on a phone) */
.ig-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.ig-grid li{aspect-ratio:1/1;background:#e6e6e3;border-radius:4px}

/* News: cards with a photo 3:2 and the title under it */
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.post{position:relative;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:border-color .2s}
.post img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.post h3{font-size:19px;line-height:1.35;margin:0;padding:18px 22px 22px}
.post h3 a{color:var(--ink);text-decoration:none}
.post h3 a::after{content:"";position:absolute;inset:0}
.post:hover,.post:focus-within{border-color:var(--accent)}
.post:hover h3 a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.post h3 a:focus-visible{outline:none}
.post:focus-within{outline:3px solid #8fb3ff;outline-offset:2px}

/* Inner page head */
.page-head{background:var(--dark);color:#fff;padding:72px 0 64px}
.page-head .lead{color:rgba(255,255,255,.88);margin-bottom:28px}
.page-head.with-photo{padding-bottom:0}
.page-head.with-photo .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:48px;align-items:end}
.page-head.with-photo .head-copy{padding-bottom:64px}
.head-photo{display:block;width:100%;max-width:340px;height:auto;margin-left:auto}

/* Doors */
.door-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px}
.door{background:#fff;border:1px solid var(--line);border-radius:8px;padding:40px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.door h3{font-size:26px;margin:0}
.door p{margin:0 0 12px;color:var(--muted);max-width:42ch}

/* Steps: the order is the information, so the list is numbered */
.steps{list-style:none;counter-reset:step;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.steps li{counter-increment:step;border-top:2px solid var(--ink);padding-top:16px}
.steps li::before{content:counter(step);display:block;font-weight:600;font-size:15px;margin-bottom:8px}
.steps h3{font-size:20px}
.steps p{color:var(--muted);margin:0;font-size:16px}

/* Rows (service lists) */
.rows{list-style:none;margin:24px 0 0;padding:0;border-top:1px solid var(--line)}
.rows li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}
.rows h3{font-size:19px;margin:0}
.rows p{margin:0;color:var(--muted)}

/* Preview slots (listings, reviews, guide): neutral, nothing invented */
.preview-note{display:inline-block;margin:0 0 24px;padding:10px 14px;border:1px dashed #8a8a86;border-radius:var(--radius);font-size:15px;color:var(--ink);background:#fff}
.section.dark .preview-note{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.slot{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.slot-pic{aspect-ratio:4/3;background:#e6e6e3;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}
.slot-body{padding:20px 24px 24px}
.bar{display:block;height:12px;border-radius:3px;background:#e6e6e3;margin:0 0 10px}
.bar.w60{width:60%}.bar.w40{width:40%}.bar.w80{width:80%}.bar.w90{width:90%}
.his-words{margin:0 0 28px;padding:0 0 0 20px;border-left:1px solid currentColor}
.his-words p{font-size:1.125rem;line-height:1.55;margin:0 0 14px}
.his-words cite{display:block;font-style:normal;font-size:.875rem;opacity:.7}
.quote-slot{padding:28px 28px 24px}
.quote-mark{display:block;font-size:40px;line-height:1;color:#b9b9b5;margin-bottom:12px}
.after-slots{margin-top:28px}

/* About */
.about-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:48px;align-items:end}
.about-photo{background:var(--band);border-radius:8px;display:flex;justify-content:center;align-items:flex-end;padding-top:24px;overflow:hidden}
.about-photo img{display:block;width:auto;height:420px;max-width:100%;object-fit:contain;object-position:50% 100%}
.facts{list-style:none;margin:0 0 28px;padding:0;border-top:1px solid var(--line)}
.facts li{padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);gap:4px 16px}
.facts strong{font-weight:600}

/* Area and office */
.place{font-size:22px;line-height:1.35;margin:0 0 12px}
address{font-style:normal}

/* Call band */
.call-band{background:var(--dark);color:#fff;padding:72px 0}
.call-band .wrap{display:flex;flex-wrap:wrap;gap:24px 48px;align-items:center;justify-content:space-between}
.call-band h2{margin:0 0 8px}
.call-band p{margin:0;color:rgba(255,255,255,.85)}

/* Form */
.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field.full{grid-column:1 / -1}
.field label{font-weight:500;font-size:15px}
.field .opt{font-weight:400;color:var(--muted)}
.field input,.field select,.field textarea{font:400 16px/1.4 var(--font);color:var(--ink);background:#fff;border:1px solid #8a8a86;border-radius:var(--radius);padding:12px 14px;min-height:48px;width:100%;max-width:100%}
.field textarea{min-height:120px;resize:vertical}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:3px solid #8fb3ff;outline-offset:1px;border-color:var(--accent)}
.check{grid-column:1 / -1;display:flex;gap:12px;align-items:flex-start;font-size:15px}
.check input{width:22px;height:22px;margin:2px 0 0;flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form .submit-row{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.form-note{grid-column:1 / -1;margin:0;padding:14px 16px;border:1px solid var(--accent);border-radius:var(--radius);background:#eef1f6;color:var(--ink);font-size:15px}
.form-note[hidden]{display:none}
.contact-list{list-style:none;margin:0;padding:0}
.contact-list li{padding:14px 0;border-bottom:1px solid var(--line)}
.contact-list li:first-child{border-top:1px solid var(--line)}
.contact-list strong{display:block;font-weight:600;font-size:15px}

/* Legal page */
.legal{max-width:72ch}
.legal h2{font-size:26px;margin-top:40px}
.legal ul{padding-left:22px;margin:0 0 14px}

/* Footer */
.site-footer{background:var(--dark);color:#fff;padding:64px 0 32px;font-size:15px;line-height:1.6}
.foot-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.1fr) minmax(0,.8fr);gap:48px}
.site-footer h2{font-size:15px;font-weight:600;margin:0 0 12px;letter-spacing:0}
.site-footer p{margin:0 0 8px;color:rgba(255,255,255,.88)}
.site-footer .foot-name{font-weight:600;font-size:18px;color:#fff;margin-bottom:4px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li a{display:inline-block;padding:6px 0;text-decoration:none;color:rgba(255,255,255,.88)}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer a[href^="tel"]{text-decoration:none}
.socials{display:flex;gap:12px;margin-top:4px}
.social{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.4);border-radius:var(--radius)}
.social svg{width:20px;height:20px;fill:#fff}
.foot-bottom{margin-top:48px;padding-top:20px;border-top:1px solid rgba(255,255,255,.2);display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;color:rgba(255,255,255,.8)}
.foot-bottom a{color:rgba(255,255,255,.88)}

/* Six menu items (2026-11-19): the phone number leaves the header first, then the menu folds into the MENU button */
@media (max-width:1360px){.header-call{display:none}}
@media (max-width:1240px){
  .nav-wrap{position:absolute;left:0;right:0;top:100%;background:var(--dark);border-top:1px solid rgba(255,255,255,.15);display:none}
  .site-header.open .nav-wrap{display:block}
  .nav{flex-direction:column;gap:0;padding:8px var(--gutter) 20px}
  .nav a{display:flex;align-items:center;min-height:52px;width:100%;border-bottom:1px solid rgba(255,255,255,.12);padding:0}
  .nav a[aria-current="page"]{border-bottom-color:rgba(255,255,255,.12);text-decoration:underline;text-underline-offset:6px}
  .nav .nav-call{display:block}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;background:none;border:1px solid rgba(255,255,255,.5);border-radius:var(--radius);color:#fff;font:500 13px var(--font);text-transform:uppercase;letter-spacing:.05em;padding:0 14px;cursor:pointer;flex:none}
}
@media (max-width:1080px){
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ig-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Phone */
@media (max-width:700px){
  :root{--gutter:20px;--hero-gutter:20px;--header:72px}
  body{font-size:16px}
  .site-header .wrap{gap:12px}
  .brand{gap:10px}
  .brand-name{font-size:18px;white-space:nowrap}
  .brand-title{display:none} /* the permit mention stays in the hero, right under the H1 */
  .remax-logo{height:36px}
  .header-call{display:none}
  .section{padding:56px 0}
  .lead{font-size:16px;margin-bottom:24px}
  /* Phone hero: the clip fills the band, words over it at the bottom (reference: 420 px band at 390) */
  .hero{height:auto;min-height:max(540px, calc(100svh - var(--header) - 56px))}
  .hero-stage::after{background:rgba(0,0,0,.45)}
  .hero-text{height:auto;min-height:440px;padding-top:120px;padding-bottom:28px}
  .intro{padding-top:36px}
  .intro p{font-size:18px}
  .post-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .form-card{padding:22px 18px}
  .review-slot{padding:28px 24px}
  h1{font-size:30px;margin-bottom:14px}
  .ids{font-size:15px;margin-bottom:20px}
  .ids strong{font-size:18px}
  .actions .btn{width:100%}
  .page-head{padding:44px 0 40px}
  .page-head.with-photo .wrap{grid-template-columns:minmax(0,1fr);gap:8px}
  .page-head.with-photo .head-copy{padding-bottom:0}
  .head-photo{max-width:220px;margin:0 auto}
  .split,.about-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .door-grid,.slot-grid{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:24px}
  .slot-pic{aspect-ratio:16/9}
  .door{padding:28px 24px}
  .door h3{font-size:22px}
  .door .btn{width:100%}
  .steps{grid-template-columns:minmax(0,1fr);gap:20px}
  .rows li,.facts li{grid-template-columns:minmax(0,1fr);gap:4px}
  .about-photo img{height:320px}
  .form{grid-template-columns:minmax(0,1fr)}
  .form .btn{width:100%}
  .call-band{padding:56px 0}
  .call-band .btn{width:100%}
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:28px}
}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

/* Footer credit: Heist Solutions, with the bulb from the Heist logo */
.powered{display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.75);text-decoration:none;font-size:13px}
.powered:hover,.powered:focus-visible{color:#fff;text-decoration:underline}
.heist-bulb{width:20px;height:20px;flex:none;color:#a153ff}

/* Home: Actualités links (replaces Secteur desservi, 2026-11-15) */
.news{padding-block:56px}
.news-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.news-head h2{margin:0}
.news-all{font-size:15px;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.news-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.news-list a{display:block;height:100%;padding:20px 24px;border:1px solid var(--line);border-radius:8px;color:var(--ink);text-decoration:none;font-weight:500;font-size:18px;line-height:1.35}
.news-list a:hover,.news-list a:focus-visible{border-color:var(--accent);color:var(--accent)}
@media (max-width:767px){.news-list{grid-template-columns:minmax(0,1fr)}.news{padding-block:40px}}

/* Qui est Francis: shoulders-up crop (Mathieu 2026-11-15), cropped only, never altered */
.about-photo img.buste{width:100%;height:auto;max-width:100%;object-fit:initial}
@media (max-width:767px){.about-photo img.buste{height:auto}}

.foot-google{margin-top:16px;font-size:14px;line-height:1.9}
.foot-google a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.section.band .about-photo{background:#fff;border:1px solid var(--line)}

/* One real review (2026-11-19): his Facebook recommendation, word for word; 5 stars, colour (his call) */
.review-card{position:relative;margin:0 auto;max-width:640px;padding:48px 40px 40px;border-radius:var(--radius);background:var(--accent);color:#fff;text-align:center}
.review-card::before{content:"\00AB";position:absolute;top:8px;left:24px;font-size:96px;line-height:1;color:#f5b301;opacity:.9}
.review-card .stars{margin:0 0 20px;font-size:28px;letter-spacing:4px;color:#f5b301;line-height:1}
.review-card blockquote{margin:0}
.review-card blockquote p{margin:0;font-size:24px;line-height:1.5;font-weight:500;color:#fff}
.review-card figcaption{margin-top:24px;font-size:16px;color:rgba(255,255,255,.85)}
.review-card figcaption strong{color:#fff}
#avis .actions,.review-card + .actions{justify-content:center}
@media (max-width:600px){.review-card{padding:44px 20px 28px}.review-card::before{font-size:72px;left:14px}.review-card blockquote p{font-size:20px}}

/* His real listings (2026-11-19): photo 3:2, type, address, rooms left and price right, as on the reference */
.listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.listing-card{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;transition:border-color .15s}
.listing-card:hover{border-color:var(--accent)}
.listing-card a{display:block;color:inherit;text-decoration:none}
.lc-pic{aspect-ratio:3/2;background:#e6e6e3;overflow:hidden}
.lc-pic img{display:block;width:100%;height:100%;object-fit:cover}
.lc-body{padding:20px 24px 24px}
.lc-type{margin:0 0 4px;font-size:14px;color:var(--muted)}
.lc-addr{margin:0;font-size:18px;line-height:1.4;font-weight:600;color:var(--ink)}
.lc-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.lc-rooms{flex:1 1 170px;font-size:15px;color:var(--muted)}
.lc-price{font-size:20px;font-weight:700;color:var(--accent);white-space:nowrap}
@media (max-width:900px){.listing-grid{grid-template-columns:minmax(0,1fr);gap:16px}}

/* Instagram until his posts arrive (2026-11-19): one line, quiet tiles with the camera glyph, follow button */
.ig-soon{margin:0 0 20px;font-size:17px;color:var(--muted)}
.ig-empty li{position:relative}
.ig-empty li::after{content:"";position:absolute;inset:0;margin:auto;width:28px;height:28px;border:2px solid #b9b9b4;border-radius:8px}
.band .review-card,.section .review-card{margin-top:8px}

/* Tap targets of 24 px or more (sweep --served, 2026-11-19). Inline padding grows the hit area without moving any line. */
:where(main p, main li, .site-footer, .submit-row, .crumb, .post h3, .foot-google) a:where(:not(.btn)){padding-block:4px}
.powered{min-height:24px}
.check input{width:24px;height:24px;margin:1px 0 0}
