/* ==========================================================================
   Pages /web/ (creation de sites, fusion agence-web, 2026-10-26)
   Chargee apres bundle.css et les feuilles de l'accueil (hero split, avis,
   contact). Prefixe .web- : rien ne fuit sur les autres pages.
   Mobile first : styles de base = mobile, puis min-width croissants.
   Accents : jetons du site (cyan/violet), jamais d'orange ni de jaune.
   ========================================================================== */

/* Glyphes Bootstrap Icons purges du bundle (la police complete est chargee). */
.bi-code-slash::before { content: "\f2c6"; }
.bi-box-arrow-up-right::before { content: "\f1c5"; }

/* ---------- Hero : le meme composant que l'accueil, sans bandeau de chiffres
   (compteurs d'interventions de depannage hors sujet ici). ---------- */
.web-hero .hero-title {
  font-size: clamp(1.8rem, min(4.6vw, 5.6svh), 2.9rem);
  text-wrap: balance;
}
.web-hero .home-hero__stats { display: none; }

/* ---------- Sections ---------- */
.web-sec {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.web-sec.section--alt {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-cyan) 4%, transparent) 0%,
    transparent 100%);
  border-block: 1px solid color-mix(in srgb, var(--accent-cyan) 10%, transparent);
}
.web-sec .section-tag { margin-inline: auto; }
.web-sub { max-width: 62ch; margin-inline: auto; margin-top: 1rem; }
.web-sec .section__title { max-width: 62ch; margin-inline: auto; }
.web-sec .section-title { text-wrap: balance; }

/* Texte courant des sections : lisible, jamais plus large que 70 caracteres. */
.web-sec p, .web-sec li { line-height: 1.7; }
.web-sec a:not(.btn):not(.web-zone) {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.web-sec a:not(.btn):hover { color: #fff; }

/* ---------- Prose (definitions, limites, approche) ---------- */
.web-prose {
  text-align: left;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}
.web-prose__title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.web-prose h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: #fff;
}
.web-prose p { color: rgba(255, 255, 255, 0.82); margin: 0 0 1rem; }
.web-prose ul { padding-left: 1.25rem; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.web-prose li { color: rgba(255, 255, 255, 0.82); }
.web-prose li strong { color: #fff; }

/* ---------- Cartes (diag-card du site) ---------- */
.web-sec .diag-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  max-width: 72rem;
}
.web-sec .diag-card__title { font-size: 1.1rem; }
.web-sec .diag-card__desc { font-size: 0.95rem; }

@media (min-width: 640px) {
  .web-sec .diag-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
}

/* ---------- Etapes ---------- */
.web-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 52rem;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}
.web-step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.web-step__n {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--call-from), var(--call-to));
}
.web-step__body {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.web-step__body h3 { font-size: 1.1rem; margin: 0 0 0.35rem; color: #fff; }
.web-step__body p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.web-step__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
}
.web-step__tags li {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.1rem 0.6rem;
  border-radius: 50px;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Tableaux ---------- */
.web-table-wrap {
  max-width: 56rem;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.web-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
.web-table th, .web-table td {
  padding: 0.85rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.web-table th:first-child, .web-table td:first-child { text-align: left; font-weight: 600; }
.web-table thead th { color: #fff; background: rgba(255, 255, 255, 0.04); font-weight: 700; }
.web-table tbody tr:last-child td { border-bottom: 0; }
.web-table strong { color: var(--accent-cyan); }

/* ---------- FAQ (details natifs) ---------- */
.web-faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.web-faq__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.web-faq__item[open] { border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent); }
.web-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-height: 44px;
  font-weight: 600;
  color: #fff;
}
.web-faq__q::-webkit-details-marker { display: none; }
.web-faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-cyan);
  transition: transform 0.25s ease;
}
.web-faq__item[open] .web-faq__q::after { transform: rotate(45deg); }
.web-faq__a { padding: 0 1.25rem 1.25rem; }
.web-faq__a p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.web-faq__a strong { color: #fff; }

/* ---------- Liens freres ---------- */
.web-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ---------- Zone ---------- */
.web-zones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 62rem;
  margin-inline: auto;
}
.web-zone {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
a.web-zone:hover { border-color: color-mix(in srgb, var(--accent-cyan) 45%, transparent); transform: translateY(-3px); }
.web-zone__meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); }
.web-zone__ville { font-family: var(--font-display, sans-serif); font-size: 1.5rem; font-weight: 700; color: #fff; }
.web-zone__desc { color: var(--text-secondary); font-size: 0.95rem; }
.web-zone__arrow { position: absolute; top: 1.1rem; right: 1.25rem; color: var(--accent-cyan); font-size: 1.25rem; }

/* ---------- Appel final ---------- */
.web-cta__inner { text-align: center; max-width: 46rem; margin-inline: auto; }
.web-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.web-cta__back { display: inline-block; margin-top: 1.5rem; font-size: 0.95rem; }

/* ---------- Tarifs : liste a coches, prix gros et blancs ---------- */
.web-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 70rem;
  margin-inline: auto;
}
.web-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}
.web-pricing-card.web-featured {
  border-color: color-mix(in srgb, var(--accent-cyan) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-cyan) 7%, transparent), rgba(255, 255, 255, 0.02));
}
.web-pricing-plan { margin: 0; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); font-weight: 700; }
.web-pricing-price { margin: 0; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: #fff; line-height: 1.1; }
.web-pricing-desc { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.web-pricing-features { list-style: none; margin: 0.5rem 0 0.75rem; padding: 0; display: grid; gap: 0.45rem; }
.web-pricing-features li { position: relative; padding-left: 1.6rem; color: rgba(255, 255, 255, 0.88); }
.web-pricing-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-cyan); font-weight: 700; }
.web-pricing-card .btn { margin-top: auto; justify-content: center; width: 100%; min-height: 44px; }
.web-pricing-tagline { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

/* Une seule carte de prix : centree, largeur de lecture. */
.web-pricing-grid:has(> :only-child) { max-width: 30rem; grid-template-columns: minmax(0, 1fr); }

/* Phrase de bas de section (renvoi, precision) et figure d'exemple. */
.web-note { max-width: 52rem; margin: 1.75rem auto 0; text-align: center; }
.web-figure { max-width: 60rem; margin: 0 auto; border: 1px solid rgba(255,255,255,.08); border-radius: 1.25rem; overflow: hidden; background: rgba(255,255,255,.02); }
.web-figure img { display: block; width: 100%; height: auto; }
.web-figure__cap { padding: 1rem 1.25rem; font-size: .95rem; color: rgba(255,255,255,.8); }

/* Quatre offres sur l'accueil : 2 colonnes en tablette, 4 en grand ecran. */
@media (min-width: 1200px) { .web-pricing-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 76rem; } }

/* Carte-lien (derniers articles). */
a.web-article { display: flex; flex-direction: column; gap: 0.25rem; color: inherit; text-decoration: none; }
.web-article__more { margin-top: auto; padding-top: 0.75rem; color: var(--accent-cyan); font-weight: 600; font-size: 0.9rem; }

/* ---------- Divers : stack, piliers, stats, garanties ---------- */
.web-pillar-grid, .web-stack-grid, .web-stack-cards, .web-stat-grid, .web-preprice__grid, .web-horizon-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  max-width: 72rem;
  margin-inline: auto;
}
.web-pillar-card, .web-stack-card, .web-stat-block, .web-guarantee__card, .web-horizon-node, .web-free-audit-card,
.web-impot-invisible-box, .web-api-score-teaser, .web-premium-geo, .web-preprice__chip, .web-trust-item {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}
.web-pillar-highlight { border-color: color-mix(in srgb, var(--accent-cyan) 40%, transparent); }
.web-pillar-tag, .web-scarcity-badge, .web-custom-maintenance-badge, .web-guarantee__badge {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 35%, transparent);
}
.web-pillar-title, .web-stack-name, .web-guarantee__title { margin: 0.6rem 0 0.4rem; font-size: 1.15rem; color: #fff; }
.web-pillar-desc, .web-stack-when, .web-guarantee__desc, .web-stack-item-role { color: rgba(255, 255, 255, 0.8); margin: 0 0 0.75rem; }
.web-pillar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.web-pillar-list li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; }
.web-pillar-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-cyan); }
.web-stat-n, .web-tnum, .web-stats-bar__num { font-family: inherit; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.web-stat-label, .web-tlbl, .web-stats-bar__label { color: var(--text-secondary); font-size: 0.9rem; }


/* ---------- Bandeaux : chiffres, offre de lancement, garanties ---------- */
.web-stats-bar { padding-block: clamp(2rem, 5vw, 3.5rem); border-block: 1px solid rgba(255, 255, 255, 0.06); }
.web-stats-bar__inner { max-width: 62rem; margin-inline: auto; padding-inline: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.web-stats-bar__item { display: grid; gap: 0.35rem; }
.web-stats-bar__label { line-height: 1.4; }
.web-preprice { padding-block: clamp(2.75rem, 6vw, 5rem); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent-purple) 14%, transparent), transparent 70%); border-block: 1px solid color-mix(in srgb, var(--accent-purple) 22%, transparent); }
.web-preprice__inner { max-width: 62rem; margin-inline: auto; padding-inline: 1rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.web-preprice__eyebrow { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); }
.web-preprice__headline { font-family: inherit; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0; color: #fff; }
.web-preprice__headline .web-big { display: inline-block; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.web-preprice__tagline { margin: 0; font-size: 1.25rem; font-weight: 700; color: #fff; }
.web-preprice__sub { margin: 0; max-width: 52rem; color: rgba(255, 255, 255, 0.85); }
.web-preprice__grid { width: 100%; text-align: left; }
.web-preprice__chip { display: grid; gap: 0.35rem; align-content: start; }
.web-preprice__chip strong { color: #fff; }
.web-preprice__chip span { color: var(--text-secondary); font-size: 0.9rem; }
.web-preprice__note { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.web-guarantee { padding-block: clamp(2rem, 5vw, 3.5rem); }
.web-guarantee__inner { max-width: 62rem; margin-inline: auto; padding-inline: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
@media (min-width: 640px) { .web-stats-bar__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } .web-preprice__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .web-guarantee__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .web-preprice__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Horizon 2030 : citation, frise, bande de chiffres de confiance. */
.web-horizon-quote { max-width: 52rem; margin: 0 auto 1rem; text-align: center; font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); }
.web-horizon-timeline { margin-top: 2rem; }
.web-horizon-node { display: grid; gap: 0.35rem; }
.web-horizon-node .web-year { font-size: 1.6rem; font-weight: 800; color: var(--accent-cyan); }
.web-horizon-node .web-desc { color: rgba(255, 255, 255, 0.85); }
.web-trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 62rem; margin: 2rem auto 0; text-align: center; }
.web-trust-item { display: grid; gap: 0.35rem; }
@media (min-width: 640px) { .web-horizon-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .web-horizon-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } .web-trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Portfolio ---------- */
.web-pf-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.web-pf-card__visuel { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0a0a; }
.web-pf-card__visuel img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.web-pf-card__visuel:hover img { transform: scale(1.03); }
.web-pf-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.25rem 1.4rem 1.5rem; flex: 1; }
.web-pf-card__body h3 { margin: 0; font-size: 1.25rem; color: #fff; }
.web-pf-card__body p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.web-pf-card__body .btn { margin-top: auto; }
.web-pf-card__body .web-step__tags { margin-top: 0.25rem; }
.web-pf-card__note { color: var(--text-secondary) !important; font-size: 0.85rem !important; font-style: italic; }
.web-pf-stats { list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 62rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; text-align: center; }
.web-pf-stats strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; font-weight: 800; }
.web-pf-stats li { color: var(--text-secondary); }
@media (min-width: 768px) { .web-pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .web-pf-card__visuel img { transition: none; } }
.web-pf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin-inline: auto;
}

/* ---------- Tablette et plus ---------- */
@media (min-width: 640px) {
  .web-zones, .web-pricing-grid, .web-pillar-grid, .web-stack-grid, .web-stack-cards, .web-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .web-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .web-pricing-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .web-pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .web-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .web-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .web-zone, .web-faq__q::after { transition: none; }
  a.web-zone:hover { transform: none; }
}
