/* ==========================================================================
   Pages Pro (hub pro/ + 5 pages service) - 2026-09-25
   Chargée après les feuilles de l'accueil (includes/home-page-styles.php),
   dont ces pages réutilisent le hero, le process, les avis et le contact.
   Ici seulement ce qui leur est propre : intro, sections de cartes, bloc
   éditorial, cartes tarif, fin de page, et, pour le hub, services et
   secteurs. Préfixe .pro- (et .dep-hero, classe posée par
   components/hero-from-config.php sur tout hero « split ») : ce fichier
   n'est chargé que par les pages pro/, rien ne fuit ailleurs.
   Palette : noir, blanc, cyan, violet (jetons du bundle). Corps >= 1.05rem.
   ========================================================================== */

/* ------------------------------------------------------------------ hero -- */

/* Titres plus longs que celui de l'accueil (« Installation poste de
   télétravail ») : un cran plus bas, comme sur les pages Dépannage. */
.dep-hero .hero-title {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  text-wrap: balance;
}

.dep-hero .home-hero__pitch {
  max-width: 38em;
}

/* ----------------------------------------------------------- en-têtes -- */

/* Tag, H2, puis chapo SOUS le titre (règle du site), centrés. */
/* Largeur en px et non en ch : 62ch du corps donnaient une colonne de
   ~560 px où le H2 (2.5rem) passait sur trois lignes. */
.pro-head {
  max-width: 860px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.pro-head__lead {
  max-width: 62ch;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- intro -- */

/* Première phrase après le hero : une colonne de lecture, pas un pavé
   centré de 900 px. Le texte métier (souvent long, écrit pour le SEO)
   reste intégral. */
.pro-intro {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(0.5rem, 2vw, 1.5rem);
}

.pro-intro__text {
  max-width: 68ch;
  margin: 0 auto;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  border-left: 2px solid var(--accent-cyan);
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.pro-intro__text strong {
  color: var(--text-primary);
}

/* ------------------------------------------------------ sections cartes -- */

.pro-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Grille 2 x 2 : cartes plus larges, texte long lisible, et rupture de
   rythme avec la rangée numérotée qui précède. */
.pro-block--pair .pro-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
}

.pro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--text-primary) 2.5%, transparent);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.pro-card:hover {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 4%, transparent);
}

.pro-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

/* Numéro de rang : grand, fin, en dégradé de la marque. */
.pro-card__num {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pro-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--accent-cyan) 14%, transparent),
      color-mix(in srgb, var(--accent-purple) 14%, transparent));
  color: var(--accent-cyan);
  font-size: 1.45rem;
}

.pro-card__badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-card__title {
  margin: 0.25rem 0 0;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
}

.pro-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Carte-lien (hub) : toute la carte est cliquable via le lien du titre. */
.pro-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.pro-card__title a:focus-visible {
  outline: none;
}

.pro-card--link:focus-within {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
}

.pro-card__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.pro-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.pro-card__list i {
  flex-shrink: 0;
  margin-top: 0.15em;
  color: var(--accent-cyan);
}

.pro-card__more {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 600;
}

.pro-card--link:hover .pro-card__more i {
  transform: translateX(3px);
}

.pro-card__more i {
  display: inline-block;
  transition: transform 0.2s ease;
}

@media (max-width: 991.98px) {
  .pro-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .pro-block--pair .pro-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .pro-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ éditorial --
   Sections propres à chaque page (comparatif, règle 3-2-1, architecture),
   écrites avec les composants du bundle (.compare-*, .diag-card). On en
   corrige ici ce qui sort de la charte : rouge / vert hors palette, corps
   de 0.8-0.9rem trop petits pour la cible. */
.pro-editorial .compare-card__label--danger {
  border-color: color-mix(in srgb, var(--text-primary) 20%, transparent);
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  color: var(--text-secondary);
}

.pro-editorial .compare-card__label--success {
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 9%, transparent);
  color: var(--accent-cyan);
}

.pro-editorial .compare-card__label {
  font-size: 0.78rem;
}

.pro-editorial .compare-row {
  gap: 1rem;
}

.pro-editorial .compare-row__key {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pro-editorial .compare-row__val {
  font-size: 1.05rem;
  text-align: right;
}

.pro-editorial .compare-summary p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.pro-editorial .diag-card__badge {
  font-size: 0.75rem;
}

.pro-editorial .diag-card__title {
  font-size: 1.2rem;
}

.pro-editorial .diag-card__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.pro-editorial .diag-card--critical {
  border-color: color-mix(in srgb, var(--accent-purple) 30%, transparent);
}

.pro-editorial .diag-card--critical .diag-card__icon,
.pro-editorial .diag-card--critical .diag-card__badge {
  border-color: color-mix(in srgb, var(--accent-purple) 30%, transparent);
  background: color-mix(in srgb, var(--accent-purple) 10%, transparent);
  color: var(--accent-purple);
}

/* Grille à 3 cartes (règle 3-2-1) : l'ancien style en ligne forçait
   3 colonnes jusqu'en mobile. */
.pro-editorial .diag-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px;
}

@media (max-width: 767.98px) {
  .pro-editorial .diag-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- tarifs -- */

.pro-tarifs__list {
  display: grid;
  grid-template-columns: repeat(var(--pro-tarifs-cols, 3), minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
}

.pro-tarif {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--text-primary) 9%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--text-primary) 3%, transparent);
}

.pro-tarif--pop {
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  background:
    radial-gradient(120% 80% at 0% 0%,
      color-mix(in srgb, var(--accent-cyan) 10%, transparent) 0%,
      transparent 60%),
    color-mix(in srgb, var(--text-primary) 3%, transparent);
}

/* Liseré haut, même signature que .price-card.pop de l'accueil. */
.pro-tarif--pop::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.8;
}

.pro-tarif__badge {
  align-self: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 9%, transparent);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-tarif__label {
  margin: 0 0 0.6rem;
  color: var(--text-primary);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.pro-tarif__price {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(3rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pro-tarif--pop .pro-tarif__price {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* rj6_price_html() écrit le symbole € dans un <span>. */
.pro-tarif__price span {
  margin-left: 0.1em;
  font-size: 0.42em;
  font-weight: 400;
}

/* Prix non chiffré (« Sur devis ») : même ligne de base, taille de texte. */
.pro-tarif__price--text {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.pro-tarif__unit {
  margin: 0.6rem 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.pro-tarif__feat {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  list-style: none;
}

.pro-tarif__feat li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.pro-tarif__feat i {
  flex-shrink: 0;
  margin-top: 0.15em;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* Pied de carte collé en bas : les boutons s'alignent d'une carte à
   l'autre quelle que soit la longueur de la liste. */
.pro-tarif__foot {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* .btn-call (dégradé cyan-violet profond du bundle) : on n'en règle que
   la place, jamais la couleur. */
.pro-tarif .pro-tarif__call {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding-inline: clamp(14px, 3vw, 24px);
  font-size: clamp(1rem, 3.4vw, 1.05rem);
  font-weight: 700;
  white-space: normal;
  text-align: center;
  text-decoration: none;
}

.pro-tarif__number {
  white-space: nowrap;
}

.pro-tarif__note {
  margin: 0.7rem 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  text-align: center;
}

/* Avis Google réel, vérifié contre data/reviews.json. */
.pro-tarif__review {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.pro-tarif__quote {
  margin: 0 0 0.5rem;
}

.pro-tarif__quote p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.6;
}

.pro-tarif__cite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Or des notes (même teinte que la pastille de note du hero). */
.pro-tarif__stars {
  color: #fbbf24;
  letter-spacing: 0.08em;
}

.pro-tarif__author {
  color: var(--text-primary);
  font-weight: 600;
}

.pro-tarifs__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.7rem;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-align: center;
}

.pro-tarifs__more i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.pro-tarifs__more a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pro-tarifs__more a:hover,
.pro-tarifs__more a:focus-visible {
  color: var(--text-primary);
}

/* Tablette : 3 cartes de 230 px coupaient le bouton d'appel sur deux
   lignes et tassaient les listes. Une colonne, largeur de lecture. */
@media (max-width: 991.98px) {
  .pro-tarifs__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
  }
}

/* ------------------------------------------------------------ fin de page --
   Navigation rapide déplacée en fin de page, même gabarit que .dep-closing
   des pages Dépannage (colonne de 1080 px). */
.pro-closing {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
}

.pro-closing > .section,
.pro-closing > .section.py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pro-closing > .section > .container {
  max-width: 1080px;
}

.pro-closing .seo-hub-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.pro-closing .seo-hub-title {
  margin: 0 0 0.4rem;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
}

.pro-closing .seo-hub-sub {
  font-size: 1.05rem;
  line-height: 1.55;
}

.pro-closing .seo-hub-pill {
  min-height: 44px;
  font-size: 0.98rem;
}

/* ------------------------------------------------------------------- hub -- */

/* Secteurs d'activité : une bande de pastilles, pas une section de 600 px
   de haut. */
.pro-sectors {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.pro-sectors__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pro-sectors__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 3%, transparent);
  color: var(--text-primary);
  font-size: 1.05rem;
}

.pro-sectors__list i {
  color: var(--accent-cyan);
}

/* Services du hub : 6 cartes-liens en 3 colonnes (avant : grille à 4
   colonnes, deux cartes orphelines sur la 2e ligne). */
.pro-block--services .pro-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .pro-block--services .pro-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pro-block--services .pro-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------ preuve + appel --
   Avis court vérifié + bouton d'appel (includes/sections/review-quote.php)
   entre les deux sections de cartes : l'appel revient avant le 2e écran
   de défilement (conversion.md, rythme ~1,5 écran). */
.pro-proof {
  padding-block: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.pro-proof .review-quote {
  margin-top: 0;
}

/* ------------------------------------------------------------- rythme --
   Les blocs qui se suivent sans rupture de sujet (cartes -> preuve,
   tarifs -> garanties -> argument) ne prennent pas chacun le padding
   complet de .section : on resserre la jonction, pas les sections. */
.pro-block:has(+ .pro-proof) {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section.pro-tarifs {
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.reassurance-band ~ .pro-editorial {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.section.pro-sectors {
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* ------------------------------------------------------ relance d'appel --
   pro/_pro-callout.php : une ligne + appel (N1) + « Être rappelé » en
   contour (N2). Filet cyan à gauche, même signature que .review-quote. */
.pro-callout {
  padding-block: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.pro-callout__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 16px;
  background: color-mix(in srgb, var(--text-primary) 3%, transparent);
}

.pro-callout__text {
  flex: 1 1 280px;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.5;
}

.pro-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pro-callout .pro-callout__call,
.pro-callout .pro-callout__back {
  min-height: 48px;
  margin: 0;
  white-space: normal;
  text-decoration: none;
}

.pro-callout__number {
  white-space: nowrap;
}

.pro-block:has(+ .pro-callout) {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 575.98px) {
  .pro-callout__actions,
  .pro-callout .pro-callout__call,
  .pro-callout .pro-callout__back {
    width: 100%;
    justify-content: center;
  }
}
