/*
Theme Name: Cadran Solaire
Theme URI: https://cadransolaire.ca
Author: CadranSolaire.ca
Description: Thème minimaliste pour les cadrans solaires de Michel Marchand.
Version: 1.6.1
Text Domain: cadran-solaire
*/

:root {
  --brown-950: #17110e;
  --brown-900: #211814;
  --brown-800: #33251e;
  --brown-700: #4a3529;
  --slate-900: #252a29;
  --slate-800: #303635;
  --slate-700: #424947;
  --cream: #f4efe7;
  --paper: #fbf8f2;
  --white: #ffffff;
  --gold: #e2a943;
  --gold-light: #ffd37a;
  --gold-dark: #70420d;
  --ink: #251a15;
  --muted: #c7bbb0;
  --line: rgba(255, 255, 255, 0.15);
  --radius-sm: 7px;
  --radius-md: 10px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--brown-950);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.25rem; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { max-width: 920px; font-size: clamp(2.9rem, 6.2vw, 6rem); letter-spacing: -0.048em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { width: 34px; height: 1px; background: var(--gold); content: ""; }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 13px 25px;
  background: var(--gold);
  color: var(--brown-950);
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover, .button:focus-visible { background: var(--gold-light); transform: translateY(-2px); }
.button--outline { background: transparent; color: var(--white); }
.button--outline:hover, .button--outline:focus-visible { background: var(--white); color: var(--brown-950); }

.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 14px; background: white; color: black; }
.skip-link:focus { top: 10px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 17, 14, .98);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled { border-color: rgba(255,255,255,.1); background: rgba(23,17,14,.76); box-shadow: 0 10px 35px rgba(0,0,0,.18); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); }
.header-inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 31px); }
.site-nav a { position: relative; color: #e8e0da; font-size: .8rem; font-weight: 700; letter-spacing: .065em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 1px; background: var(--gold); content: ""; opacity: 0; transform: scaleX(0); transition: .2s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.nav-toggle { display: none; border: 0; background: none; color: white; font: inherit; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.22); background: var(--brown-950); }
.hero-slideshow, .hero-slide { position: absolute; inset: 0; }
.hero-slideshow { z-index: 0; }
.hero-slide { background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; animation: hero-cycle 21s ease-in-out infinite; }
.hero-slide--garden { background-image: url("assets/cadran-hero-garden.jpg"); }
.hero-slide--cour { background-image: url("assets/cadran-solaire-cour-maison.jpg"); animation-delay: -14s; }
.hero-slide--pierre { background-image: url("assets/cadran-solaire-cour-pierre.jpg"); animation-delay: -7s; }
.hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(15, 11, 9, .12) 0%, rgba(15, 11, 9, .3) 43%, rgba(15, 11, 9, .92) 76%, rgba(15, 11, 9, .97) 100%); content: ""; pointer-events: none; }
@keyframes hero-cycle {
  0%, 28% { opacity: 1; }
  33%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
.hero-grid { display: grid; min-height: 585px; align-items: center; padding-block: 62px; }
.hero-copy { position: relative; z-index: 2; width: min(590px, 50%); margin-left: auto; }
.hero-copy h1 { font-size: clamp(3rem, 5.1vw, 5.15rem); text-shadow: 0 2px 28px rgba(0,0,0,.35); }
.hero-copy h1 span { display: block; color: var(--gold-light); font-size: .42em; font-style: italic; letter-spacing: -.025em; margin-top: 12px; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 31px; }
.price { font-family: var(--serif); font-size: 2.2rem; white-space: nowrap; }
.price small { display: block; margin-top: -4px; color: var(--muted); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-align: right; }

.canada-callout { border-bottom: 1px solid #d8c9b3; background: linear-gradient(105deg, #f8f2e8, #eadcc8); color: var(--ink); }
.canada-callout__inner { display: grid; grid-template-columns: auto 1fr auto; min-height: 122px; align-items: center; gap: clamp(24px, 4vw, 58px); }
.canada-callout__kicker { color: #503922; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.canada-callout strong { font-family: var(--serif); font-size: clamp(2rem, 3.3vw, 3.35rem); font-weight: 400; letter-spacing: -.035em; text-align: center; }
.canada-callout__meta { border-left: 1px solid #a99478; padding-left: clamp(20px, 3vw, 38px); color: #503922; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.value-strip { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.12); background: var(--slate-900); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { position: relative; display: grid; align-content: center; min-height: 160px; padding: 42px 34px 32px; border-right: 1px solid rgba(255,255,255,.12); }
.value-item:last-child { border-right: 0; }
.value-item::before { position: absolute; top: 27px; left: 34px; width: 32px; height: 2px; background: var(--gold); content: ""; }
.value-item strong { display: block; align-self: end; color: var(--white); font-family: var(--serif); font-size: clamp(1.25rem, 1.65vw, 1.65rem); font-weight: 400; line-height: 1.2; }
.value-item small { display: block; align-self: start; margin-top: 9px; color: #d5d9d7; font-size: .8rem; line-height: 1.45; }

.section { padding-block: clamp(75px, 10vw, 130px); }
.section--paper { border-top: 1px solid rgba(64,73,71,.2); background: linear-gradient(180deg, #eee8de 0, var(--paper) 85px); color: var(--ink); }
.section--brown { background: var(--brown-900); }
.section--paper .eyebrow { color: var(--gold-dark); }
.section--paper .eyebrow::before { background: #986323; }
.product-intro { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); align-items: center; gap: clamp(45px, 7vw, 95px); }
.product-feature { margin: 0; }
.product-feature img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-md); object-fit: cover; box-shadow: 0 24px 55px rgba(37,42,41,.18); }
.product-feature figcaption { margin-top: 13px; color: #69594b; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.spec-line { display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; margin: 28px 0 7px; border-top: 1px solid #b8a995; border-bottom: 1px solid #b8a995; padding-block: 18px; }
.spec-line span { color: #563923; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.spec-line strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; text-align: right; }
.spec-line strong small, .feature strong small { display: inline-block; margin-top: 5px; color: #543a26; font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: .01em; line-height: 1.35; }
.body-copy { max-width: 740px; }
.body-copy h2 { margin-bottom: 28px; }
.body-copy .button { margin-top: 18px; }

.page-hero { border-bottom: 1px solid var(--line); padding-block: clamp(75px, 9vw, 120px); background: linear-gradient(118deg, var(--brown-950), var(--slate-800)); }
.page-hero h1 { font-size: clamp(2.8rem, 5.3vw, 5.15rem); }
.page-hero .lede { margin-top: 27px; }
.article-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(45px, 8vw, 110px); }
.article-kicker { position: sticky; top: 40px; height: fit-content; }
.article-kicker h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.rich-text h2, .rich-text h3 { margin: 2.3rem 0 1rem; }
.rich-text h2:first-child, .rich-text h3:first-child { margin-top: 0; }
.rich-text p:last-child { margin-bottom: 0; }
.section--brown .rich-text strong { color: var(--gold-light); }
.section--paper .rich-text strong { color: #5f3a16; }
.inline-link { color: #5f3a16; font-weight: 700; text-decoration-color: #b4813e; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-link:hover, .inline-link:focus-visible { color: #3f240c; text-decoration-thickness: 2px; }

.equation-card { overflow: hidden; margin-top: 55px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #291d18; }
.equation-card img { width: 100%; max-height: 720px; background: white; object-fit: contain; }
.equation-copy { padding: clamp(30px, 5vw, 62px); color: #fff; }
.equation-copy h2 { margin-bottom: 27px; color: #fff; }
.equation-copy p { color: #fff; }
.note { margin-top: 30px; border-left: 3px solid var(--gold); padding-left: 22px; font-weight: 700; }
.feature-grid { display: grid; overflow: hidden; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 45px; border: 1px solid #9b8772; border-radius: var(--radius-sm); background: #9b8772; }
.feature { background: var(--paper); padding: 30px; }
.feature span { display: block; color: #58391f; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.feature strong { display: block; margin-top: 9px; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.25; }

.slate-article { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); max-width: 1120px; align-items: start; gap: clamp(45px, 7vw, 90px); }
.slate-article figure { position: sticky; top: 126px; margin: 0; }
.slate-article figure img { display: block; width: 100%; max-height: 720px; border-radius: var(--radius-md); object-fit: cover; }
.slate-article .rich-text { font-size: 1.12rem; }

.faq-list { display: grid; max-width: 940px; gap: 14px; }
.faq-list details { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding-inline: clamp(20px, 3vw, 32px); background: rgba(255,255,255,.025); transition: border-color .25s ease, background-color .25s ease; }
.faq-list details[open] { border-color: rgba(226,169,67,.58); background: rgba(255,255,255,.055); }
.faq-list details[data-animating] { overflow: hidden; }
.faq-list summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.25; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(226,169,67,.65); border-radius: 50%; color: var(--gold-light); content: "+"; font-family: var(--sans); font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform .3s ease, background-color .3s ease; }
.faq-list details[open] summary::after { background: var(--gold); color: var(--brown-950); transform: rotate(45deg); }
.faq-answer { max-width: 780px; }
.faq-answer p { margin: 0; padding: 0 0 28px; color: #ddd4cc; }

.bio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(50px, 10vw, 130px); }
.awards { border-top: 1px solid var(--line); }
.award { border-bottom: 1px solid var(--line); padding: 24px 0; }
.award img { width: 100%; aspect-ratio: 3 / 2; margin-bottom: 19px; border-radius: var(--radius-sm); object-fit: cover; }
.award span { display: block; color: var(--gold-light); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.award strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.3; }

.contact-card { min-height: 460px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.contact-phone { display: block; margin: 25px 0; color: #fff; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.contact-email { color: var(--gold-light); font-size: clamp(1rem, 2vw, 1.35rem); text-underline-offset: 5px; }

.order-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 8vw, 110px); }
.order-summary { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); padding: 22px; background: var(--slate-900); box-shadow: 0 28px 65px rgba(0,0,0,.2); }
.order-summary img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); object-fit: contain; object-position: center; background: #111a19; }
.order-summary-copy { padding: 23px 5px 17px; border-bottom: 1px solid rgba(255,255,255,.13); }
.order-summary-copy > span { color: var(--gold-light); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.order-summary-copy strong { display: block; margin-top: 7px; color: white; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; }
.order-summary-copy strong small { font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.order-summary-copy p { margin: 10px 0 0; color: #d8dedc; font-size: .85rem; }
.order-includes { display: grid; gap: 9px; margin: 18px 5px 5px; padding: 0; list-style: none; color: #d8dedc; font-size: .79rem; }
.order-includes li::before { margin-right: 10px; color: var(--gold); content: "✓"; font-weight: 800; }
.order-includes li strong { color: #fff; font-weight: 650; }
.order-form { align-self: center; }
.order-form h2 { margin-bottom: 22px; }
.order-form label { display: block; margin-bottom: 9px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.order-form input[type="text"] { width: 100%; min-height: 58px; border: 1px solid #8d7767; border-radius: var(--radius-sm); padding: 12px 15px; background: #fff; color: #211814; font: inherit; }
.order-form input[type="text"]:focus { outline: 3px solid rgba(212, 168, 95, .35); outline-offset: 2px; }
.field-help { margin: 8px 0 26px; color: var(--muted); font-size: .83rem; }
.order-form .button { cursor: pointer; width: 100%; }
.order-form .secure { margin-top: 16px; color: var(--muted); font-size: .78rem; text-align: center; }

.site-footer { border-top: 1px solid var(--line); padding-block: 55px; background: #100c0a; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 390px; }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p, .footer-contact { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-contact { text-align: right; }
.footer-contact a { color: white; font-family: var(--serif); font-size: 1.7rem; text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; cursor: pointer; padding: 10px 0; font-size: .77rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .site-nav { position: fixed; inset: 94px 0 0; display: none; flex-direction: column; align-items: flex-start; gap: 25px; padding: 40px 20px; background: var(--brown-950); }
  .nav-open .site-nav { display: flex; }
  .site-nav a { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .product-intro, .article-grid, .bio, .order-layout, .slate-article { grid-template-columns: 1fr; }
  .hero-slide { background-position: 35% center; }
  .hero::before { background: linear-gradient(90deg, rgba(15,11,9,.38), rgba(15,11,9,.82) 55%, rgba(15,11,9,.95)); }
  .hero-grid { min-height: 540px; padding-block: 60px; }
  .hero-copy { width: min(620px, 70%); max-width: 620px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .value-item:last-child { border-bottom: 0; }
  .article-kicker { position: static; }
  .slate-article figure { position: static; max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  body { font-size: 16px; }
  .header-inner { min-height: 80px; gap: 10px; }
  .site-header .brand { min-width: 0; }
  .site-header .brand-sub { display: none; }
  .site-header .brand-name { font-size: 1rem; white-space: nowrap; }
  .brand-sub { font-size: .53rem; }
  .nav-toggle { flex: 0 0 auto; }
  .site-nav { inset-block-start: 80px; }
  h1 { font-size: clamp(2.55rem, 12.5vw, 3.4rem); letter-spacing: -.042em; }
  .hero-slide { background-position: 30% center; }
  .hero-slide--cour { background-position: 38% center; }
  .hero::before { background: linear-gradient(180deg, rgba(15,11,9,.3), rgba(15,11,9,.9) 62%, rgba(15,11,9,.97)); }
  .hero-grid { min-height: 560px; align-items: end; padding-block: 50px; }
  .hero-copy { width: 100%; margin-left: 0; }
  .hero-copy h1 { max-width: 10ch; font-size: clamp(2.65rem, 13vw, 3.65rem); }
  .hero-actions { align-items: flex-start; flex-direction: column-reverse; }
  .price small { text-align: left; }
  .canada-callout__inner { grid-template-columns: 1fr; justify-items: start; gap: 13px; padding-block: 30px; }
  .canada-callout strong { text-align: left; }
  .canada-callout__meta { border-left: 0; padding-left: 0; }
  .value-item { min-height: 125px; padding: 38px 22px 24px; }
  .value-item::before { top: 24px; left: 22px; }
  .contact-phone { font-size: clamp(2.25rem, 10vw, 3.6rem); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero-slide { opacity: 0; animation: none; }
  .hero-slide--garden { opacity: 1; }
}
