/* ==========================================================================
   Oreph Telecom Services, feuille de style unique
   Aucune dépendance externe. Grid, Flexbox, position:sticky, <details>.
   Palette construite depuis le logo : navire foncé + accent orange.
   ========================================================================== */

/* --- Jetons ------------------------------------------------------------- */
:root {
  /* Sol clair cassé et encre presque noire, d'après t1energy.com. Le navy
     n'habille plus que le média du héros : sur ce modèle, c'est le blanc qui
     porte la page et l'image qui fournit le contraste. */
  --paper: #f2f1ee;
  --paper-2: #e9e7e3;
  --ink: #15161a;
  --ink-muted: #5d6066;
  /* Mesuré : #8b8e94 tombait à 2,91:1 sur le papier, sous le seuil AA, et ce
     gris habille justement toutes les micro-étiquettes en chasse fixe.
     #63656a donne 5,16:1 sur le papier et 4,73:1 sur le papier teinté. */
  --ink-faint: #63656a;
  /* Second ton des grands titres : réservé au texte d'au moins 24 px, où le
     seuil est 3:1. Mesuré à 3,36:1 sur le papier. */
  --ink-soft: #80838a;

  --navy-900: #060f1c;
  --navy-800: #0a1729;
  --navy-700: #0d2340;

  --orange: #f47a20;
  --orange-bright: #f47a20;
  /* #b84f03 donnait 4,47:1 sur le papier et 4,31:1 sur le papier teinté,
     des deux côtés sous le seuil. #a94703 : 5,18:1 et 4,75:1. */
  --orange-ink: #a94703;

  /* Le mot de la marque reste en encre pleine sur fond clair ; le descriptif
     passe en gris moyen. Les deux jetons avaient disparu avec la palette
     sombre, ce qui laissait « REPH » sans couleur déclarée. */
  --brand-word: #15161a;
  --brand-tag: #63656a;

  --bg: var(--paper);
  --bg-raised: var(--paper-2);
  --bg-card: #ffffff;
  --line: #d9d6d1;
  --line-strong: #bfbbb4;

  --accent: var(--orange-ink);
  --accent-hover: #9c4302;
  --on-accent: #ffffff;
  --focus: #15161a;

  /* Grands rayons : toute image est une plaque arrondie chez T1. */
  --radius: 10px;
  --radius-lg: 22px;

  --wrap: 1240px;
  --gutter: 20px;

  --step--2: 0.72rem;
  --step--1: clamp(0.84rem, 0.81rem + 0.13vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 4.6rem);

  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Les micro-étiquettes de T1 sont en chasse fixe, c'est ce qui donne le ton
     technique plus sûrement que n'importe quelle couleur. */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  /* 500, pas 700 : T1 tient ses très grands titres en graisse moyenne, ce qui
     les rend assurés plutôt que criards. */
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

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

.section {
  padding-block: clamp(64px, 11vw, 150px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 60px);
}

/* Une intro suivie de son contenu est une seule respiration, pas deux : sans
   cela les marges des deux sections s'additionnent et creusent un trou. */
.section + .section--tight {
  padding-top: 0;
}

/* Et l'intro resserre son bas plutôt que de laisser un vide de 96px avant le
   premier titre de l'article. */
.section:has(+ .section--tight) {
  padding-bottom: clamp(24px, 3vw, 40px);
}

/* Micro-étiquette : chasse fixe, majuscules, carré plein devant. C'est la
   signature de T1, et elle fait plus pour le ton technique que la couleur. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ink);
  flex: none;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-muted);
  max-width: 62ch;
  line-height: 1.5;
}

.measure {
  max-width: 68ch;
}

/* Quand .measure est posé sur le conteneur lui-même, c'est le conteneur qui
   rétrécit et sa marge automatique le recentre : le texte se retrouve décalé
   au milieu, désaligné du titre. On garde le conteneur à sa largeur et on
   contraint son contenu. */
.wrap.measure {
  max-width: var(--wrap);
}

.wrap.measure > * {
  max-width: 68ch;
}

/* Titres de section dans un corps d'article : ils structurent la lecture, ils
   ne concurrencent pas le h1 de la page. */
.wrap.measure > h2 {
  font-size: var(--step-2);
  margin-top: 1.6em;
}

.wrap.measure > h2:first-child {
  margin-top: 0;
}

.muted {
  color: var(--ink-muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  font-weight: 700;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange);
  color: #fff;
}

/* Contour fin sur fond clair : le bouton secondaire de T1. */
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- En-tête ------------------------------------------------------------ */
/* Pilule flottante : elle reste posée au-dessus du contenu quelle que soit la
   section, claire ou sombre, d'où le fond translucide plutôt qu'une barre
   pleine qui couperait la page en deux. Gris moyen, comme celle de T1
   (relevée entre rgb(70) et rgb(112) sur sa page), et non presque noir :
   posée sur du blanc, elle donne encore 4,8:1 au texte blanc. */
.header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  border-radius: 999px;
  background: rgba(58, 60, 64, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  padding-inline: 10px;
}

/* Fixe, la pilule ne pousse plus rien : le héros démarre donc tout en haut et
   le média passe dessous. Sur les pages sans héros, la première section se
   dégage d'elle-même pour que le titre ne soit pas mangé par la barre. */
main > :first-child:not(.hero) {
  padding-top: clamp(104px, 11vw, 150px);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding-inline: 8px;
}

.header .brand__name {
  color: #fff;
  font-size: 1rem;
}

.header .brand__name span {
  display: none;
}

.header .brand__mark {
  height: 26px;
  width: 20px;
}

.header .nav__list a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  font-size: var(--step--1);
  padding: 8px 14px;
}

.header .nav__list a:hover,
.header .nav__list a[aria-current="page"] {
  color: #fff;
}

.header .nav__cta .btn {
  white-space: nowrap;
  background: #fff;
  color: #15161a;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 500;
}

.header .nav__cta .btn:hover {
  background: var(--orange);
  color: #fff;
}

.header .nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: none;
}

.brand:hover .brand__name {
  color: var(--brand-word);
}

/* Le signe est le « O » du mot : il se colle donc à « REPH », sans écart de
   ligne de base. Proportions et couleurs reprises du portail. */
.brand__mark {
  height: 32px;
  width: 24px;
  flex: none;
}

.brand__name {
  min-width: 0;
  line-height: 1;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-word);
}

.brand__name span {
  display: block;
  margin-top: 4px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-tag);
}

@media (min-width: 640px) {
  .brand__mark {
    height: 36px;
    width: 27px;
  }
  .brand__name {
    font-size: 1.5rem;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 9px 13px;
  cursor: pointer;
}

.nav {
  display: none;
}

.nav[data-open="true"] {
  display: flex;
}

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

.nav__list a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--accent);
}

.nav__cta {
  margin-top: 16px;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .nav,
  .nav[data-open="true"] {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav__list a {
    padding: 8px 12px;
    border: 0;
    font-size: var(--step--1);
    white-space: nowrap;
  }
  .nav__cta {
    margin: 0 0 0 8px;
  }
  .header__bar {
    min-height: 72px;
  }
}

/* --- Héros plein cadre --------------------------------------------------
   D'après la page d'accueil de t1energy.com : la vidéo occupe l'écran, la
   pilule de navigation flotte dessus, le titre vit en bas à gauche, un seul
   bouton fantôme, un cartouche d'annonce en bas à droite. La clarté demandée
   porte sur la PAGE, pas sur le héros : tout ce qui suit reste sur papier.
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 820px);
  display: flex;
  align-items: flex-end;
  padding-block: 120px 44px;
  overflow: hidden;
  background: #0c1218;
}

/* L'affiche passe AU-DESSUS de la vidéo et s'efface quand celle-ci tourne.
   L'inverse est un blocage circulaire sur WebKit : Safari rechigne à lire un
   média qu'il juge invisible, donc aucun événement, donc l'opacité ne passe
   jamais à 1. Jamais de z-index négatif ici non plus. */
.hero__bg,
.hero__bg img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg {
  z-index: 2;
  transition: opacity 1.4s ease;
}

.hero__video {
  z-index: 1;
}

.hero[data-video-ready="true"] .hero__bg {
  opacity: 0;
}

/* Le rapprochement lent sert de repli quand la lecture est refusée. */
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.14);
  }
}

.hero__bg img {
  transform-origin: 58% 55%;
  animation: heroZoom 20s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform;
}

.hero[data-video-ready="true"] .hero__bg img {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img {
    animation: none;
    transform: none;
  }
}

/* Voile de lisibilité, pas de décoration, et le plus léger qui tienne.
   Mesuré par scripts/vitrine-contraste-heros.mjs sur les trois plans, en
   paysage et en portrait, image par image toutes les 0,4 s : 95 % des
   pixels de lettres restent à 3:1 au moins sur l'image la plus défavorable
   (le plan fibre, à 1,6 s en paysage et 2,8 s en portrait : 3,71 et 3,22:1).
   L'ancien voile, calé sur le pixel le plus clair de tout le cadre du titre,
   assombrissait la moitié basse : luminance moyenne 99 en paysage, 40 sous
   le titre, contre 121 et 93 chez T1. Celui-ci donne 122 et 67. L'ombre du
   titre fait le reste, au plus près des lettres. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(5, 11, 18, 0.42) 0%,
    rgba(5, 11, 18, 0.26) 28%,
    rgba(5, 11, 18, 0.08) 52%,
    rgba(5, 11, 18, 0) 70%
  );
}

.hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero__lede {
  min-width: 0;
}

/* Titre à la mesure de T1 : deux lignes, poids normal, pas de paragraphe
   derrière. Quatre lignes et un paragraphe repoussaient la vidéo. */
/* Seconde ligne du titre : la portée nationale. En blanc atténué, comme la
   seconde ligne grise de T1. Le client a demandé qu'on ne laisse pas croire
   que l'entreprise ne travaille qu'à Kinshasa. */
.hero h1 span {
  color: rgba(255, 255, 255, 0.84);
}

.hero h1 {
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.035em;
  font-size: clamp(1.9rem, 1rem + 2.5vw, 3.1rem);
  line-height: 1.08;
  max-width: 26ch;
  margin: 0 0 26px;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 16px rgba(0, 0, 0, 0.4),
    0 4px 44px rgba(0, 0, 0, 0.3);
}

/* Un seul bouton, fantôme, comme le « Discover » de T1. Le devis reste dans
   la pilule de navigation, visible sur tout le défilement. */
.hero .btn--pill-ghost {
  display: inline-flex;
  border-radius: 999px;
  padding: 11px 24px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.hero .btn--pill-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* Cartouche d'annonce en bas à droite, d'après le bandeau « ANNOUNCEMENT »
   de T1. Contenu réel et vérifiable : la plateforme HealthBridge, qui
   existe et se visite. */
.hero__card {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(40, 42, 46, 0.78);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.hero__card:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero__card b {
  flex: 1;
  font-weight: 400;
  font-size: var(--step--1);
  line-height: 1.35;
}

.hero__card svg {
  flex: none;
  opacity: 0.7;
}

.hero__card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero__card-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  flex: none;
}

/* Sur téléphone le cartouche passe sous le titre : côte à côte, il ne reste
   ni largeur pour l'un ni pour l'autre. */
@media (max-width: 860px) {
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__card {
    max-width: none;
    margin-top: 26px;
  }
}

@media (max-width: 560px) {
  .hero__card {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .hero__card-label {
    width: 100%;
  }
}

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
  }
}

/* --- Formulaire --------------------------------------------------------- */
.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: var(--step--1);
  margin-bottom: 6px;
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--step-0);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
}

.field .err {
  display: none;
  margin-top: 6px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--orange-bright);
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-color: var(--orange-bright);
}

.field[data-invalid="true"] .err {
  display: block;
}

/* Piège à robots : invisible pour l'humain, présent pour le script. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin: 14px 0 0;
}

.alert {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.alert h2 {
  font-size: var(--step-1);
  margin-bottom: 6px;
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert--ok {
  border-left-color: #3fb27f;
}

.alert--erreur {
  border-left-color: #e2603f;
}

/* --- Pied de page ------------------------------------------------------- */
.footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  padding-block: 48px 28px;
  font-size: var(--step--1);
}

.footer__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer h2 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

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

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--ink-faint);
}

/* --- Apparition au défilement ------------------------------------------- */
/* Sans JS, rien n'est masqué : la classe n'est posée que par le script. */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  /* 0,45 s donnait une apparition qui claquait : le bloc est arrivé avant
     que l'oeil l'ait suivi. 0,8 s en sortie douce, course un peu plus
     longue, et le script échelonne les blocs voisins pour qu'ils ne se
     posent pas tous au même instant. */
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Page 404 ----------------------------------------------------------- */
.notfound {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

.notfound__code {
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* --- Formes T1 Energy ----------------------------------------------------
   Titre à deux tons de t1energy.com (Mobbin 7f8e4cc3, e65538de), repris en
   tête de toutes les pages. Les autres formes T1 sont plus bas, section
   « Sections sous le héros ».
   ------------------------------------------------------------------------ */

/* Titre à deux tons : la suite de la phrase passe en gris. C'est ce qui donne
   à T1 ses titres longs sans les rendre lourds, et cela remplace la graisse. */
.lead-head {
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 22ch;
  margin: 0 0 clamp(40px, 6vw, 80px);
}

.lead-head i {
  font-style: normal;
  color: var(--ink-soft);
}

/* --- Téléphone : la barre se sépare, le menu prend tout l'écran ----------
   Relevé sur t1energy.com au téléphone : le signe est calé à gauche, le
   bouton « Menu » à droite, et rien ne flotte au centre. La pilule unique et
   centrée que nous avions faisait un bloc au milieu du ciel, ce qui n'existe
   nulle part dans la référence. Ouvert, leur menu n'est pas un panneau
   déroulant mais une page noire pleine, en gros caractères.

   Seule différence assumée : le signe garde une petite pilule. Chez T1 il est
   nu et blanc, ce qui tient parce que tout leur héros est sombre ; ici la
   barre est fixe et traverse le papier clair dès qu'on défile, où un signe
   blanc nu disparaîtrait.
   ------------------------------------------------------------------------ */
@media (max-width: 899px) {
  .header {
    left: 0;
    right: 0;
    top: 12px;
    transform: none;
    width: auto;
    max-width: none;
    background: transparent;
    backdrop-filter: none;
    padding-inline: var(--gutter);
  }

  .header__bar {
    justify-content: space-between;
    padding-inline: 0;
    min-height: 0;
  }

  .header .brand {
    background: rgba(58, 60, 64, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
  }

  /* L'en-tête est un contexte d'empilement : le plein écran est un de ses
     enfants, placé après le bouton dans le document, donc il passait
     par-dessus « Fermer » et le menu ne se refermait plus. Vu au rendu, pas
     à la compilation. */
  .header .brand,
  .header .nav-toggle {
    position: relative;
    z-index: 50;
  }

  .header .nav-toggle {
    background: rgba(58, 60, 64, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: var(--step-0);
    color: #fff;
  }

  /* Plein écran, sous la barre pour que « Fermer » reste atteignable. */
  .nav[data-open="true"] {
    position: fixed;
    inset: 0;
    z-index: 40;
    flex-direction: column;
    background: #0b0c0e;
    padding: 86px var(--gutter) 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav[data-open="true"] .nav__list a {
    color: #fff;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 1.9rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav[data-open="true"] .nav__list a[aria-current="page"] {
    color: var(--orange);
  }

  /* Les deux actions prennent toute la largeur, en chasse fixe, comme le
     couple « GET IN TOUCH / CAREERS » de T1. */
  .nav[data-open="true"] .nav__cta {
    margin-top: 22px;
  }

  .nav[data-open="true"] .nav__cta--second {
    margin-top: 10px;
  }

  .nav[data-open="true"] .nav__cta .btn {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-radius: 18px;
    padding: 17px 20px;
    font-family: var(--mono);
    font-size: var(--step--1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav[data-open="true"] .nav__cta .btn::after {
    content: "→";
    font-family: var(--font);
  }

  .nav[data-open="true"] .nav__cta .btn--primary {
    background: #c9c5be;
    color: #15161a;
  }

  .nav[data-open="true"] .nav__cta .btn--ghost {
    background: #22242a;
    border-color: transparent;
    color: #fff;
  }

  /* Coordonnées en pied de menu, en chasse fixe. T1 y met son plan de site ;
     ici les six liens sont déjà en grand juste au-dessus, les répéter en
     petit n'apprendrait rien. */
  .nav__contact {
    margin-top: auto;
    padding-top: 28px;
    display: grid;
    gap: 6px;
    font-family: var(--mono);
    font-size: var(--step--2);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.62);
  }

  .nav__contact a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
  }

  .nav:not([data-open="true"]) .nav__contact {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav__cta--second,
  .nav__contact {
    display: none;
  }
}

/* ==========================================================================
   Sections sous le héros, d'après t1energy.com relevé sur Mobbin
   (7f8e4cc3, 2fbd3d7a, 69570a8c, 7720cba3). Voir le commentaire en tête des
   sections dans index.html. Les mêmes pièces servent aux pages intérieures.
   ========================================================================== */

/* Deux sections qui se suivent sur le même papier ne doublent pas leur
   marge : la seconde reprend à mi-distance. */
.section--suite {
  padding-top: 0;
}

.petit {
  font-size: var(--step--1);
  margin: 28px 0 0;
}

/* Micro-étiquette à gauche, énoncé à droite. La colonne de gauche a la même
   largeur partout, si bien que tous les énoncés de la page partent du même
   bord, comme chez T1. */
.enonce {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

@media (min-width: 900px) {
  .enonce {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
  }
}

.enonce .eyebrow {
  margin: 0;
  padding-top: 0.55em;
}

.enonce__texte {
  font-size: clamp(1.3rem, 1rem + 1.15vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 30ch;
  margin: 0;
}

.enonce .btn,
.enonce .btn-row {
  margin-top: 26px;
}

.enonce .btn-row .btn {
  margin-top: 0;
}

/* Plaques photographiques. Rayon de 28 px : chez T1 l'image est une plaque,
   jamais un rectangle à coins vifs. */
.tuiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 330px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}

.tuiles::-webkit-scrollbar {
  display: none;
}

/* Au-delà de 1024 px, les huit tiennent sur deux rangées sans défiler. En
   dessous, la rangée défile au doigt, comme chez T1 : quatre colonnes de
   170 px n'auraient laissé à la pilule que la place d'un mot. */
@media (min-width: 1024px) {
  .tuiles {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: 16px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
}

.tuile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-2);
  scroll-snap-align: start;
  color: #fff;
  text-decoration: none;
}

.tuile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tuile:hover img {
  transform: scale(1.04);
}

/* Pilule de verre : c'est le cartouche posé sur la photographie que la
   direction autorise. Son fond est assez opaque pour tenir sur un ciel
   blanc : mesuré au pire, blanc sur ce verre au-dessus d'un fond blanc
   donne 7,6:1. */
.tuile__pilule {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  background: rgba(22, 24, 28, 0.74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-size: var(--step--1);
  line-height: 1.25;
  font-weight: 500;
}

.tuile__pilule i {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease;
}

.tuile:hover .tuile__pilule i {
  background: var(--orange);
}

/* Photographie à gauche, chiffres sans cadre à droite. */
.realisations {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .realisations {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
    align-items: end;
  }
}

.realisations__photo,
.methode__photo {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  background: var(--paper-2);
}

.realisations__photo {
  aspect-ratio: 1;
}

.chiffres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 24px;
}

.chiffres li {
  margin: 0;
}

.chiffres b {
  display: block;
  font-size: clamp(3rem, 2rem + 4.6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.chiffres span {
  display: block;
  margin-top: 14px;
  max-width: 24ch;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Photographie et accordéon de cartes blanches, le premier ouvert. */
.methode {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .methode {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
  }
}

.methode__photo {
  aspect-ratio: 4 / 3;
}

.accordeon {
  display: grid;
  gap: 8px;
}

.accordeon__item {
  background: var(--bg-card);
  border-radius: 18px;
}

.accordeon__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accordeon__item summary::-webkit-details-marker {
  display: none;
}

.accordeon__item summary span {
  color: var(--ink-faint);
}

.accordeon__item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
}

.accordeon__item[open] summary::after {
  content: "\2013";
}

.accordeon__item p {
  margin: -6px 22px 0;
  padding-bottom: 20px;
  font-size: var(--step--1);
  color: var(--ink-muted);
  max-width: 46ch;
}

/* L'étiquette se cale sur la première ligne de l'énoncé, pas au milieu de
   la cellule que la grille étire. */
.enonce .eyebrow {
  align-self: start;
}

/* À 768 px la photographie carrée occupait toute la largeur, 720 px de haut
   pour un pylône. Elle garde une taille de plaque. */
@media (max-width: 899px) {
  .realisations__photo {
    max-width: 440px;
  }
}

/* --- Liste des métiers (services.html) ----------------------------------
   Phantom Studios et metic. sur Mobbin : une ligne par entrée, filet en
   haut, numéro en chasse fixe, nom en grand, une phrase, l'image. */
.lignes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.lignes li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ligne {
  display: grid;
  grid-template-columns: 104px 1fr;
  grid-template-areas:
    "photo num"
    "photo nom"
    "photo desc";
  align-content: start;
  column-gap: 18px;
  row-gap: 6px;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
}

.ligne__num {
  grid-area: num;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.ligne__photo {
  grid-area: photo;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--paper-2);
}

.ligne__nom {
  grid-area: nom;
  font-size: var(--step-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.ligne__desc {
  grid-area: desc;
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.55;
}

.ligne__fleche {
  display: none;
}

@media (min-width: 900px) {
  .ligne {
    grid-template-columns: 64px 1.1fr 1fr 200px 44px;
    grid-template-areas: "num nom desc photo fleche";
    align-items: center;
    column-gap: 32px;
    padding: 22px 0;
  }
  .ligne__num {
    align-self: start;
    padding-top: 0.6em;
  }
  /* step-2 faisait tenir « Panneaux solaires et solutions hybrides » sur
     quatre lignes à 1024 px. */
  .ligne__nom {
    font-size: clamp(1.3rem, 0.6rem + 1.6vw, 2.1rem);
  }
  .ligne__desc {
    max-width: 36ch;
  }
  .ligne__photo {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }
  .ligne__fleche {
    grid-area: fleche;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease;
  }
  .ligne:hover .ligne__fleche {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }
}

.ligne:hover .ligne__nom {
  color: var(--orange-ink);
}

/* --- Page de métier -------------------------------------------------------- */
.fil {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.fil a {
  color: var(--ink-faint);
  text-decoration: none;
}

.fil a:hover {
  color: var(--ink);
}

.fil a::before {
  content: "\2190\00a0";
}

/* Fiche à gauche, photographie à droite, sur les mêmes colonnes que
   l'énoncé : la photo garde sa taille d'origine au lieu d'être étirée. */
.metier {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .metier {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
    align-items: end;
  }
}

.metier__photo {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 28px;
  background: var(--paper-2);
}

.fiche {
  margin: 0;
  display: grid;
  gap: 18px;
}

.fiche div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.fiche dt {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.fiche dd {
  margin: 0;
  font-size: var(--step--1);
}

@media (max-width: 899px) {
  .metier .fiche {
    order: 2;
  }
}

/* Rubrique : intitulé à gauche, texte à droite, filet au-dessus. */
.rubrique {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

@media (min-width: 900px) {
  .rubrique {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
    padding: 36px 0 52px;
  }
}

.rubrique h2 {
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  margin: 0;
}

.rubrique__corps {
  max-width: 64ch;
}

.rubrique__corps > :last-child {
  margin-bottom: 0;
}

.rubrique__corps ul {
  padding-left: 0;
  list-style: none;
  counter-reset: etape;
}

.rubrique__corps li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.rubrique__corps li::before {
  content: "0" counter(etape);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding-top: 0.35em;
}

@media (min-width: 1024px) {
  .tuiles--trois {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- À propos ------------------------------------------------------------ */
/* Paire inégale de T1 (3f9e2262) : la grande à gauche, la petite à droite
   calée en haut. */
.paire {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .paire {
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    align-items: start;
  }
}

.paire img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  background: var(--paper-2);
}

.paire img:first-child {
  aspect-ratio: 4 / 3;
}

.paire img:last-child {
  aspect-ratio: 1;
}

@media (max-width: 759px) {
  .paire img:last-child {
    display: none;
  }
}

/* Lignes sous filet : numéro, nom, phrase. */
.rangs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.rang {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.rang__num {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 0.5em;
}

.rang__nom {
  font-size: var(--step-1);
  margin: 0;
}

.rang__desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  max-width: 52ch;
}

.rang--sans-num {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .rang {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
    align-items: baseline;
  }
  .rang__num {
    grid-row: auto;
    position: absolute;
  }
  .rang {
    position: relative;
  }
  .rang__nom {
    padding-left: 64px;
  }
  .rang--sans-num .rang__nom {
    padding-left: 0;
  }
  .rang--sans-num {
    grid-template-columns: 0.72fr 1.28fr;
  }
}

/* --- Contact -------------------------------------------------------------- */
.coordonnees {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.coordonnees div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.coordonnees dt {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.3em;
}

.coordonnees dd {
  margin: 0;
  font-size: var(--step--1);
}

.coordonnees a {
  color: var(--ink);
}

.form--panneau {
  border: 0;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 36px);
}

.form__titre {
  font-size: var(--step-1);
  margin: 0 0 6px;
}

/* --- Réalisations (projets.html) ------------------------------------------ */
.cas {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

@media (min-width: 900px) {
  .cas {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
    padding: 40px 0 72px;
  }
  .cas__aside {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.cas__num {
  display: block;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.cas h2 {
  font-size: var(--step-2);
  margin-bottom: 24px;
}

.cas__corps .metier__photo {
  margin-bottom: 24px;
}

.cas__resume {
  font-size: var(--step-1);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.cas__corps p:last-child {
  color: var(--ink-muted);
  font-size: var(--step--1);
  max-width: 64ch;
  margin: 0;
}
