/* ==========================================================================
   Rythme de l'accueil : alternance sombre / clair
   - noir (#0B0C0F) en ouverture et en clôture : hero, CTA final, pied de page
   - anthracite (#121318) pour les sections sombres intermédiaires
   - blanc cassé (#F5F4F1) puis gris chaud (#EAE9E5) pour les sections claires
   - sections intermédiaires en « feuilles » pleine largeur : coins hauts
     arrondis, chacune glisse sur la précédente (plus de blocs posés sur la page)
   Chargé en dernier : ne modifie que les fonds, les couleurs et les raccords.
   ========================================================================== */

:root {
  --rh-black: #0b0c0f;
  --rh-anthracite: #121318;
  --rh-offwhite: #f5f4f1;
  --rh-warm: #eae9e5;
  --rh-ink: #14171a;
  --rh-text: #4a4f57;
  --rh-muted: #6b7078;
  /* Rouge de marque assombri pour les fonds clairs : le #ff4b36 n'atteint pas
     3:1 sur le gris chaud ; #c93421 (même teinte) passe 4:1 en titre, 4,5:1 en petit */
  --rh-red-on-light: #c93421;
  --rh-sheet: 2.5rem; /* arrondi et chevauchement des feuilles */
}
@media screen and (max-width: 767px) {
  :root { --rh-sheet: 1.5rem; }
}

body,
.page-wrapper {
  background-color: var(--rh-offwhite);
}

/* ---------- 1. Hero : noir, halo discret ---------- */
.is-video-hero .background-video-wrap {
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(255, 75, 54, 0.07) 0%, rgba(255, 75, 54, 0) 70%),
    radial-gradient(ellipse 70% 60% at 50% 35%, #161920 0%, #0e1014 55%, var(--rh-black) 100%);
}
.hero-spacer { height: 7rem; }
@media screen and (max-width: 767px) {
  .hero-spacer { height: 4rem; }
}

/* ---------- Feuilles pleine largeur ---------- */
.section-home-projects,
.section-home-pricing,
.team-section,
.section-home-service,
.section-home-tarifs {
  position: relative;
  border-radius: var(--rh-sheet) var(--rh-sheet) 0 0;
}
/* Chaque feuille recouvre le bas de la précédente (même arrondi) */
.section-home-pricing,
.team-section,
.section-home-service {
  margin-top: calc(-1 * var(--rh-sheet));
}
.section-home-projects { z-index: 1; padding-bottom: var(--rh-sheet); }
.section-home-pricing { z-index: 2; padding-bottom: var(--rh-sheet); }
/* Équipe : marges ramenées au rythme des autres sections (~180 px entre deux blocs) */
.team-section {
  z-index: 3;
  padding-top: clamp(4.5rem, 7vw, 6.25rem);
  padding-bottom: calc(clamp(4.5rem, 7vw, 6.25rem) + var(--rh-sheet));
}
.section-home-service { z-index: 4; }
.section-home-tarifs { z-index: 5; border-radius: 0; }
.section-home-faq { position: relative; z-index: 5; }

/* ---------- 2. Réalisations : anthracite ---------- */
.section-home-projects {
  background-color: var(--rh-anthracite);
}

/* ---------- 3. Approche : blanc cassé, carte anthracite au centre ---------- */
.section-home-pricing {
  background-color: var(--rh-offwhite);
}
.section-home-pricing .heading-style-h2.text-color-alternate { color: var(--rh-ink); }
.section-home-pricing .heading-style-h2 .text-color-secondary { color: var(--rh-muted); }
.section-home-pricing .offer-group h3 { color: var(--rh-ink); }
.section-home-pricing .offer-group p { color: var(--rh-text); }
.section-home-pricing .offer-contact-card {
  background-color: var(--rh-anthracite);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(11, 12, 15, 0.22), 0 8px 20px rgba(11, 12, 15, 0.12);
}

/* ---------- 4. Équipe : anthracite ---------- */
.team-section {
  background: var(--rh-anthracite);
}

/* ---------- 5. Services : blanc cassé, carte « Sites web » sombre ---------- */
.section-home-service {
  background-color: var(--rh-offwhite);
}
.service-card { border-color: rgba(20, 23, 26, 0.09); }
.service-card.is-featured { background: var(--rh-anthracite); }

/* ---------- 6. Tarifs : glissement doux vers le gris chaud ---------- */
.section-home-tarifs {
  background: linear-gradient(180deg, var(--rh-offwhite) 0, var(--rh-warm) 16rem, var(--rh-warm) 100%);
}
.tarif-card { border-color: rgba(20, 23, 26, 0.08); box-shadow: 0 1px 2px rgba(20, 23, 26, 0.05); }
.tarif-card.is-featured { background: var(--rh-anthracite); }
.tarifs-note { border-color: rgba(20, 23, 26, 0.18); }
.tarifs-note.is-highlight { background: rgba(255, 75, 54, 0.06); }

/* ---------- 7. FAQ : même gris chaud ---------- */
.section-home-faq {
  background-color: var(--rh-warm);
}

/* ---------- 8. CTA final : panneau noir à cheval sur la FAQ et le pied de page ---------- */
.final-cta {
  position: relative;
  z-index: 6;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--rh-warm) 0, var(--rh-warm) 50%, var(--rh-black) 50%, var(--rh-black) 100%);
}
.final-cta__panel {
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255, 75, 54, 0.14) 0%, rgba(255, 75, 54, 0) 60%),
    radial-gradient(ellipse 80% 80% at 50% 45%, #1a1d24 0%, var(--rh-anthracite) 55%, var(--rh-black) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(11, 12, 15, 0.3);
}

/* ---------- Contrastes et finitions sur fonds clairs ---------- */
.services-accent,
.tarifs-accent { color: var(--rh-red-on-light); }
.service-card__label,
.tarif-card:not(.is-featured) .tarif-card__label,
.tarif-card:not(.is-featured) .tarif-card__delay { color: var(--rh-red-on-light); }
.service-card__num { color: var(--rh-muted); }
.service-card.is-featured .service-card__num { color: #8b929c; }
.section-home-faq .heading-style-h2 .text-color-secondary { color: var(--rh-muted); }

/* Titres équilibrés (pas de mot seul sur la dernière ligne), paragraphes sans veuve */
main .heading-style-h2,
.final-cta__title { text-wrap: balance; }
.services-intro,
.tarifs-intro,
.tarif-card__pitch,
.service-card__desc { text-wrap: pretty; }

/* Focus clavier visible sur les liens et boutons ajoutés */
.tarif-card__cta:focus-visible,
.services-foot__link:focus-visible,
.site-footer__cta:focus-visible,
.site-footer__col a:focus-visible {
  outline: 2px solid #ff4b36;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 9. Pied de page : noir, dans la continuité du CTA ---------- */
.site-footer {
  background-color: var(--rh-black);
}
.site-footer .footer-logo { color: #ffffff; }
.site-footer__pitch { color: #9aa0a8; }
.site-footer__cta { color: #ffffff; }
.site-footer__cta:hover { color: #ff4b36; }
.site-footer__title { color: #8b929c; }
.site-footer__col a { color: #e6e7e9; }
.site-footer__col a:hover { color: #ffffff; border-bottom-color: rgba(255, 75, 54, 0.8); }
.site-footer .footer-bottom {
  background-color: transparent;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .footer-text { color: #8b929c; }

/* Zones tactiles : les petits liens texte faisaient 20 à 23 px de haut. Une zone
   invisible les agrandit au doigt sans déplacer le texte ni le soulignement. */
@media (hover: none), screen and (max-width: 767px) {
  .is-video-hero .underline-link,
  .services-foot__link,
  .site-footer__cta,
  .site-footer__col a,
  .final-cta__phone {
    position: relative;
  }
  .is-video-hero .underline-link::after,
  .services-foot__link::after,
  .site-footer__cta::after,
  .site-footer__col a::after,
  .final-cta__phone::after {
    content: "";
    position: absolute;
    inset: -11px -8px;
  }
}

/* Titres animés mot par mot : chaque mot est masqué à la hauteur exacte de la
   ligne (line-height 1), ce qui coupait les accents des capitales (É, Ê, À).
   Le masque est agrandi vers le haut seulement : le mot qui monte reste caché
   en dessous pendant l'animation, et la mise en page ne bouge pas. */
[class*="gsap_split_word-mask"] {
  padding-top: 0.22em;
  margin-top: -0.22em;
}

/* Même problème dans le menu et les boutons : le texte (doublé pour l'effet de
   survol) est rogné à sa hauteur exacte, ce qui coupait È et É
   (« PREMIÈRE », « RÉALISATIONS »). Zone visible agrandie vers le haut. */
.nav-text-wrap,
.main-button-block {
  box-sizing: content-box;
  padding-top: 0.3em;
  margin-top: -0.3em;
  /* …et la copie cachée dessous ne laisse plus dépasser son propre accent
     (bande sous la ligne de base, vide pour des capitales) */
  clip-path: inset(0 0 0.16em 0);
}
