/* =========================================================================
   ARIS ENGINEERING — couche V2 « page de décision »
   Se charge APRÈS style.css et ne réécrit que ce qui sert la compression
   du défilement : rythme resserré, blocs scannables, onglets, barre CTA.
   Aucun jeton de marque n'est modifié — même encre, même ambre, mêmes polices.
   ========================================================================= */

:root {
  /* Le vide inter-sections est le premier poste de défilement de la page. */
  --section-y: clamp(2.25rem, 4.5vw, 3.75rem);
  --gouttiere: clamp(1.1rem, 4vw, 2.5rem);
  --t-h2: clamp(1.6rem, 3vw, 2.4rem);
}

/* Le titre de section tient en une ligne de bordereau + un H2. Pas d'intro
   par défaut : l'intro était la moitié du texte de la page. */
.section__entete {
  margin-bottom: clamp(1.1rem, 2.2vw, 1.9rem);
}

.section__ligne {
  margin-bottom: 0.6rem;
}

/* Chute de section : une ligne, en petit, jamais un paragraphe. */
.chute {
  font-size: 0.9375rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.25rem, 5vw, 4.5rem) var(--section-y);
}

.hero__titre {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
}

.hero__accroche {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
}

/* Bande de preuve : trois faits vérifiables, lus en un regard, sans phrase. */
.preuves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.5rem 0 1.75rem;
  border-top: var(--trait);
  border-bottom: var(--trait);
}

.preuve {
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-right: var(--trait);
}

.preuve:last-child {
  border-right: none;
}

.preuve:not(:first-child) {
  padding-left: 0.9rem;
}

.preuve__valeur {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.preuve__valeur em {
  font-style: normal;
  color: var(--ambre-sombre);
}

.preuve__libelle {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rail-fort);
  line-height: 1.3;
}

/* --- Compte d'exploitation : version courte, à hauteur d'écran ---------- */

.exploit--court .exploit__table th,
.exploit--court .exploit__table td {
  padding: 0.5rem 1rem;
}

/* La chute du document : l'écart de marge, en gros, en couleur d'alerte.
   C'est l'image que le visiteur emporte. */
.exploit__verdict {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.9rem 1rem;
  border-top: var(--trait-fort);
  background: color-mix(in srgb, var(--ambre) 12%, transparent);
}

.exploit__verdict-cle {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-doux);
  flex-basis: 100%;
}

.exploit__verdict-de,
.exploit__verdict-a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.exploit__verdict-de {
  color: var(--rail-fort);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.exploit__verdict-a {
  color: var(--ecart);
}

.exploit__verdict-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--encre-doux);
}

/* --- Angles morts : six constats en pastilles, deux colonnes dès 360 px -- */

.angles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}

.angle {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(0.85rem, 1.6vw, 1.15rem);
  background: var(--papier-clair);
  border: var(--trait);
  border-left: 3px solid var(--ambre);
}

.angle__num {
  color: var(--rail-fort);
  font-size: 0.6875rem;
}

.angle h3 {
  margin: 0;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.2;
}

/* --- Onglets : les quatre interventions sur un seul écran ---------------
   Quatre cartes empilées, c'était quatre écrans de téléphone. Les onglets
   laissent le contenu dans le DOM (donc indexable) mais n'en montrent qu'un. */

.onglets__barre {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}

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

.onglet {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: transparent;
  border: var(--trait);
  border-bottom-width: 3px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--encre-doux);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.onglet__num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--rail-fort);
}

.onglet:hover {
  background: var(--papier-clair);
  color: var(--encre);
}

.onglet[aria-selected='true'] {
  background: var(--encre);
  border-color: var(--encre);
  border-bottom-color: var(--ambre);
  color: var(--papier);
}

.onglet[aria-selected='true'] .onglet__num {
  color: var(--ambre);
}

.panneau {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  background: var(--papier-clair);
  border: var(--trait);
  border-top: 3px solid var(--ambre);
}

.panneau[hidden] {
  display: none;
}

.panneau h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
}

.panneau__pour {
  margin: 0 0 1rem;
  color: var(--encre-doux);
  font-size: 0.9375rem;
}

.panneau__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

/* Le rendu de la colonne de droite : ce que le client a en main à la fin. */
.rendu {
  align-self: start;
  border: var(--trait);
  background: var(--papier);
}

.rendu__cle {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: var(--ambre);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rendu__liste li {
  padding: 0.65rem 1rem 0.65rem 2.1rem;
  border-bottom: var(--trait);
  font-size: 0.9375rem;
  position: relative;
}

.rendu__liste li:last-child {
  border-bottom: none;
}

.rendu__liste li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.05em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ambre);
}

/* --- Frise de méthode : cinq temps, une ligne ---------------------------- */

.frise {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: frise;
}

.frise__temps {
  padding-top: 0.85rem;
  border-top: 3px solid var(--rail);
}

.frise__temps:first-child {
  border-top-color: var(--ambre);
}

.frise__num {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ambre-sombre);
  font-size: 0.6875rem;
}

.frise__temps h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.frise__temps p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--encre-doux);
}

/* --- Postes sous contrôle : pastilles à icône --------------------------- */

.controle {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.puces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.puce {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--papier) 28%, transparent);
  background: color-mix(in srgb, var(--papier) 6%, transparent);
}

.puce__icone {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ambre);
  flex: none;
}

.puce h3 {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.15;
}

.puce p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}

/* Colonne des livrables, sur le même fond sombre */
.livrables {
  border: 1px solid color-mix(in srgb, var(--papier) 28%, transparent);
}

.livrables__cle {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--ambre);
  color: var(--encre);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.livrables li {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--papier) 18%, transparent);
  font-size: 0.9375rem;
}

.livrables li:last-child {
  border-bottom: none;
}

/* --- Expertise : la fiche, les trois piliers, le lien LinkedIn ---------- */

.piliers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.pilier {
  padding-top: 0.85rem;
  border-top: 3px solid var(--encre);
}

.pilier h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.pilier p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--encre-doux);
}

.expertise p {
  font-size: 0.9375rem;
}

/* --- Contact : bandeau plein, pas une section de plus ------------------- */

.bandeau {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.bandeau h2 {
  margin-bottom: 0.75rem;
}

.bandeau p {
  margin: 0;
  font-size: 0.9375rem;
}

.bandeau__canaux {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Barre d'action collante (téléphone uniquement) ---------------------
   Le CTA principal ne doit jamais être à plus d'un pouce de distance :
   c'est le seul canal de conversion du site. */

.cta-collant {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--papier) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: var(--trait-fort);
}

.cta-collant .bouton {
  flex: 1;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  font-size: 0.875rem;
}

.cta-collant .bouton--fantome {
  flex: 0 0 auto;
  padding-inline: 1rem;
}

/* --- Adaptatif ---------------------------------------------------------- */

@media (max-width: 62rem) {
  .panneau,
  .controle,
  .bandeau {
    grid-template-columns: minmax(0, 1fr);
  }

  .frise {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .angles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  /* Deux colonnes tenues jusqu'en bas : six constats en trois rangées
     au lieu de six écrans. Le texte est calibré pour ça. */
  .angles,
  .puces,
  .piliers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }

  .preuves {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preuve {
    padding: 0.7rem 0.5rem 0.7rem 0;
  }

  .preuve:not(:first-child) {
    padding-left: 0.5rem;
  }

  .cta-collant {
    display: flex;
  }

  /* La barre collante mange le bas de page : on lui rend sa place. */
  .pied {
    padding-bottom: 5rem;
  }

  .panneau {
    padding: 1rem;
  }

  .onglet {
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
  }
}

/* Le hero passe en colonne plus tôt qu'en V1 : le document de gestion
   perd sa lisibilité en dessous de 26 rem de largeur utile. */
@media (max-width: 56rem) {
  .hero__grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media print {
  .cta-collant,
  .progression {
    display: none;
  }

  .panneau[hidden] {
    display: block;
  }
}
