/* cadastre-solaire.fr — feuille de styles unique */

:root {
  --sun: #f9b400;
  --sun-dark: #e29b1f;
  --sun-soft: #fff4d6;
  --ink: #1e2227;
  --ink-2: #2e333a;
  --text: #3a3f45;
  --muted: #6b7178;
  --line: #e2e5e3;
  --bg: #ffffff;
  --bg-alt: #f3f5f4;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(30, 34, 39, .08);
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #b37f00; text-underline-offset: 2px; }
a:hover { color: var(--sun-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sun); color: var(--ink); }
.btn--primary:hover { background: var(--sun-dark); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: var(--sun); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { border-color: var(--sun); color: var(--sun); }
.btn--outline { border-color: var(--sun); color: var(--ink); }
.btn--outline:hover { background: var(--sun); color: var(--ink); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }

/* --- En-tête ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 140px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.site-nav ul a:hover { background: var(--bg-alt); }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; } .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sun); }
}

/* --- Héros -------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, rgba(20,22,26,.94) 0%, rgba(20,22,26,.82) 45%, rgba(20,22,26,.35) 100%), var(--hero-bg) center / cover no-repeat, var(--ink);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; min-height: 480px; }
.hero h1 { color: #fff; }
.hl { color: var(--sun); }
.hero__lead { font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual { justify-self: center; max-height: 440px; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero__visual--sm { max-height: 380px; }
.hero__visual--card { border-radius: var(--radius); max-width: 340px; background: #fff; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.hero__tags li { padding: 6px 14px; border-radius: 999px; background: rgba(249,180,0,.15); border: 1px solid rgba(249,180,0,.5); color: var(--sun); font-weight: 600; font-size: .9rem; }
.fps-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; }
.fps-brand img { width: 52px; background: #fff; border-radius: 10px; padding: 4px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--sun-dark); margin-bottom: .8em; }
.eyebrow--light { color: var(--sun); }
.eyebrow a { color: inherit; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .hero__visual { max-height: 300px; max-width: 100%; }
  .hero { background: linear-gradient(rgba(20,22,26,.86), rgba(20,22,26,.86)), var(--hero-bg) center / cover no-repeat, var(--ink); }
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section-title { position: relative; padding-bottom: .5em; margin-bottom: 1em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--sun); }
.section-title--center { text-align: center; }
.section-title--center::after { left: 50%; transform: translateX(-50%); }
.prose .section-title:not(:first-child) { margin-top: 1.8em; }
.page-title { margin-bottom: 1em; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--gap-lg { gap: 56px; }
.grid--center { align-items: center; }
@media (max-width: 780px) { .grid--2 { grid-template-columns: minmax(0, 1fr); } .grid--gap-lg { gap: 32px; } }

.callout { padding: 16px 20px; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 var(--radius) var(--radius) 0; }

/* Chiffres d'accueil */
.intro { text-align: center; }
.intro .section-title::after { left: 50%; transform: translateX(-50%); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.stats li { padding: 28px 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }
.stats span { color: var(--muted); }
@media (max-width: 780px) { .stats { grid-template-columns: 1fr; } }

/* Cartes d'offres */
.offer-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.offer-card img { width: 220px; margin-bottom: 20px; }
.offer-card p { flex: 1; }

/* Points forts */
.feature { display: flex; gap: 20px; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__icon { flex-shrink: 0; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--sun); }
.feature__icon img { width: 44px; height: 44px; object-fit: contain; }
.feature p { margin: 0; }
@media (max-width: 480px) { .feature { flex-direction: column; } }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
.step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.step:nth-child(even) .step__text { order: 2; }
.step__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.step__img--contain { object-fit: contain; background: #fff; }
.step h3 { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; }
.step__number { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; }
@media (max-width: 780px) { .step { grid-template-columns: minmax(0, 1fr); gap: 20px; } .step:nth-child(even) .step__text { order: 0; } }

/* Questions (Patrimoine) */
.question-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.question-list li { padding: 16px 20px 16px 56px; position: relative; background: var(--bg-alt); border-radius: var(--radius); }
.question-list li::before { content: "?"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; }

/* Réalisations */
.map-wrap { margin-bottom: 56px; }
.map { height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); z-index: 0; }
.map-popup h3 { font-size: 1.05rem; margin: 0 0 8px; }
.map-popup ul { list-style: none; padding: 0; margin: 0 0 10px; }
.map-popup li { margin: 2px 0; }
.map-popup a.btn { color: var(--ink); }
.map--lg { height: min(760px, 80vh); }
.map-wrap--last { margin-bottom: 0; }
@media (max-width: 640px) { .map, .map--lg { height: 420px; } }

.cases { display: grid; gap: 32px; }
.case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case:nth-child(even) .case__img { order: 2; }
.case__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.case__body { padding: 32px; }
.case__body h3 { font-size: 1.35rem; font-weight: 500; }
.case__label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .5em; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--sun-dark); border-bottom: 2px solid var(--sun-dark); transform: rotate(-45deg); }
@media (max-width: 780px) { .case { grid-template-columns: minmax(0, 1fr); } .case:nth-child(even) .case__img { order: 0; } .case__img { min-height: 200px; max-height: 260px; } }

/* Témoignages */
.testimonial { margin: 0; padding: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 24px; flex: 1; font-size: 1.05rem; font-style: italic; position: relative; padding-top: 28px; }
.testimonial blockquote::before { content: "“"; position: absolute; top: -18px; left: -4px; font-size: 4rem; line-height: 1; color: var(--sun); font-style: normal; }
.testimonial figcaption { display: flex; align-items: center; gap: 16px; font-size: .9rem; color: var(--muted); }
.testimonial figcaption img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

/* Données FPS */
.data-card { padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-card img { width: 100%; height: 220px; object-fit: contain; margin-bottom: 20px; }
.data-card p { margin: 0; }
.section--alt .text-center { margin-top: 40px; }

/* Qui sommes-nous */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.about__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.about__facts li { padding: 20px 24px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--sun); box-shadow: var(--shadow); }
.about__facts li.has-logo { display: flex; align-items: center; gap: 18px; }
.about__logo { flex-shrink: 0; width: 120px; height: 88px; object-fit: contain; }
.about__logo--sm { padding: 14px 22px; }
.about__facts li.has-logo p { margin: 0; }
@media (max-width: 480px) { .about__logo { width: 72px; height: 48px; } .about__logo--sm { padding: 8px 13px; } }
.about__note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); text-align: right; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Bandeau contact */
.cta-band { background: var(--sun); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.cta-band__text { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--ink); }

/* Texte courant */
.prose ul { padding-left: 1.3em; }

/* --- Pied de page ------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__logo { width: 170px; height: auto; background: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.site-footer__title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__bottom { padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer__bottom p { margin: 0; }
.site-footer ul.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.link-button:hover { color: var(--sun); }

/* --- Bandeau cookies (src/assets/js/analytics.js) ----------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 3px solid var(--sun); box-shadow: 0 -8px 30px rgba(30, 34, 39, .15); }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.cookie-banner__text { margin: 0; flex: 1 1 420px; font-size: .9rem; color: var(--text); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
