/* ============================================================
   La Compagnie Solaire Collective — styles.css
   Design system partagé pour toutes les pages du site
   ============================================================ */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --schiste:      #243B30;
  --ocre:         #D4762C;
  --lin:          #F4F0E8;
  --calcaire:     #DDD9D0;
  --sable:        #7A7268;
  --blanc:        #FFFFFF;
  --ocre-pale:    rgba(212, 118, 44, 0.10);
  --schiste-pale: rgba(36, 59, 48, 0.06);
  --font-display: 'Epilogue', sans-serif;
  --font-body:    'Lora', serif;
  --max-width:    1080px;
  --nav-height:   68px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--lin);
  color: var(--schiste);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(244, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--calcaire);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem; /* ~15pt */
  color: var(--schiste);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.5938rem; /* ~9.5pt */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--schiste);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocre);
}

.nav-contact-btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.5625rem; /* ~9pt */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--schiste);
  border: 1px solid var(--schiste);
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-contact-btn:hover {
  background: var(--schiste);
  color: var(--blanc);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--schiste);
  transition: transform 0.25s, opacity 0.25s;
}

/* Menu mobile */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--schiste);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

#mobile-menu.mobile-menu-open {
  display: flex;
}

#mobile-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--blanc);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

#mobile-menu a:hover,
#mobile-menu a.active {
  color: var(--ocre);
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */

.page-wrapper {
  padding-top: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--schiste);
  color: var(--blanc);
}

.section--calcaire {
  background: var(--calcaire);
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHIE
══════════════════════════════════════════════════════════════ */

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ocre);
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════════════════════════ */

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  line-height: 1;
}

.btn--primary {
  background: var(--schiste);
  color: var(--blanc);
}

.btn--primary:hover {
  background: #1a2d23;
}

.btn--outline {
  border: 1.5px solid var(--schiste);
  color: var(--schiste);
  background: transparent;
}

.btn--outline:hover {
  background: var(--schiste);
  color: var(--blanc);
}

.btn--ocre {
  background: var(--ocre);
  color: var(--blanc);
}

.btn--ocre:hover {
  background: #b8641e;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: var(--schiste);
  color: var(--blanc);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--blanc);
  max-width: 700px;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1.5rem;
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   BANDEAU CHIFFRES
══════════════════════════════════════════════════════════════ */

.bandeau-stats {
  background: var(--schiste);
  padding: 3.5rem 2rem;
}

.bandeau-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: nowrap;
}

.stat-item {
  text-align: center;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ocre);
  white-space: nowrap;
  display: block;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  white-space: nowrap;
  display: block;
}

.stat-sep {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════
   GRILLE DE BLOCS
══════════════════════════════════════════════════════════════ */

.blocs-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bloc {
  padding: 2.5rem;
  background: var(--blanc);
  border-top: 3px solid var(--ocre);
}

.bloc h3 {
  margin-bottom: 0.75rem;
}

.bloc p {
  font-size: 0.9375rem;
  color: var(--sable);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   LISTE À POINTS
══════════════════════════════════════════════════════════════ */

.point-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.point-list li {
  padding-left: 1.25rem;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--sable);
  line-height: 1.7;
}

.point-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ocre);
}

.point-list li strong {
  color: var(--schiste);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 3 POINTS
══════════════════════════════════════════════════════════════ */

.trois-points {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}

.point-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.point-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--ocre-pale);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.point-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.point-content p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--sable);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   TABLEAU RESPONSIVE
══════════════════════════════════════════════════════════════ */

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead {
  background: var(--schiste);
  color: var(--blanc);
}

thead th {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

tbody tr:nth-child(odd) {
  background: var(--blanc);
}

tbody tr:nth-child(even) {
  background: var(--schiste-pale);
}

td {
  font-family: var(--font-body);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--calcaire);
  line-height: 1.5;
}

.td-check {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ocre);
  text-align: center;
}

.td-dash {
  color: var(--calcaire);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   CTA BLOCK
══════════════════════════════════════════════════════════════ */

.cta-block {
  background: var(--schiste);
  padding: 5rem 2rem;
  text-align: center;
}

.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 1rem;
}

.cta-block p {
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
}

.cta-block .btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */

/* Filtres */
.faq-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.faq-filter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border: 1px solid var(--calcaire);
  background: transparent;
  color: var(--schiste);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.faq-filter:hover,
.faq-filter.active {
  background: var(--schiste);
  color: var(--blanc);
  border-color: var(--schiste);
}

/* Groupe */
.faq-group {
  margin-bottom: 3rem;
}

.faq-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sable);
  border-bottom: 2px solid var(--calcaire);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Item */
.faq-item {
  border-bottom: 1px solid var(--calcaire);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--schiste);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--ocre);
}

.faq-icon {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--ocre);
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-answer {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--sable);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ══════════════════════════════════════════════════════════════
   FORMULAIRE
══════════════════════════════════════════════════════════════ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--schiste);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--calcaire);
  background: var(--blanc);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--schiste);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--schiste);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--schiste);
}

.radio-label input[type="radio"] {
  width: auto;
  accent-color: var(--schiste);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */

footer {
  background: var(--schiste);
  color: var(--blanc);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blanc);
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-contact-btn {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

  .blocs-grid {
    grid-template-columns: 1fr;
  }

  .trois-points {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .bandeau-stats-inner {
    flex-wrap: wrap;
  }

  .stat-sep {
    display: none;
  }
}
