/* Page /genie-climatique : complète site.css, dont elle réutilise les composants de la page Cession */

/* Barre du haut visible pendant tout le défilement : le corps de la page ne doit pas être limité à la hauteur de l'écran */
body{height:auto;min-height:100%}

/* ---------- Barre du haut : logo et bouton, sans menu ---------- */
.gc-header .btn.btn-nav{margin-top:0;order:0}
@media (max-width:480px){
  .gc-header{padding-top:1rem;padding-bottom:1rem;gap:.75rem}
  .gc-header .logo{height:2.4rem}
  .gc-header .btn.btn-nav{padding:.7rem .8rem;font-size:.78rem;white-space:nowrap}
}

/* ---------- Hero : voile renforcé, la photo étant très détaillée ---------- */
.gc-hero::after{background:linear-gradient(90deg, rgba(24,33,24,.92) 0%, rgba(24,33,24,.76) 50%, rgba(24,33,24,.3) 100%), linear-gradient(0deg, rgba(24,33,24,.55), transparent 55%)}

/* ---------- Titres et texte ---------- */
.method .gc-partie{font-family:var(--serif);font-weight:400;font-size:clamp(2.6rem,5vw,4.2rem);line-height:1.05;color:var(--text);margin-top:1rem;text-wrap:balance}
.method .gc-sub,.align .gc-sub{font-family:var(--serif);font-weight:400;font-size:clamp(2rem,3.4vw,3.2rem);line-height:1.08;color:var(--text);text-wrap:balance}
.gc-h4{font-family:var(--sans);font-weight:600;font-size:1.05rem;line-height:1.35}
.gc-text{max-width:37rem;color:var(--muted);letter-spacing:.03em}
.gc-h4 + .gc-text{margin-top:.6rem}
.gc-sub + .gc-cards,.gc-sub + .gc-lines,.gc-sub + .gc-table,.gc-sub + .method-steps{margin-top:clamp(1.5rem,4vh,2.5rem)}
.align-head .gc-sub + p{margin-top:1.25rem;color:var(--text);font-weight:500}
.gc-table + .gc-text{margin-top:2rem}
.gc-cta{margin-top:clamp(2rem,5vh,3rem)}
.gc-cta .btn{margin-top:0}

/* ---------- Encadrés ---------- */
.gc-suite{margin-top:clamp(1.75rem,4vh,2.5rem)}
.align.gc-stack{grid-template-columns:1fr;align-items:start;gap:clamp(1.75rem,4vh,2.75rem)}
/* Encadré contenant des compteurs : les filets restent affichés, seuls les chiffres apparaissent */
.sr-on .gc-static::before,.sr-on .gc-static .figures::before{transform:none;transition:none}

/* ---------- Chiffres clés : la présentation de Cession, sur quatre colonnes ---------- */
.figures.gc-figures-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.gc-figures-4 dt{display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(3.75rem,5.4vw,5rem)}
.gc-figures-4 dt small{margin-bottom:.3rem;font-size:1rem;line-height:1.2}
.gc-figures-4 dd{max-width:none}

/* ---------- Cartes, dans les verts de la charte ---------- */
.gc-cards{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,1.8vw,1.5rem)}
.gc-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.gc-card-large{grid-column:1 / -1}
.gc-card{
  height:100%;padding:clamp(1.5rem,2.6vw,2.25rem);border-radius:4px;color:var(--text);
  background:color-mix(in srgb, var(--accent) 7%, var(--paper));
  transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease;
}
.gc-card:hover{transform:translateY(-3px);box-shadow:0 18px 36px -24px rgba(45,58,44,.45)}
.gc-card--fonce{background:#243024;color:#F4F1EA}
.gc-card--vert{background:#3B4D3A;color:#F4F1EA}
.gc-card--sauge{background:var(--green-2)}
.gc-card--fonce .gc-text,.gc-card--vert .gc-text{color:rgba(244,241,234,.86)}
.gc-card--sauge .gc-text{color:var(--text)}
.gc-picto{width:1.9rem;height:1.9rem;margin-bottom:1.1rem;color:var(--accent)}
.gc-card--fonce .gc-picto,.gc-card--vert .gc-picto{color:var(--green-2)}
.gc-card-large .gc-card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(1.5rem,4vw,4rem)}
.gc-puces{list-style:none;letter-spacing:.03em;color:rgba(244,241,234,.86)}
.gc-puces li{position:relative;padding:.75rem 0 .75rem 1.1rem;border-top:1px solid rgba(167,178,159,.35)}
.gc-puces li:first-child{border-top:0;padding-top:0}
.gc-puces li::before{content:"";position:absolute;left:0;top:1.45em;width:.45rem;height:1px;background:var(--green-2)}
.gc-puces li:first-child::before{top:.75em}

/* ---------- Photos ---------- */
.gc-band{display:block;width:calc(100% - 2 * var(--pad));max-width:none;height:clamp(14rem,38vw,30rem);margin:clamp(3.5rem,9vh,6.5rem) var(--pad) 0;object-fit:cover;border-radius:4px}
.gc-photo{width:100%;height:100%;min-height:18rem;max-width:none;object-fit:cover;border-radius:4px}
.gc-photo--4-3{height:auto;min-height:0;aspect-ratio:4/3;margin-top:1.75rem}

/* ---------- Deux colonnes ---------- */
.gc-cols{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(2rem,6vw,6rem);align-items:start}
.gc-cols--stretch{align-items:stretch}
.gc-cols--egales{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:clamp(1.75rem,4vh,2.5rem)}

/* ---------- Barres : multiples et durée d'opération ---------- */
.gc-bars{display:grid;gap:2rem}
.gc-bars--cote{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem clamp(2rem,4vw,4rem)}
.gc-bar-label{display:block;margin-bottom:.7rem;font-weight:500;color:var(--text)}
.gc-bar{display:block;position:relative;height:.7rem;background:color-mix(in srgb, var(--accent) 12%, transparent);border-radius:2px;overflow:hidden}
.gc-bar i{position:absolute;top:0;bottom:0;left:var(--de);width:var(--taille);background:var(--accent);transform-origin:left center}
.gc-bar i.gc-bar-fourchette{background:var(--green-2)}
.sr-on .gc-bars .gc-bar i{transform:scaleX(0);transition:transform 1.2s cubic-bezier(.65,0,.35,1) calc(var(--sd,0s) + .2s)}
.sr-on .gc-bars.in .gc-bar i{transform:scaleX(1)}

/* ---------- Encadré vert ---------- */
.align--dark .gc-sub{color:#F4F1EA}
.align--dark .gc-text{color:rgba(244,241,234,.8)}
.gc-trio{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(2rem,4vw,4rem)}
.gc-trio > li{border-top:1px solid #A7B29F;padding-top:1.25rem}
.gc-drapeaux{display:flex;gap:.4rem;margin-bottom:.75rem}
.gc-drapeaux svg{width:1.5rem;height:1rem;border-radius:1px}

/* ---------- Listes à filets ---------- */
.gc-lines{list-style:none;max-width:37rem;color:var(--muted);letter-spacing:.03em}
.gc-lines li{padding:1.1rem 0;border-top:1px solid var(--line)}
.gc-lines li:first-child{border-top:0;padding-top:0}
.gc-lines strong{font-weight:500;color:var(--text)}
.gc-lines .gc-h4{color:var(--text);letter-spacing:0}

/* ---------- Tableau des acquéreurs ---------- */
.gc-table{width:100%;border-collapse:collapse;text-align:left}
.gc-table th{padding:0 1.5rem .8rem 0;font-size:.85rem;font-weight:600;color:var(--accent)}
.gc-table td{padding:1.1rem 1.5rem 1.1rem 0;border-top:1px solid var(--line);vertical-align:top;letter-spacing:.03em}
.gc-table tbody tr:first-child td{border-top:2px solid var(--accent)}
.gc-table td:first-child{width:42%;font-weight:500;color:var(--text)}
.gc-table td:last-child{padding-right:0;color:var(--muted)}

/* ---------- Étapes numérotées : titres en h4 ---------- */
.method-steps h4{margin-top:.75rem;font-family:var(--sans);font-weight:600;font-size:1.05rem;color:var(--text)}
.sr-on .step-sr h4{transition-delay:calc(var(--sd,0s) + .35s)}
/* Cinq étapes : trois colonnes, puis deux plus larges */
@media not all and (max-width:980px){
  .method-steps.gc-steps-5{grid-template-columns:repeat(6,minmax(0,1fr))}
  .gc-steps-5 li{grid-column:span 2}
  .gc-steps-5 li:nth-child(n+4){grid-column:span 3}
}

/* ---------- Bandeau final ---------- */
.align.gc-final{justify-items:center;text-align:center;margin-bottom:clamp(3.5rem,9vh,6.5rem)}
.gc-final .gc-sub{max-width:24ch}
.gc-final .gc-cta{margin-top:0}

/* ---------- Encart « combien vaut votre société ? » ---------- */
.gc-valo{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.25rem 2rem;
  margin-top:clamp(2rem,5vh,3rem);padding:clamp(1.5rem,3vw,2.25rem);
  background:color-mix(in srgb, var(--accent) 7%, var(--paper));border-left:3px solid var(--accent);border-radius:4px;
}
.gc-valo-titre{font-family:var(--serif);font-size:clamp(1.4rem,2.2vw,1.9rem);line-height:1.2;color:var(--text);text-wrap:balance}
.gc-valo .gc-text{margin-top:.5rem}
.gc-valo .btn{margin-top:0}

/* ---------- Tablette et téléphone ---------- */
@media (max-width:980px){
  .figures.gc-figures-4{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:1.5rem}
  .gc-figures-4 div:nth-child(3){padding-left:0;border-left:0}
  .gc-cols,.gc-card-large .gc-card,.gc-trio,.gc-cols--egales{grid-template-columns:1fr}
  .gc-cards--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .gc-cards,.gc-cards--3,.gc-bars--cote{grid-template-columns:1fr}
  .gc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .gc-table tr,.gc-table td{display:block;width:auto}
  .gc-table td:first-child{width:auto;padding:1.1rem 0 .25rem}
  .gc-table td:last-child{padding:0 0 1.1rem;border-top:0}
  .gc-table tbody tr:first-child td:last-child{border-top:0}
}
@media (max-width:600px){
  .figures.gc-figures-4{grid-template-columns:1fr;row-gap:0}
  .gc-figures-4 div:nth-child(3){border-top:1px solid var(--line)}
  .gc-figures-4 dt{min-height:0}
}
@media (prefers-reduced-motion:reduce){
  .gc-card{transition:none}
  .gc-card:hover{transform:none}
}
