/* HM Energy : feuille de style unique
   Palette reprise du devis : gris taupe, gris clair, blanc cassé du logo
   Typo : Archivo (largeur variable) pour la structure, Source Serif 4 pour la lecture */

@font-face {
  font-family: "Archivo HM";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-wdth.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo HM";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-ext-wdth.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif HM";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif HM";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-italic.woff2") format("woff2");
}

:root {
  --frost: #f4f3f1;      /* fond de page, dérivé du blanc cassé du logo #ecebe7 */
  --mist: #e6e4e1;       /* bandes de section claires */
  --ice: #d0cece;        /* gris clair du devis : traits, panneau clair */
  --sea: #464343;        /* taupe foncé du devis : liens, chiffres */
  --sea-deep: #262323;
  --ink: #1c1a1a;
  --ink-soft: #545050;
  --taupe: #746f6f;      /* taupe clair du devis */
  --panel: #464343;      /* fonds sombres */
  --panel-text: #ecebe7;
  --white: #ffffff;
  --copper: #b4532a;     /* accent boutons : cuivre des tuyauteries */
  --copper-dark: #963f1d;
  --copper-hover: #c45f33;

  --ui: "Archivo HM", "Helvetica Neue", Arial, sans-serif;
  --read: "Source Serif HM", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--read);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--sea); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section--ink :focus-visible, .split > article:first-child :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; font-family: var(--ui); z-index: 100; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--ui); font-stretch: 118%; font-weight: 700; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-stretch: 108%; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }

ul.plain { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--panel); color: var(--panel-text); }
.section--ink .lead, .section--ink p { color: #d7d4d4; }
.section--ink a { color: var(--ice); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 243, 241, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ice); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 2.1rem; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-family: var(--ui); font-weight: 550; font-size: 0.98rem; color: var(--ink); text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--taupe); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav a.btn { border-bottom: 0; padding: 0.7rem 1.1rem; color: var(--white); }
.nav a.btn:hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 0.55rem 0.8rem; font-family: var(--ui); font-weight: 600; font-size: 0.95rem; color: var(--ink); cursor: pointer; }

/* Boutons */
.btn { display: inline-block; font-family: var(--ui); font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none; padding: 1rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--copper); background: var(--copper); color: var(--white); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.section--ink .btn { background: var(--copper); color: var(--white); border-color: var(--copper); }
.section--ink .btn:hover { background: var(--copper-hover); border-color: var(--copper-hover); color: var(--white); }
.section--ink .btn--ghost { background: transparent; color: var(--frost); border-color: var(--frost); }
.section--ink .btn--ghost:hover { background: var(--frost); color: var(--ink); border-color: var(--frost); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Hero : titre + règle des températures */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 0.5em; }

.scale { position: relative; margin: 0; padding: 0 0 0 1.7rem; }
.scale::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 8px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #c8663a 0%, #d3a27c 24%, #a8a3a3 50%, #7394a8 76%, #2f5f7d 100%);
  transform-origin: top;
}
.scale li { position: relative; display: grid; grid-template-columns: 9.4rem 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0 1rem 1rem; border-bottom: 1px solid var(--ice); }
.scale li:last-child { border-bottom: 0; }
.scale li::before { content: ""; position: absolute; left: -0.55rem; top: 1.55rem; width: 1.05rem; height: 3px; background: var(--ink); }
.scale li:nth-child(1)::before { background: #a9492a; }
.scale li:nth-child(2)::before { background: #a5764f; }
.scale li:nth-child(3)::before { background: #6f6a6a; }
.scale li:nth-child(4)::before { background: #4f7189; }
.scale li:nth-child(5)::before { background: #244b66; }
.scale .t { font-family: var(--ui); font-stretch: 122%; font-weight: 750; font-size: 1.05rem; white-space: nowrap; letter-spacing: -0.01em; }
.scale .d { font-size: 1rem; line-height: 1.4; color: var(--ink-soft); }
.scale .d strong { display: block; font-family: var(--ui); font-weight: 650; font-size: 1.02rem; color: var(--ink); }
.scale-note { font-size: 0.92rem; color: var(--ink-soft); margin: 1rem 0 0 1.7rem; max-width: 46ch; }

/* Un seul moment animé : la règle se trace au chargement */
@media (prefers-reduced-motion: no-preference) {
  .scale::before { animation: draw 1.1s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
  .scale li { animation: show 0.5s ease-out both; }
  .scale li:nth-child(1) { animation-delay: 0.15s; }
  .scale li:nth-child(2) { animation-delay: 0.35s; }
  .scale li:nth-child(3) { animation-delay: 0.55s; }
  .scale li:nth-child(4) { animation-delay: 0.75s; }
  .scale li:nth-child(5) { animation-delay: 0.95s; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes show { from { opacity: 0; } to { opacity: 1; } }
}

/* Deux métiers */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > article { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); }
.split > article:first-child { background: var(--panel); color: var(--panel-text); }
.split > article:first-child p { color: #d7d4d4; }
.split > article:first-child a.more { color: var(--ice); }
.split > article:last-child { background: var(--ice); }
.split h2 { margin-bottom: 0.5em; }
.split .inner { max-width: 33rem; margin-inline: auto; }
.split > article:first-child .inner { margin-left: auto; margin-right: 0; }
.split > article:last-child .inner { margin-left: 0; margin-right: auto; }
.split ul { margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.split li { padding: 0.55rem 0; border-top: 1px solid rgba(28, 26, 26, 0.22); font-size: 1.02rem; }
.split > article:first-child li { border-top-color: rgba(236, 235, 231, 0.25); }
.split a.more { font-family: var(--ui); font-weight: 650; color: var(--ink); text-underline-offset: 0.3em; }

/* Blocs texte à deux colonnes */
.cols { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); }
.cols > div > :last-child { margin-bottom: 0; }

.facts { display: grid; gap: 0; }
.facts > div { padding: 1.3rem 0; border-top: 1px solid var(--ice); }
.facts > div:last-child { border-bottom: 1px solid var(--ice); }
.facts h3 { margin-bottom: 0.35em; }
.facts p { margin: 0; color: var(--ink-soft); }

/* Étapes : ici la numérotation est justifiée, c'est une vraie séquence */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--ice); }
.steps li:last-child { border-bottom: 1px solid var(--ice); }
.steps li::before { content: counter(step); font-family: var(--ui); font-stretch: 125%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--taupe); }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Secteurs */
.sectors { margin: 0; padding: 0; list-style: none; }
.sectors > li { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 1rem 2rem; padding: 1.25rem 0; border-top: 1px solid var(--taupe); }
.sectors > li:last-child { border-bottom: 1px solid var(--taupe); }
.sectors h3 { margin: 0; font-size: 1.15rem; }
.sectors p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* Livrables (page études) */
.deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.deliverables > div { background: var(--white); border: 1px solid var(--ice); padding: 1.6rem; border-radius: var(--radius); }
/* la dernière carte impaire occupe toute la largeur */
.deliverables > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.deliverables > div:nth-child(3n + 1) { border-top: 4px solid var(--sea); }
.deliverables > div:nth-child(3n + 2) { border-top: 4px solid var(--taupe); }
.deliverables > div:nth-child(3n) { border-top: 4px solid var(--ink); }
.deliverables h3 { margin-bottom: 0.4em; }
.deliverables p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* Page intérieure */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--ice); }
.page-head h1 { max-width: 20ch; }

/* Formulaire */
.form { display: grid; gap: 1.3rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--ui); font-weight: 600; font-size: 0.98rem; }
.field .hint { font-size: 0.9rem; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-family: var(--read); font-size: 1.05rem; padding: 0.85rem 0.9rem; border: 1.5px solid var(--sea); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.consent input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--sea); flex: none; }
.consent span { max-width: 60ch; }
.form-status { font-family: var(--ui); font-weight: 600; min-height: 1.5em; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-side { border-left: 3px solid var(--ice); padding-left: clamp(1.25rem, 3vw, 2rem); }
.contact-side h2 { font-size: 1.4rem; }
.contact-side p { margin-bottom: 0.7em; }

/* Texte légal */
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal .wrap > h2:first-child { margin-top: 0; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2rem; }

/* À compléter : repérable en relecture, à retirer avant mise en ligne */
.todo { background: #fff1b8; color: #4a3a00; padding: 0.05em 0.35em; border-radius: 3px; font-family: var(--ui); font-size: 0.92em; font-weight: 600; }

.steps--flush { margin-top: 0; }

/* Pied de page */
.site-footer { background: var(--panel); color: #d7d4d4; padding-block: 3.5rem 2.5rem; font-size: 0.98rem; }
.site-footer a { color: var(--frost); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot-logo { height: 2.1rem; width: auto; filter: invert(1); margin-bottom: 1.2rem; }
.site-footer h2 { font-size: 1rem; font-stretch: 105%; color: var(--frost); margin-bottom: 0.8em; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer p { margin: 0 0 0.5em; max-width: 36ch; }
.fine { grid-column: 1 / -1; max-width: none !important; border-top: 1px solid rgba(236, 235, 231, 0.2); padding-top: 1.5rem; font-size: 0.88rem; color: #b5b0b0; line-height: 1.6; }

/* Adaptation mobile et tablette */
@media (max-width: 62rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cols, .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-left: 0; border-top: 3px solid var(--ice); padding: 1.5rem 0 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--frost); border-bottom: 1px solid var(--ice); padding: 0.5rem var(--gutter) 1.25rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--ice); }
  .nav a.btn { margin-top: 1rem; text-align: center; border: 2px solid var(--copper); }
  .split { grid-template-columns: 1fr; }
  .split .inner, .split > article:first-child .inner, .split > article:last-child .inner { margin-inline: 0; max-width: none; }
  .sectors > li { grid-template-columns: 1fr; gap: 0.3rem; }
  .deliverables, .row2 { grid-template-columns: 1fr; }
  .scale li { grid-template-columns: 8.2rem 1fr; }
  .brand img { height: 1.8rem; }
}

@media (max-width: 34rem) {
  .hero h1 { font-size: 1.85rem; font-stretch: 100%; line-height: 1.12; letter-spacing: -0.005em; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  body { font-size: 1.05rem; }
}

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

@media print {
  .site-header, .site-footer, .nav-toggle, .actions { display: none; }
  body { background: #fff; }
}

/* Tableaux d'information */
.scroll { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.tbl thead th { background: var(--sea); color: var(--white); text-align: left; padding: 0.7rem 0.9rem; font-family: var(--ui); font-size: 0.9rem; font-weight: 650; }
table.tbl tbody td, table.tbl tbody th { border: 1px solid var(--taupe); padding: 0.7rem 0.9rem; vertical-align: top; text-align: left; }
table.tbl tbody th { font-family: var(--ui); font-weight: 650; background: var(--mist); }

/* Questions fréquentes */
.qa { border-top: 1px solid var(--taupe); }
.qa:last-of-type { border-bottom: 1px solid var(--taupe); }
.qa summary { font-family: var(--ui); font-weight: 650; font-size: 1.08rem; padding: 1.1rem 2.5rem 1.1rem 0; cursor: pointer; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.9rem; font-size: 1.6rem; line-height: 1; font-weight: 400; color: var(--taupe); }
.qa[open] summary::after { content: "\2212"; }
.qa > div { padding: 0 0 1.3rem; max-width: 68ch; color: var(--ink-soft); }
.qa > div p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 3rem; }
.faq-group:first-child { margin-top: 0; }

/* Sommaire de page */
.toc { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-family: var(--ui); font-weight: 600; }
.toc a { color: var(--ink); }
.updated { font-family: var(--ui); font-size: 0.95rem; color: var(--ink-soft); }
.note { border-left: 3px solid var(--taupe); padding: 0.2rem 0 0.2rem 1rem; color: var(--ink-soft); font-size: 1rem; max-width: 68ch; }
.res h2 { margin-top: 0; }
.res h3 { margin-top: 1.6em; }
.res .bullets, .bullets { margin: 0 0 1.3rem; padding-left: 1.2rem; max-width: 68ch; }
.bullets li { margin-bottom: 0.45rem; }

/* Barre d'appel fixe sur mobile */
.callbar { display: none; }
@media (max-width: 52rem) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 1px solid rgba(236, 235, 231, 0.25); }
  .callbar a { text-align: center; padding: 0.95rem 0.5rem; font-family: var(--ui); font-weight: 700; font-size: 1rem; color: var(--white); text-decoration: none; }
  .callbar a + a { background: var(--copper); color: var(--white); }
  .callbar :focus-visible { outline-color: var(--white); outline-offset: -4px; }
  body { padding-bottom: 3.6rem; }
}


/* Photos */
figure { margin: 0; }
figcaption { font-family: var(--ui); font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft); margin-top: 0.6rem; }
.photos { padding-block: 0 clamp(3rem, 6vw, 5rem); }
.photos .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.photos img { width: 100%; height: clamp(18rem, 34vw, 29rem); object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.photos .ph--tall img { object-position: 50% 45%; }
.gallery { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.gallery .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.6rem); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.gallery figure:nth-child(2) img { object-position: 78% 50%; }
.example-title { margin-top: clamp(2.5rem, 5vw, 4rem); }
.example { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; margin-top: 1.5rem; }
.example .plan > a { display: block; background: var(--white); border: 1px solid var(--ice); border-radius: var(--radius); padding: 0.6rem; }
.example .plan img, .example .ph-side img { width: 100%; height: auto; border-radius: var(--radius); }
.example .ph-side img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
@media (max-width: 52rem) {
  .photos .wrap, .example { grid-template-columns: 1fr; }
  .photos img { height: auto; aspect-ratio: 4 / 3; }
  .gallery .wrap { grid-template-columns: 1fr; }
}

/* Piège à robots du formulaire : hors écran, jamais visible */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }

/* Les colonnes de grille ne doivent jamais dépasser l'écran (tableaux larges) */
.cols > div, .contact-grid > * { min-width: 0; }

/* Page Ressources : sections repliables */
.qa--res summary { font-size: 1.3rem; font-stretch: 112%; padding-block: 1.4rem; }
.qa--res summary::after { top: 1.2rem; }
.qa--res > div { max-width: none; padding-top: 0.3rem; }
.qa--res > div > h3:first-child { margin-top: 0.4em; }
.qa--res .tbl { min-width: 0; }
.toc--col { flex-direction: column; gap: 0.5rem; margin-top: 1.2rem; }
.section--mist .qa { border-top-color: var(--taupe); }

/* Sélecteur de langue */
.nav a.lang { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--taupe); border: 1px solid var(--ice); border-radius: var(--radius); padding: 0.3rem 0.55rem; }
.nav a.lang:hover { color: var(--ink); border-color: var(--taupe); }
@media (max-width: 52rem) { .nav a.lang { align-self: flex-start; margin-top: 0.75rem; border: 1px solid var(--ice); padding: 0.45rem 0.8rem; } }

/* Page contact : texte et coordonnées à gauche, formulaire à droite, visible dès l'ouverture */
.contact-page { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "intro form" "side form"; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.75rem; align-items: start; }
.contact-split > * { min-width: 0; }
.contact-intro { grid-area: intro; }
.contact-intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 14ch; margin-bottom: 0.5em; }
.contact-intro .lead { font-size: 1.12rem; }
.contact-split .form { grid-area: form; max-width: none; gap: 1.1rem; }
.contact-split .form textarea { min-height: 7.5rem; }
.contact-split .contact-side { grid-area: side; }
@media (max-width: 62rem) {
  .contact-split { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "side"; }
  .contact-intro h1 { max-width: none; }
}
.contact-split .form { gap: 0.9rem; }
.contact-split .field input, .contact-split .field select { padding-block: 0.5rem; }
.contact-split .form textarea { min-height: 5.5rem; }
.contact-split .consent { margin-block: 0; }

/* ===== Refonte : icônes, cartes, étapes en ligne, bloc fondateur ===== */
.btn--ghost:hover { background: var(--sea); border-color: var(--sea); color: var(--white); }
.ico { width: 1.9rem; height: 1.9rem; color: var(--copper); flex: none; }
.split > article:first-child .ico { color: #e79a72; }
.split-ico { margin-bottom: 0.9rem; }
.split-ico .ico { width: 2.3rem; height: 2.3rem; }

/* Hero : titre à mot-clé, phrase d'accroche dessous */
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.3rem); margin-bottom: 0.45em; max-width: 18ch; }
.hero .tagline { font-family: var(--ui); font-stretch: 112%; font-weight: 650; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.3; color: var(--ink); margin: 0 0 0.9rem; max-width: 30ch; }
.hero .lead { font-size: 1.15rem; }

/* Cartes d'avantages */
.cards-head { max-width: 46rem; margin-bottom: 2rem; }
.cards-head .lead { margin-bottom: 0; }
.adv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.adv > div { background: var(--white); border: 1px solid var(--ice); border-radius: var(--radius); padding: 1.5rem 1.35rem 1.6rem; }
.adv h3 { font-size: 1.1rem; margin: 0.8rem 0 0.4rem; }
.adv p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

/* Tuiles (listes en cartes) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles > div { background: var(--white); border: 1px solid var(--ice); border-radius: var(--radius); padding: 1.4rem 1.35rem; }
.tiles h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.tiles p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

/* Livrables avec icône */
.deliverables .ico { margin-bottom: 0.7rem; }

/* Étapes en ligne */
.steps--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.steps--row li { grid-template-columns: 1fr; gap: 0.6rem; border: 0; border-top: 3px solid var(--ink); padding: 1rem 0 0; }
.steps--row li:last-child { border-bottom: 0; }

/* Bloc fondateur dans l'appel à l'action */
.cta-person { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.founder { margin: 0; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.founder figcaption { margin-top: 0.9rem; font-size: 0.95rem; line-height: 1.4; color: #d7d4d4; }
.founder strong { display: block; font-family: var(--ui); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.founder span { display: block; }
.cta-person h2 { margin-bottom: 0.4em; }
.cta-person .refs { font-size: 0.98rem; color: #d7d4d4; max-width: 56ch; margin-top: 1.1rem; }
.cta-person .actions { margin-top: 1.6rem; }

@media (max-width: 62rem) {
  .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .cta-person { grid-template-columns: 1fr; gap: 1.5rem; }
  .founder { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: center; }
  .founder figcaption { margin-top: 0; }
  .tiles--2 { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .adv, .steps--row { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .hero { padding-block: 1.6rem 2.2rem; }
  .hero h1 { font-size: 1.75rem; max-width: none; }
  .hero .tagline { font-size: 1.05rem; margin-bottom: 0.6rem; }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero .actions { margin-top: 1.1rem; gap: 0.6rem; }
  .hero .actions .btn { flex: 1 1 100%; text-align: center; padding: 0.85rem 1rem; }
}

/* Très petits écrans : les deux boutons du hero restent visibles au-dessus de la barre d'appel */
@media (max-width: 26rem) {
  .callbar a { padding: 0.6rem 0.3rem; font-size: 0.92rem; line-height: 1.2; }
  .hero { padding-top: 1.1rem; padding-bottom: 1.4rem; }
  .hero h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .hero .tagline { font-size: 0.98rem; margin-bottom: 0.5rem; }
  .hero .lead { font-size: 0.95rem; line-height: 1.4; margin-bottom: 0.8rem; }
  .hero .actions { gap: 0.5rem; margin-top: 0.8rem; }
  .hero .actions .btn { padding: 0.6rem 0.9rem; font-size: 0.95rem; }
}
