/* Soléo Énergie — Centrale Pierrefonds
   Palette: solar gold + forest green + deep navy */

:root {
  --green-900: #0f3d2e;
  --green-800: #145239;
  --green-700: #1a6b48;
  --green-100: #e8f3ec;
  --green-50: #f4faf6;
  --gold-500: #e8a317;
  --gold-400: #f0b429;
  --navy-900: #0c1f2e;
  --navy-800: #163044;
  --ink: #1a2330;
  --muted: #5a6570;
  --line: #d8e2da;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(12, 31, 46, 0.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 0.18em; }
a:hover { color: var(--green-900); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  background: var(--green-800);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap.narrow { --wrap: 760px; }

/* Header — brand left, nav+CTA right, single row on desktop */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name { color: #0b3d91; }
.brand-domain { color: #e8a317; font-weight: 600; }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { background: var(--green-50); color: var(--green-800); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  background: var(--green-800);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.nav-cta:hover { background: var(--green-900); color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  content: "";
  position: absolute;
  left: 0.65rem; right: 0.65rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  top: 50%;
}
.nav-toggle span:not(.sr-only)::before { transform: translateY(-7px); }
.nav-toggle span:not(.sr-only)::after { transform: translateY(7px); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,31,46,0.35) 0%, rgba(12,31,46,0.78) 70%, rgba(15,61,46,0.92) 100%);
}
.hero-content {
  position: relative;
  padding: 5rem 0 4rem;
  max-width: 820px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 0.75rem;
}
.section-head .eyebrow { color: var(--green-700); }
.section-head.light .eyebrow { color: var(--gold-400); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-weight: 500;
  opacity: 0.95;
  margin: 0 0 1.25rem;
}
.hero-meta .dot { opacity: 0.5; }
.hero-lead {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 1.75rem;
  opacity: 0.92;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--gold-400);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--green-50); }
.section-green {
  background: linear-gradient(145deg, var(--green-900), var(--navy-900) 70%);
  color: var(--white);
}
.section-head { margin-bottom: 2.5rem; }
.section-head h2,
.h3-inline {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--navy-900);
}
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.section-head.light h2 { color: var(--white); }
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
}
.section-head.light .lede { color: rgba(255,255,255,0.82); }
.h3-inline { font-size: 1.35rem; }

/* Mise à jour */
.section-update {
  background: linear-gradient(180deg, var(--green-100) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.update-card {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.update-main {
  padding: 2rem 2.25rem;
  border-left: 5px solid var(--gold-400);
}
.update-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.update-main h3 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.update-details {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}
.update-details dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.2rem;
}
.update-details dd {
  margin: 0;
  line-height: 1.5;
}
.update-aside {
  background: var(--green-800);
  color: var(--white);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.update-aside-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.update-aside-brand {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.update-aside .muted { color: rgba(255,255,255,0.7); margin: 0 0 1rem; }
.update-aside-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
}
.gap-lg { gap: 2.5rem; }
.align-center { align-items: center; }
.mt-lg { margin-top: 3rem; }

.media-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.media-card img { width: 100%; }
.media-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--white);
}
.media-card-sm { margin-top: 1.5rem; }
.media-card-diagram {
  background: #fafcfa;
}
.media-card-diagram img {
  padding: 1rem 1rem 0.5rem;
  max-height: 280px;
  width: auto;
  margin-inline: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.stats li {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.stats-compact { margin-top: 1.5rem; }
.stats-compact li { background: var(--white); }

.tech-card {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
}
.tech-card h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tech-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.tech-card p { margin: 0.2rem 0; }
.tech-note {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
}
.muted { color: var(--muted); }
.tech-card .muted { color: rgba(255,255,255,0.65); }

.info-list {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.info-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.info-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.25rem;
}
.info-list dd { margin: 0; font-weight: 500; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.step-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-800);
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.cards-on-dark .card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
.cards-on-dark .card h3 { color: var(--gold-400); }
.cards-on-dark .card p { color: rgba(255,255,255,0.82); }

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--green-100);
  box-shadow: inset 0 0 0 2px var(--green-700);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.32rem; top: 1.1rem;
  width: 0.45rem; height: 0.28rem;
  border-left: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(-45deg);
}

.validations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.validations li {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-weight: 500;
  font-size: 0.96rem;
}

/* Document cards */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.doc-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.doc-card:hover {
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 31, 46, 0.12);
  color: inherit;
}
.doc-body { flex: 1; min-width: 0; }
.doc-body strong {
  display: block;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.doc-body .muted {
  display: block;
  font-size: 0.88rem;
  margin-top: 0.2rem;
}
.doc-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  background: var(--green-800);
  color: var(--white);
  display: grid;
  place-items: center;
}
.doc-icon-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.doc-action {
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
}
.doc-card:hover .doc-action {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.section-contact { background: var(--green-50); }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
}
.contact-name {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.contact-card p { margin: 0.25rem 0; }
.contact-card a { font-weight: 500; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-cta-note {
  color: var(--muted);
  margin: 0 0 1.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-logo {
  width: 140px;
  margin-bottom: 0.75rem;
  filter: brightness(1.05);
}
.site-footer .muted { color: rgba(255,255,255,0.55); }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0.2rem 0; }

/* Responsive */
@media (max-width: 1080px) {
  .nav a { padding: 0.35rem 0.42rem; font-size: 0.8rem; }
  .nav-cta { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .brand-text { font-size: 0.9rem; }
}

@media (max-width: 960px) {
  .grid-2,
  .tech-grid,
  .cards-3,
  .stats,
  .contact-grid,
  .update-card {
    grid-template-columns: 1fr;
  }
  .header-inner { position: relative; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .header-right {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    gap: 0.5rem;
  }
  .header-right.is-open { display: flex; }
  .nav { width: 100%; }
  .nav ul { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .nav a { padding: 0.75rem 0.9rem; font-size: 0.95rem; }
  .nav-cta {
    margin-left: 0;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .footer-meta { text-align: left; }
  .hero { min-height: 70vh; }
  .section { padding: 3.5rem 0; }
  .update-main { border-left: none; border-top: 5px solid var(--gold-400); }
  .doc-action { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .hero-content { padding: 4rem 0 3rem; }
  .tech-card { padding: 1.35rem; }
  .update-main { padding: 1.5rem; }
}

/* ——— Soft password gate (temporary confidentiality) ——— */
html.auth-locked,
html.auth-locked body {
  height: 100%;
  overflow: hidden;
}

#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: var(--font);
}

.auth-gate-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(15, 61, 46, 0.92), rgba(12, 31, 46, 0.94) 70%),
    radial-gradient(ellipse at 20% 20%, rgba(232, 163, 23, 0.25), transparent 55%);
}

.auth-gate-card {
  position: relative;
  width: min(100%, 420px);
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(12, 31, 46, 0.35);
  padding: 2rem 1.75rem 1.5rem;
  text-align: left;
}

.auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.auth-gate-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-gate-brand-text {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.auth-gate-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
}

#auth-gate-title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1.25;
}

.auth-gate-lead {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.auth-gate-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.auth-gate-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--green-50);
  margin-bottom: 0.75rem;
}

.auth-gate-form input[type="password"]:focus {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-color: var(--green-700);
  background: var(--white);
}

.auth-gate-error {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b42318;
}

.auth-gate-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}

.auth-gate-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
