/* ============================================================
   THERMIA RÉNOV — Feuille de style principale
   Utilise exclusivement les variables de tokens.css
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--tr-font-texte);
  color: #1a1a18;
  background: var(--tr-blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--tr-font-texte); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--tr-font-titre);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tr-vert-foret);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
p { color: var(--tr-gris-texte); line-height: 1.7; }

/* === LAYOUT UTILITIES === */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 5rem; }
.section--sable { background: var(--tr-sable); }
.section--foret {
  background: var(--tr-vert-foret);
}
.section--foret h2,
.section--foret h3 { color: var(--tr-blanc); }
.section--foret p { color: rgba(255,255,255,.8); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tr-terracotta);
  background: rgba(201,111,61,.1);
  padding: .3rem .85rem;
  border-radius: var(--tr-radius-badge);
  margin-bottom: .85rem;
}
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-intro h2 { margin-bottom: .75rem; }
.section-intro p { font-size: 1rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--tr-radius-badge);
  font-family: var(--tr-font-texte);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--tr-vert);
  color: var(--tr-blanc);
}
.btn--primary:hover {
  background: #195e3c;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(31,122,77,.35);
}
.btn--outline {
  background: transparent;
  color: var(--tr-vert);
  border: 2px solid var(--tr-vert);
}
.btn--outline:hover {
  background: var(--tr-vert);
  color: var(--tr-blanc);
}
.btn--white {
  background: var(--tr-blanc);
  color: var(--tr-vert);
}
.btn--white:hover {
  background: var(--tr-sable);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.btn--lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}
.btn--full { width: 100%; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--tr-vert);
  transition: box-shadow .2s;
  height: 64px;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.18); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 2px;
}
/* nav links en ligne — le ul doit être flex row */
.site-nav { display: none; align-items: center; }
.site-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
}
.site-nav a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: .15s;
}
.site-nav a:hover { color: var(--tr-blanc); background: rgba(255,255,255,.12); }
.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-tel {
  display: none;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 500;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.header-tel:hover { color: var(--tr-blanc); }
.btn--header {
  background: var(--tr-blanc);
  color: var(--tr-vert);
  padding: .55rem 1.1rem;
  font-size: .82rem;
  border-radius: var(--tr-radius-badge);
  font-weight: 700;
  white-space: nowrap;
}
.btn--header:hover {
  background: var(--tr-sable);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tr-blanc);
  border-radius: 2px;
  transition: .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--tr-vert-foret);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  outline: 2px solid rgba(255,255,255,.2);
  outline-offset: 3px;
}
.mobile-nav a {
  font-family: var(--tr-font-titre);
  font-size: 1.5rem;
  color: rgba(255,255,255,.85);
  padding: .75rem 2.5rem;
  border-radius: 8px;
  transition: .15s;
  text-align: center;
}
.mobile-nav a:hover { color: var(--tr-blanc); background: rgba(255,255,255,.08); }
.mobile-nav .mobile-nav-cta {
  margin-top: 1.5rem;
  background: var(--tr-vert);
  color: var(--tr-blanc);
  font-size: 1rem;
  padding: .9rem 2.25rem;
  border-radius: var(--tr-radius-badge);
}
.mobile-nav-tel {
  color: rgba(255,255,255,.5) !important;
  font-family: var(--tr-font-texte) !important;
  font-size: .875rem !important;
  font-weight: 400 !important;
  margin-top: .75rem;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-tel { display: flex; }
  .menu-toggle { display: none; }
}

/* === HERO === */
#hero {
  padding-top: calc(64px + 3.5rem);
  padding-bottom: 4rem;
  background: linear-gradient(160deg, #f2faf5 0%, #e8f4ee 60%, #f4efe4 100%);
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 55fr 45fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(31,122,77,.1);
  color: var(--tr-vert);
  font-size: .78rem;
  font-weight: 700;
  padding: .4rem 1rem;
  border-radius: var(--tr-radius-badge);
  border: 1.5px solid rgba(31,122,77,.2);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--tr-vert-foret);
}
.hero-content h1 .accent { color: var(--tr-terracotta); }
.hero-content > p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(31,122,77,.15);
  margin-top: .5rem;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--tr-font-titre);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--tr-terracotta);
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: var(--tr-gris-texte);
  margin-top: .25rem;
}

/* === SIMULATOR CARD === */
.sim-card {
  background: var(--tr-sable);
  border-radius: var(--tr-radius-card);
  padding: 2rem;
  box-shadow: 0 12px 48px rgba(13,68,41,.12), 0 2px 8px rgba(0,0,0,.05);
  border: 1.5px solid rgba(31,122,77,.1);
}
.sim-card-header { margin-bottom: 1.5rem; }
.sim-card-title {
  font-family: var(--tr-font-titre);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tr-vert-foret);
  margin-bottom: .25rem;
}
.sim-card-sub {
  font-size: .82rem;
  color: var(--tr-gris-texte);
}
.sim-field { margin-bottom: 1.25rem; }
.sim-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--tr-vert-foret);
  margin-bottom: .5rem;
  font-family: var(--tr-font-texte);
}

/* Slider */
.sim-slider-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sim-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 5px;
  background: #d4cfc5;
  outline: none;
  cursor: pointer;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tr-vert);
  border: 3px solid var(--tr-blanc);
  box-shadow: 0 2px 8px rgba(31,122,77,.45);
  cursor: pointer;
  transition: transform .15s;
}
.sim-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.sim-slider-val {
  font-family: var(--tr-font-titre);
  font-weight: 700;
  color: var(--tr-vert);
  min-width: 4rem;
  text-align: right;
  font-size: .95rem;
}

/* Energy pills */
.sim-energie-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.sim-energie-item { position: relative; }
.sim-energie-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.sim-energie-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .65rem .5rem;
  background: var(--tr-blanc);
  border: 1.5px solid #d4cfc5;
  border-radius: 8px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  color: var(--tr-gris-texte);
  transition: .15s;
  text-align: center;
  line-height: 1.2;
  font-family: var(--tr-font-texte);
  user-select: none;
}
.sim-energie-label svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sim-energie-item input:checked + .sim-energie-label {
  background: var(--tr-vert);
  border-color: var(--tr-vert);
  color: var(--tr-blanc);
  box-shadow: 0 2px 8px rgba(31,122,77,.3);
}
.sim-energie-item input:checked + .sim-energie-label svg path,
.sim-energie-item input:checked + .sim-energie-label svg circle,
.sim-energie-item input:checked + .sim-energie-label svg line {
  stroke: var(--tr-blanc);
}

/* Select */
.sim-select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #d4cfc5;
  border-radius: 8px;
  font-family: var(--tr-font-texte);
  font-size: .875rem;
  color: var(--tr-vert-foret);
  background: var(--tr-blanc);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F7A4D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  cursor: pointer;
  transition: border-color .15s;
}
.sim-select:focus { outline: none; border-color: var(--tr-vert); }

/* Simulator result */
.sim-result {
  margin-top: 1.25rem;
  background: var(--tr-vert-foret);
  border-radius: 10px;
  padding: 1.5rem;
  display: none;
  animation: fadeUp .3s ease;
}
.sim-result.visible { display: block; }
.sim-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.sim-result-item { text-align: center; }
.sim-result-num {
  font-family: var(--tr-font-titre);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--tr-terracotta);
  display: block;
  line-height: 1;
}
.sim-result-label {
  font-size: .74rem;
  color: rgba(255,255,255,.7);
  display: block;
  margin-top: .25rem;
  line-height: 1.3;
}
.sim-result-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: .75rem 0;
}
.sim-roi {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  margin-bottom: 1.25rem;
}
.sim-roi strong { color: var(--tr-blanc); }
.sim-disclaimer {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin-top: .75rem;
}
.sim-result .btn {
  font-size: .875rem;
  padding: .75rem 1.25rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CERTIFICATIONS STRIP === */
#certifications {
  background: var(--tr-vert-foret);
  padding-block: 2.75rem;
}
.certif-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .certif-inner {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }
}
.certif-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}
.certif-badge {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--tr-radius-card);
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 88px;
}
.certif-badge-icon {
  font-size: 1.5rem;
  margin-bottom: .4rem;
  display: block;
}
.certif-badge-name {
  font-family: var(--tr-font-titre);
  font-size: .9rem;
  font-weight: 700;
  color: var(--tr-blanc);
  display: block;
  line-height: 1.1;
}
.certif-badge-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  display: block;
  margin-top: .2rem;
}
.certif-content h3 {
  color: var(--tr-blanc);
  margin-bottom: .5rem;
  font-size: 1.15rem;
}
.certif-content p {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  max-width: 600px;
}
.certif-content p strong { color: var(--tr-blanc); }

/* === FONCTIONNEMENT === */
.pac-schema-wrap {
  max-width: 680px;
  margin: 0 auto 3rem;
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  border: 1.5px solid #e8e4dc;
  overflow: hidden;
}
.comparatif-wrap { overflow-x: auto; margin-bottom: 2rem; }
.comparatif-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 440px;
}
.comparatif-table thead th {
  background: var(--tr-vert-foret);
  color: var(--tr-blanc);
  font-family: var(--tr-font-titre);
  font-size: .875rem;
  padding: .9rem 1.1rem;
  text-align: left;
}
.comparatif-table thead th:not(:first-child) { text-align: center; }
.comparatif-table td {
  padding: .85rem 1.1rem;
  font-size: .875rem;
  color: var(--tr-gris-texte);
  border-bottom: 1px solid #eee;
}
.comparatif-table td:not(:first-child) { text-align: center; font-weight: 600; }
.comparatif-table tr:nth-child(even) td { background: #f9f8f5; }
.comparatif-table .td-label { color: var(--tr-vert-foret); font-weight: 600; }
.best { color: var(--tr-vert) !important; }
.worst { color: #c74a3a !important; }
.mid { color: var(--tr-gris-texte) !important; }
.cop-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: rgba(31,122,77,.06);
  border: 1.5px solid rgba(31,122,77,.15);
  border-radius: var(--tr-radius-card);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.cop-formula {
  font-family: var(--tr-font-titre);
  font-size: 1.05rem;
  color: var(--tr-vert-foret);
  font-weight: 700;
  white-space: nowrap;
}
.cop-formula .accent { color: var(--tr-terracotta); }
.cop-text { font-size: .875rem; color: var(--tr-gris-texte); }

/* === AIDES === */
.aides-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .aides-grid { grid-template-columns: 1fr 1fr; }
}
.aide-card {
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border-top: 4px solid var(--tr-vert);
}
.aide-card--cee { border-top-color: var(--tr-terracotta); }
.aide-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tr-gris-texte);
  margin-bottom: .5rem;
}
.aide-montant {
  font-family: var(--tr-font-titre);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tr-vert);
  line-height: 1;
  margin-bottom: 1rem;
}
.aide-card--cee .aide-montant { color: var(--tr-terracotta); }
.aide-card h3 { margin-bottom: .75rem; font-size: 1.1rem; }
.aide-card ul { display: flex; flex-direction: column; gap: .5rem; }
.aide-card li {
  font-size: .875rem;
  color: var(--tr-gris-texte);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.4;
}
.aide-check {
  color: var(--tr-vert);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}
.aide-card--cee .aide-check { color: var(--tr-terracotta); }
.aides-dossier {
  background: var(--tr-vert);
  border-radius: var(--tr-radius-card);
  padding: 2rem 2.25rem;
  color: var(--tr-blanc);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.aides-dossier-icon { font-size: 2.5rem; flex-shrink: 0; }
.aides-dossier-text h3 { color: var(--tr-blanc); margin-bottom: .4rem; }
.aides-dossier-text p { color: rgba(255,255,255,.85); font-size: .9rem; }

/* === AVIS === */
.avis-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  border: 1.5px solid #e8e4dc;
}
.avis-stat { text-align: center; }
.avis-stat-num {
  font-family: var(--tr-font-titre);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tr-terracotta);
  display: block;
  line-height: 1;
}
.avis-stat-label {
  font-size: .78rem;
  color: var(--tr-gris-texte);
  margin-top: .2rem;
  display: block;
}
.stars { color: #f5b73d; letter-spacing: .1em; }
.temoignages {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .temoignages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .temoignages { grid-template-columns: repeat(3, 1fr); } }
.temoignage {
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.temoignage-stars { color: #f5b73d; font-size: 1rem; }
.temoignage-quote {
  font-size: .9rem;
  color: var(--tr-gris-texte);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.temoignage-author-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.temoignage-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8e4dc;
  flex-shrink: 0;
}
.temoignage-name {
  font-weight: 700;
  font-size: .875rem;
  color: var(--tr-vert-foret);
  display: block;
}
.temoignage-eco {
  font-size: .78rem;
  color: var(--tr-gris-texte);
  margin-top: .2rem;
  display: block;
}
.temoignage-eco strong { color: var(--tr-vert); font-weight: 700; }
.avis-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(31,122,77,.06);
  border-radius: var(--tr-radius-card);
  border: 1px solid rgba(31,122,77,.12);
}
.avis-cta p { font-size: .875rem; margin-bottom: .75rem; }

/* === PROCESS === */
.process-steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step-left { flex-shrink: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.process-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tr-vert);
  color: var(--tr-blanc);
  font-family: var(--tr-font-titre);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.process-step-connector {
  width: 2px;
  flex: 1;
  background: rgba(31,122,77,.2);
  margin-top: .5rem;
  min-height: 30px;
}
.process-step:last-child .process-step-connector { display: none; }
.process-step-body { padding-top: .6rem; }
.process-step-body h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.process-step-body p { font-size: .875rem; color: var(--tr-gris-texte); }
.process-timing {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  color: var(--tr-terracotta);
  background: rgba(201,111,61,.1);
  padding: .2rem .65rem;
  border-radius: 100px;
  margin-top: .5rem;
}

/* === FAQ === */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  border: 1.5px solid #e8e4dc;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-family: var(--tr-font-titre);
  font-weight: 700;
  font-size: .95rem;
  color: var(--tr-vert-foret);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq-question:hover { background: #faf8f4; }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(31,122,77,.1);
  color: var(--tr-vert);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.faq-answer p {
  font-size: .9rem;
  color: var(--tr-gris-texte);
  line-height: 1.7;
}
.faq-answer p + p { margin-top: .5rem; }
.faq-answer strong { color: var(--tr-vert-foret); }

/* === CONTACT / CTA FINAL === */
#contact { padding-block: 5rem; }
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-left h2 { color: var(--tr-blanc); margin-bottom: 1rem; }
.contact-left > p { color: rgba(255,255,255,.82); margin-bottom: 2rem; font-size: .95rem; }
.contact-reassurance { display: flex; flex-direction: column; gap: .9rem; }
.contact-reassurance li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
}
.contact-check {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
  color: #7ddfab;
  font-weight: 700;
  margin-top: .1rem;
}
.contact-form-wrap {
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}
.contact-form-title {
  font-family: var(--tr-font-titre);
  font-size: 1.05rem;
  color: var(--tr-vert-foret);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.form-grid {
  display: grid;
  gap: .85rem;
  margin-bottom: .85rem;
}
@media (min-width: 400px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .col-full { grid-column: 1 / -1; }
}
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--tr-vert-foret);
  font-family: var(--tr-font-texte);
}
.form-input,
.form-textarea,
.form-select-field {
  padding: .7rem .9rem;
  border: 1.5px solid #d4cfc5;
  border-radius: 8px;
  font-family: var(--tr-font-texte);
  font-size: .875rem;
  color: var(--tr-vert-foret);
  background: #faf8f4;
  transition: border-color .15s, background .15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select-field:focus {
  outline: none;
  border-color: var(--tr-vert);
  background: var(--tr-blanc);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F7A4D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-color: #faf8f4;
  cursor: pointer;
}
.form-note {
  font-size: .75rem;
  color: var(--tr-gris-texte);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.form-submit-btn {
  width: 100%;
  position: relative;
}
.form-submit-btn .btn-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--tr-radius-badge);
  background: var(--tr-vert);
  color: var(--tr-blanc);
  font-weight: 700;
}
.form-submit-btn.loading > .btn { opacity: 0; pointer-events: none; }
.form-submit-btn.loading .btn-loading { display: flex; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--tr-blanc);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.visible { display: block; animation: fadeUp .4s ease; }
.form-success-icon { font-size: 3rem; margin-bottom: .75rem; }
.form-success h3 { color: var(--tr-vert); margin-bottom: .5rem; }
.form-success p { font-size: .875rem; color: var(--tr-gris-texte); }

/* === FOOTER === */
.site-footer {
  background: #0a3520;
  padding-block: 3.5rem 1.5rem;
}
.footer-main {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand { }
.footer-brand img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 1.25rem;
}
.footer-certifs { display: flex; gap: .75rem; }
.footer-certif-badge {
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: .35rem .6rem;
  text-align: center;
  line-height: 1.2;
}
.footer-col h4 {
  color: var(--tr-blanc);
  font-family: var(--tr-font-titre);
  font-size: .875rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
hr.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-bottom p, .footer-bottom a {
  font-size: .76rem;
  color: rgba(255,255,255,.38);
}
.footer-bottom a:hover { color: rgba(255,255,255,.6); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

/* === BLOC MARTIN (signature humaine) === */
.martin-block {
  background: var(--tr-sable);
  border-radius: var(--tr-radius-card);
  padding: 2rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  border: 1.5px solid #e8e4dc;
}
.martin-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tr-blanc);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  flex-shrink: 0;
}
.martin-quote-text {
  font-size: .95rem;
  color: var(--tr-gris-texte);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: .75rem;
}
.martin-signature {
  font-family: var(--tr-font-titre);
  font-size: .85rem;
  font-weight: 700;
  color: var(--tr-vert-foret);
}
.martin-signature span {
  display: block;
  font-family: var(--tr-font-texte);
  font-weight: 400;
  font-style: normal;
  font-size: .78rem;
  color: var(--tr-gris-texte);
  margin-top: .15rem;
}

/* === PHOTO STRIP / GALERIE === */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 3rem;
}
.photo-strip-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e4dc;
  position: relative;
}
.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.photo-strip-item:hover img { transform: scale(1.04); }
.photo-strip-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,68,41,.75), transparent);
  color: white;
  font-size: .72rem;
  font-weight: 600;
  padding: .75rem .6rem .4rem;
}

/* === HERO PHOTO INSET === */
.hero-photo-inset {
  display: none;
  position: relative;
  border-radius: var(--tr-radius-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/7;
}
.hero-photo-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-badge {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  background: rgba(13,68,41,.88);
  backdrop-filter: blur(8px);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
}
@media (min-width: 900px) {
  .hero-photo-inset { display: block; }
}

/* === SECTION PHOTO CÔTE À CÔTE === */
.split-photo-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .split-photo-grid { grid-template-columns: 1fr 1fr; }
}
.split-photo-img {
  border-radius: var(--tr-radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e4dc;
}
.split-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === PAGE AIDES === */
.aides-hero {
  background: linear-gradient(160deg, #f2faf5 0%, #e8f4ee 100%);
  padding-top: calc(64px + 4rem);
  padding-bottom: 4rem;
}
.aides-hero h1 { margin-bottom: 1rem; }
.aides-hero p { font-size: 1.05rem; max-width: 580px; }
.tranche-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .tranche-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tranche-cards { grid-template-columns: repeat(4, 1fr); } }
.tranche-card {
  border-radius: var(--tr-radius-card);
  padding: 1.5rem;
  border-left: 4px solid;
  background: var(--tr-blanc);
  box-shadow: 0 3px 16px rgba(0,0,0,.06);
}
.tranche-card--bleu { border-color: #2196F3; }
.tranche-card--jaune { border-color: #FFC107; }
.tranche-card--violet { border-color: #9C27B0; }
.tranche-card--rose { border-color: #E91E63; }
.tranche-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
  color: var(--tr-gris-texte);
}
.tranche-montant {
  font-family: var(--tr-font-titre);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tr-vert-foret);
  line-height: 1;
  margin-bottom: .35rem;
}
.tranche-taux { font-size: .82rem; color: var(--tr-gris-texte); }

/* === PAGE SIMULATEUR === */
.simulateur-hero {
  background: linear-gradient(160deg, #f2faf5 0%, #e8f4ee 100%);
  padding-top: calc(64px + 4rem);
  padding-bottom: 4rem;
  text-align: center;
}
.simulateur-hero h1 { margin-bottom: 1rem; }
.simulateur-hero p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.sim-full-card {
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  box-shadow: 0 8px 48px rgba(0,0,0,.09);
  border: 1.5px solid #e8e4dc;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.sim-full-steps {
  display: flex;
  border-bottom: 1.5px solid #e8e4dc;
  overflow-x: auto;
}
.sim-step-tab {
  flex: 1;
  min-width: 100px;
  padding: 1rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--tr-gris-texte);
  border-bottom: 2px solid transparent;
  transition: .2s;
}
.sim-step-tab.active {
  color: var(--tr-vert);
  border-bottom-color: var(--tr-vert);
  background: rgba(31,122,77,.04);
}
.sim-step-tab-num {
  display: block;
  font-family: var(--tr-font-titre);
  font-size: 1.1rem;
  color: var(--tr-vert);
  margin-bottom: .2rem;
}
.sim-full-body { padding: 2.5rem; }
.sim-full-result {
  background: var(--tr-sable);
  padding: 2.5rem;
  border-top: 1.5px solid #e8e4dc;
}
.sim-full-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .sim-full-result-grid { grid-template-columns: repeat(4, 1fr); }
}
.sim-full-result-item {
  background: var(--tr-blanc);
  border-radius: var(--tr-radius-card);
  padding: 1.25rem;
  text-align: center;
  border: 1.5px solid #e8e4dc;
}
.sim-full-result-num {
  font-family: var(--tr-font-titre);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tr-terracotta);
  display: block;
  line-height: 1;
  margin-bottom: .35rem;
}
.sim-full-result-label {
  font-size: .76rem;
  color: var(--tr-gris-texte);
  line-height: 1.3;
}

/* === PAGE MENTIONS LÉGALES === */
.mentions-hero {
  padding-top: calc(64px + 3rem);
  padding-bottom: 3rem;
  background: var(--tr-sable);
}
.mentions-content {
  max-width: 760px;
  margin: 0 auto;
}
.mentions-content h2 {
  font-size: 1.15rem;
  margin: 2rem 0 .75rem;
}
.mentions-content p { font-size: .9rem; margin-bottom: .75rem; }

/* === UTILITY === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* === RESPONSIVE TWEAKS === */
@media (max-width: 639px) {
  .section { padding-block: 3.5rem; }
  #hero { padding-bottom: 3rem; }
  .sim-card { padding: 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .footer-main { gap: 2rem; }
  .aides-dossier { flex-direction: column; }
}
