/* ==========================================================================
   Mon Kit by refresh — mon-kit.fr
   Graph'in — feuille de style unique, sans dépendance externe
   ========================================================================== */

/* --- Polices auto-hébergées ---------------------------------------------- */
@font-face {
  font-family: "Adventor";
  src: url("../fonts/texgyreadventor-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Adventor";
  src: url("../fonts/texgyreadventor-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Jetons -------------------------------------------------------------- */
:root {
  --cyan: #64c5e2;
  --cyan-lien: #1d809e;
  --cyan-pale: #bee4ed;
  --bleu-profond: #4493ab;
  --encre: #22333a;
  --texte: #4a5457;
  --gris-marque: #686867;
  --papier: #ffffff;
  --papier-doux: #eef4f7;
  --nuit: #1e1e1e;
  --nuit-clair: #303030;

  --elec: #64c5e2;
  --elec-texte: #1d809e;
  --vmc: #1d71b8;
  --vmc-texte: #1f7ac7;
  --clim: #97e9fc;
  --clim-texte: #05819e;
  --plomberie: #00a1b1;
  --depannage: #1d71b8;

  --titre: "Adventor", "Century Gothic", "Futura", sans-serif;
  --corps: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --large: 1180px;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --respire: clamp(3.5rem, 8vw, 6.5rem);
  --rayon: 10px;
  --hexa: url("../img/hexagone.svg") center / contain no-repeat;
  --hexa-ratio: 1.1043;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  color: var(--encre);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.05rem, 1.35rem + 2.3vw, 3.05rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-lien); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--encre); }

:focus-visible {
  outline: 3px solid var(--cyan-lien);
  outline-offset: 3px;
  border-radius: 2px;
}

.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: #fff; padding: .8rem 1.2rem; z-index: 100;
}
.evitement:focus { left: .5rem; top: .5rem; }

.hors-ecran {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Trame --------------------------------------------------------------- */
.trame {
  width: min(100% - (var(--gouttiere) * 2), var(--large));
  margin-inline: auto;
}
.section { padding-block: var(--respire); }
.section--doux { background: var(--papier-doux); }
.section--nuit { background: var(--nuit); color: #d6dbdd; }
.section--nuit h2, .section--nuit h3 { color: #fff; }

.intro { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: var(--encre); max-width: 58ch; }

.tete-section {
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  display: grid; gap: 1rem;
}
.tete-section h2 { margin-bottom: 0; max-width: 21ch; }
.tete-section p { color: var(--texte); }
@media (min-width: 880px) {
  .tete-section {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: end;
  }
  .tete-section p { padding-bottom: .35rem; }
}

/* --- Boutons ------------------------------------------------------------- */
.bouton {
  display: inline-block;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.02rem;
  padding: .95rem 1.7rem;
  border-radius: var(--rayon);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bouton--plein { background: var(--cyan-lien); color: #fff; }
.bouton--plein:hover { background: var(--encre); color: #fff; }
.bouton--ligne { border-color: var(--cyan-lien); color: var(--cyan-lien); }
.bouton--ligne:hover { background: var(--cyan-lien); color: #fff; }
.bouton--clair { background: #fff; color: var(--encre); }
.bouton--clair:hover { background: var(--cyan-pale); color: var(--encre); }

/* --- En-tête ------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #e2ebef;
}
.entete__interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}
.entete__logo { display: flex; align-items: center; text-decoration: none; }
.entete__logo img { height: 46px; width: auto; }

.nav__liste {
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__liste a {
  font-family: var(--titre); font-size: 1rem; color: var(--encre);
  text-decoration: none; padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.nav__liste a:hover { border-bottom-color: var(--cyan); }
.entete__action {
  font-size: .95rem; padding: .65rem 1.15rem; white-space: nowrap;
}

.bascule {
  display: none; background: none; border: 2px solid #d5e3e9;
  border-radius: 8px; padding: .55rem .7rem; cursor: pointer;
}
.bascule span { display: block; width: 22px; height: 2px; background: var(--encre); }
.bascule span + span { margin-top: 5px; }

@media (max-width: 900px) {
  .bascule { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    background: #fff; border-bottom: 1px solid #e2ebef;
    padding: 1rem var(--gouttiere) 1.6rem;
    display: none;
  }
  .nav[data-ouvert="true"] { display: block; }
  .nav__liste { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav__liste a { display: block; padding: .6rem 0; }
  .entete__action { display: none; }
}

/* --- Héros --------------------------------------------------------------- */
.heros { padding-top: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.heros__grille {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .heros__grille { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}
.heros__texte p { max-width: 40ch; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.heros__actions .bouton { padding-inline: 1.35rem; font-size: .98rem; }
.heros__image {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
}
.heros__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.heros__marques {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid #e2ebef;
}
.heros__marques > span {
  font-family: var(--titre); color: var(--gris-marque); font-size: .95rem;
  flex: 0 0 auto;
}
.heros__liens {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem clamp(2rem, 5vw, 3.75rem);
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; justify-content: space-around;
}
.heros__liens a {
  display: block; padding: .35rem;
  border-radius: 6px;
  transition: opacity .18s ease, transform .18s ease;
}
.heros__liens a:hover { opacity: .72; transform: translateY(-2px); }
.heros__liens img { width: auto; max-width: 100%; }
.heros__liens .logo-elec { height: 26.2px; }
.heros__liens .logo-vmc { height: 27.3px; }
.heros__liens .logo-clim { height: 27.6px; }

/* --- Blocs principe ------------------------------------------------------ */
.principes {
  display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.principe img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--rayon); margin-bottom: 1.4rem;
}
.principe h3 { margin-bottom: .45em; }
.principe p { font-size: 1rem; }

.principe--sans-image .principe__marque {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--rayon);
  background: var(--papier-doux);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.principe--sans-image .principe__marque svg { width: 124px; height: auto; }
.principe__hexa-fond { fill: var(--cyan); }
.principe__hexa-trait { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Économie ------------------------------------------------------------ */
.economie__grille {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .economie__grille {
    grid-template-columns: 1fr 1.05fr;
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 3.5rem); row-gap: 1.25rem;
  }
  .economie__image { grid-column: 1; grid-row: 1; }
  .economie__texte { grid-column: 2; grid-row: 1 / span 2; }
  .economie__note { grid-column: 1; grid-row: 2; margin-top: 0; }
}
.economie__image img { border-radius: var(--rayon); width: 100%; }
.poste { border-left: 3px solid var(--cyan); padding-left: 1.4rem; margin-bottom: 2rem; }
.poste h3 { margin-bottom: .35em; }
.poste p { font-size: 1rem; }

.encart {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--nuit-clair);
  border-radius: var(--rayon);
  padding: 1.4rem 1.6rem;
  margin-top: 2rem;
}
.section--nuit .poste { border-left-color: var(--cyan); }
.section--nuit p { color: #d6dbdd; }
.section--nuit .encart p { margin: 0; }

.note {
  font-size: .88rem; line-height: 1.6; color: var(--gris-marque);
  max-width: 70ch; margin-top: 2.5rem;
}
.section--nuit .note { color: #9aa5a9; }

/* --- Métiers ------------------------------------------------------------- */
.metiers { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 780px) { .metiers { grid-template-columns: repeat(3, 1fr); } }

.metier {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2ebef;
  border-radius: var(--rayon); overflow: hidden;
  border-top: 4px solid var(--accent, var(--cyan));
}
.metier--elec { --accent: var(--elec); --accent-texte: var(--elec-texte); }
.metier--vmc { --accent: var(--vmc); --accent-texte: var(--vmc-texte); }
.metier--clim { --accent: var(--clim); --accent-texte: var(--clim-texte); }

.metier__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.metier__corps { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.metier__logo { width: auto; max-width: 100%; align-self: flex-start; margin-bottom: 1.15rem; }
.metier--elec .metier__logo { height: 30.0px; }
.metier--vmc .metier__logo { height: 31.2px; }
.metier--clim .metier__logo { height: 31.6px; }
.metier__corps p { font-size: 1rem; margin-bottom: 1.4rem; }
.metier__lien {
  margin-top: auto; align-self: flex-start;
  font-family: var(--titre); font-weight: 700;
  color: var(--accent-texte); text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.metier__lien:hover { color: var(--encre); border-bottom-color: var(--encre); }

.a-venir {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px dashed #cddbe2; border-radius: var(--rayon);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem;
}
.a-venir__titre { font-family: var(--titre); font-weight: 700; color: var(--encre); }
.a-venir__liste { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.a-venir__liste img { width: auto; max-width: 100%; filter: grayscale(1); opacity: .55; }
.a-venir__liste .logo-plomberie { height: 19.9px; }
.a-venir__liste .logo-depannage { height: 27.6px; }
.a-venir p { font-size: .95rem; margin: 0; color: var(--gris-marque); }

/* --- Étapes -------------------------------------------------------------- */
.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.etape {
  counter-increment: etape;
  display: grid; grid-template-columns: 3.45rem 1fr; gap: 1.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e2ebef;
}
.etape:last-child { border-bottom: 1px solid #e2ebef; }
.etape::before {
  content: counter(etape);
  grid-row: span 2;
  width: 3.45rem; height: 3.12rem;
  background: var(--hexa);
  display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: #fff;
}
.etape h3 { margin-bottom: .25em; font-size: 1.15rem; }
.etape p { font-size: 1rem; margin: 0; }
.etape__texte { align-self: center; }

/* --- Profils ------------------------------------------------------------- */
.profils__grille {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 900px) { .profils__grille { grid-template-columns: 1.05fr 1fr; } }
.profils__liste { list-style: none; margin: 0; padding: 0; }
.profils__liste li {
  padding: 1rem 0 1rem 2rem; border-bottom: 1px solid #e2ebef;
  position: relative; font-size: 1rem;
}
.profils__liste li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 14px; height: 12.7px; background: var(--hexa);
}
.profils__image img { border-radius: var(--rayon); width: 100%; }

/* --- Formules ------------------------------------------------------------ */
.formules { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 780px) { .formules { grid-template-columns: repeat(3, 1fr); } }
.formule {
  border: 1px solid #e2ebef; border-radius: var(--rayon);
  padding: 1.75rem 1.6rem; background: #fff;
}
.formule h3 { font-size: 1.22rem; margin-bottom: .5em; }
.formule p { font-size: 1rem; margin: 0; }

/* --- Zone ---------------------------------------------------------------- */
.zone__grille { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .zone__grille { grid-template-columns: repeat(2, 1fr); } }
.zone__bloc h3 { font-size: 1.1rem; margin-bottom: .4em; }
.zone__bloc p { font-size: 1rem; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid #e2ebef; }
.faq summary {
  font-family: var(--titre); font-weight: 700; font-size: 1.1rem;
  color: var(--encre); cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.75rem;
  width: 11px; height: 11px;
  border-right: 2px solid var(--cyan-lien); border-bottom: 2px solid var(--cyan-lien);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.95rem; }
.faq details p { padding-bottom: 1.4rem; font-size: 1rem; }

/* --- Contact : renvoi vers les sites métiers ------------------------------ */
.destinations {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 780px) { .destinations { grid-template-columns: repeat(3, 1fr); } }
.destination {
  display: flex; flex-direction: column; align-items: flex-start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--nuit-clair);
  border-top: 4px solid var(--accent, var(--cyan));
  border-radius: var(--rayon);
  padding: 1.75rem 1.6rem 1.9rem;
}
.destination--elec { --accent: var(--elec); }
.destination--vmc { --accent: var(--vmc); }
.destination--clim { --accent: var(--clim); }
.destination__logo {
  width: auto; max-width: 100%; align-self: flex-start; margin-bottom: 1.15rem;
  background: #fff; border-radius: 8px; padding: .8rem 1rem;
  box-sizing: content-box;
}
.destination--elec .destination__logo { height: 37.8px; }
.destination--vmc .destination__logo { height: 39.4px; }
.destination--clim .destination__logo { height: 39.9px; }
.destination p { font-size: 1rem; margin-bottom: 1.6rem; color: #d6dbdd; }
.destination .bouton { margin-top: auto; font-size: .97rem; padding: .8rem 1.3rem; }
.section--nuit .tete-section p { color: #d6dbdd; }

/* --- Pied de page -------------------------------------------------------- */
.pied { background: var(--nuit); color: #9aa5a9; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.pied a { color: #d6dbdd; }
.pied a:hover { color: var(--cyan); }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.3fr 1fr 1fr; } }
.pied h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; font-size: .95rem; }
.pied__logo { width: 116px; height: auto; margin-bottom: 1.25rem; }
.pied__mentions {
  border-top: 1px solid var(--nuit-clair); margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .85rem; line-height: 1.65;
}
.pied__mentions p { max-width: 88ch; }

/* --- Pages légales ------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal__contenu { max-width: 74ch; }
.legal__contenu h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-top: 2.5rem; }
.legal__contenu h2:first-of-type { margin-top: 1.5rem; }
.legal__contenu ul { padding-left: 1.2rem; }
.legal__contenu li { margin-bottom: .5rem; }
.legal__retour { display: inline-block; margin-top: 3rem; font-family: var(--titre); font-weight: 700; }

/* --- Révélation à l'ouverture (unique) ----------------------------------- */
.revele { opacity: 0; transform: translateY(14px); }
.js-pret .revele { animation: apparait .7s cubic-bezier(.22, .61, .36, 1) forwards; }
.js-pret .revele--2 { animation-delay: .12s; }
.js-pret .revele--3 { animation-delay: .24s; }
@keyframes apparait { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revele, .js-pret .revele { opacity: 1; transform: none; animation: none; }
  * { transition-duration: .01ms !important; }
}

/* --- Impression ---------------------------------------------------------- */
@media print {
  .entete, .bascule, .heros__actions { display: none; }
  body { color: #000; font-size: 11pt; }
}
