/*
Theme Name: Chauffagiste Chambery
Template: generatepress
Version: 1.1.0
Text Domain: chauffagiste-chambery
*/

:root {
  --cc-ink: #0d223a;
  --cc-navy: #102b49;
  --cc-blue: #185690;
  --cc-orange: #ffb455;
  --cc-paper: #f4f7fb;
  --cc-muted: #4a5a6b;
  --cc-border: #dbe5ef;
}
body { color: var(--cc-ink); font-family: system-ui, sans-serif; }
a { color: var(--cc-blue); }
:focus-visible { outline: 3px solid #217ac6; outline-offset: 4px; }
.cc-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.cc-top { background: var(--cc-ink); color: #e0eaf6; font-size: .8rem; font-weight: 650; }
.cc-top .cc-wrap { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cc-header { background: white; border-bottom: 1px solid var(--cc-border); }
.cc-header .cc-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cc-brand { flex: none; line-height: 0; }
.cc-brand img { width: 226px; height: auto; }
.cc-menu { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; margin: 0; list-style: none; align-items: center; }
.cc-menu a { color: var(--cc-ink); font-size: .91rem; font-weight: 650; text-decoration: none; }
.cc-menu a:hover, .cc-menu .current-menu-item a { color: var(--cc-blue); text-decoration: underline; text-underline-offset: .28em; }
.cc-button { display: inline-flex; min-height: 46px; padding: .65rem 1.1rem; align-items: center; justify-content: center; border-radius: 6px; background: var(--cc-orange); color: var(--cc-ink); font-weight: 750; text-decoration: none; }
.cc-button:hover, .cc-button:focus { background: #ffc77d; color: var(--cc-ink); }
.cc-button--secondary { background: transparent; border: 1px solid #adc4dd; color: white; }
.cc-button--secondary:hover, .cc-button--secondary:focus { background: white; color: var(--cc-ink); }
.home #page { max-width: none; }
.home #content { padding: 0; display: block; }
.cc-hero { position: relative; isolation: isolate; color: white; background: var(--cc-navy); min-height: 560px; display: grid; align-items: center; overflow: hidden; }
.cc-hero-photo { position: absolute; inset: 0 0 0 auto; width: 68%; height: 100%; object-fit: cover; object-position: 52% 49%; z-index: -2; }
.cc-photo-caption { position: absolute; right: 20px; bottom: 48px; padding: .24rem .52rem; border-radius: 4px; background: #102b49d9; color: white; font-size: .72rem; }
.cc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #102b49 25%, #102b49f5 39%, #102b4970 67%, #102b4926); z-index: -1; }
.cc-hero-copy { width: min(600px, 100%); padding-block: 64px 94px; }
.cc-kicker { display: flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1rem; color: var(--cc-blue); }
.cc-kicker::before { content: ""; width: 22px; height: 3px; background: var(--cc-orange); }
.cc-hero .cc-kicker, .cc-cta .cc-kicker { color: #ffca88; }
.cc-hero h1 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(2.65rem, 6.4vw, 5.45rem); line-height: .99; font-weight: 780; letter-spacing: -.055em; color: white; }
.cc-hero p:not(.cc-kicker) { max-width: 41ch; color: #e2edf8; font-size: clamp(1rem, 2vw, 1.18rem); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.cc-steps { position: relative; margin: -37px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); background: white; border-radius: 10px; border: 1px solid var(--cc-border); box-shadow: 0 12px 25px #112c4b13; list-style: none; }
.cc-steps li { padding: 22px; display: flex; align-items: center; gap: .75rem; font-weight: 720; }
.cc-steps li + li { border-left: 1px solid var(--cc-border); }
.cc-step-num { width: 2.15rem; height: 2.15rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e9f2fb; color: var(--cc-blue); font-size: .82rem; }
.cc-section { padding-block: clamp(48px, 7vw, 92px); }
.cc-section h2, .cc-cta h2 { color: inherit; font-size: clamp(1.85rem, 4.2vw, 3rem); font-weight: 780; line-height: 1.06; letter-spacing: -.042em; margin-bottom: .8rem; }
.cc-section-intro { max-width: 63ch; color: var(--cc-muted); }
.cc-services { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 25px; }
.cc-card { border: 1px solid var(--cc-border); border-radius: 9px; overflow: hidden; background: white; }
.cc-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.cc-card-body { padding: 22px; }
.cc-card h3 { font-size: 1.28rem; color: var(--cc-ink); font-weight: 750; margin-bottom: .5rem; }
.cc-card p { font-size: .95rem; color: var(--cc-muted); margin-bottom: .7rem; }
.cc-card a { font-weight: 750; text-underline-offset: .2em; }
.cc-local { background: var(--cc-paper); }
.cc-local .cc-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.25rem, 6vw, 5rem); }
.cc-local ul { margin: 0; list-style: none; }
.cc-local li { padding: .9rem 0; border-bottom: 1px solid var(--cc-border); }
.cc-cta { background: var(--cc-navy); color: white; padding-block: clamp(42px, 6vw, 65px); }
.cc-cta .cc-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.cc-cta h2, .cc-cta p:last-child { margin-bottom: 0; }
.cc-cta p:last-child { color: #dce8f3; }
.cc-demo-banner { max-width: 720px; padding-block: 28px; }
.cc-demo-banner img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cc-breadcrumb { font-size: .86rem; margin-bottom: .85rem; }
.site-info { background: var(--cc-ink); color: white; }
.site-info a { color: #f8c782; }
.cc-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.15rem; margin-top: .35rem; }
.cc-devis { padding: clamp(1rem, 4vw, 1.75rem); border: 1px solid var(--cc-border); border-radius: 9px; background: var(--cc-paper); }
.cc-contact-banner { display: block; margin-bottom: 1.25rem; border-radius: 9px; }
.cc-contact-banner img { display: block; width: 100%; height: auto; border-radius: inherit; }
.cc-devis-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 1rem; }
.cc-devis label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 700; }
.cc-devis :is(input, textarea) { width: 100%; min-height: 44px; color: var(--cc-ink); background: white; font: inherit; font-weight: 400; }
.cc-devis-result { padding: .8rem 1rem; border-inline-start: 3px solid var(--cc-blue); background: white; font-weight: 650; }
.cc-contact-privacy { font-size: .9rem; color: var(--cc-muted); }
.inside-article .entry-title { font-weight: 780; letter-spacing: -.035em; }
.inside-article .entry-content { max-width: 75ch; }
.page:not(.home) .inside-article :is(.entry-header, .entry-content, .cc-breadcrumb) { max-width: 75ch; margin-inline: auto; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: .7rem; border-color: var(--cc-border); }
.entry-content .wp-block-table thead { background: var(--cc-paper); }
.rank-math-list-item { border-top: 1px solid var(--cc-border); padding-block: 1.05rem; }
.rank-math-list-item .rank-math-question { font-size: 1.13rem; font-weight: 750; margin-bottom: .35rem; }
.rank-math-list-item .rank-math-answer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .cc-header .cc-wrap { flex-wrap: wrap; padding-block: 14px; gap: .8rem; }
  .cc-header nav { order: 3; width: 100%; }
  .cc-services { gap: 12px; }
}
@media (max-width: 660px) {
  .cc-wrap { width: calc(100% - 32px); }
  .cc-top .cc-wrap { min-height: 32px; }
  .cc-top .cc-wrap span:first-child { display: none; }
  .cc-brand img { width: clamp(150px, 46vw, 205px); }
  .cc-header .cc-button { padding-inline: .7rem; font-size: .84rem; }
  .cc-menu { gap: .45rem 1rem; }
  .cc-menu a { font-size: .86rem; }
  .cc-hero { min-height: 490px; }
  .cc-hero-photo { width: 100%; object-position: 60% center; }
  .cc-hero::before { background: linear-gradient(90deg, #102b49fa 18%, #102b49ad 100%); }
  .cc-hero-copy { padding-block: 52px 69px; }
  .cc-steps { margin-top: -25px; grid-template-columns: 1fr; }
  .cc-steps li { padding: 11px 14px; }
  .cc-steps li + li { border-left: 0; border-top: 1px solid var(--cc-border); }
  .cc-services, .cc-local .cc-wrap { grid-template-columns: 1fr; }
  .cc-devis-fields { grid-template-columns: 1fr; }
}
