/* ============================================================================
   Webena V9 · échelle typographique commune
   Portée volontairement limitée aux pages Webena. Les sites de démonstration
   conservent leur propre direction typographique et seront traités séparément.
   ============================================================================ */

:root{
  --webena-body:18px;
  --webena-h1:56px;
  --webena-h2:40px;
  --webena-h3:28px;
  --webena-meta:14px;
  --webena-footer:14px;
}

/* Hiérarchie commune des pages Webena. */
body.wb-page main h1,
body.v3-features main h1{
  font-size:var(--webena-h1)!important;
  line-height:1.06!important;
  letter-spacing:-.025em!important;
  font-weight:600!important;
}
body.wb-page main h2,
body.v3-features main h2{
  font-size:var(--webena-h2)!important;
  line-height:1.12!important;
  letter-spacing:-.018em!important;
  font-weight:600!important;
}
body.wb-page main h3,
body.v3-features main h3{
  font-size:var(--webena-h3)!important;
  line-height:1.2!important;
  letter-spacing:-.01em!important;
}

/* Texte courant. */
body.wb-page main p,
body.v3-features main p,
body.wb-page .page-copy,
body.v3-features .page-copy,
body.wb-page .pending-copy,
body.wb-page .care-intro p{
  font-size:var(--webena-body)!important;
  line-height:1.7!important;
}

/* Titres intermédiaires qui ne sont pas toujours balisés h3 dans l'ancien HTML. */
body.wb-page .value-flow span,
body.wb-page .method-line p,
body.wb-page .care-row b,
body.wb-page .pending-status strong,
body.wb-page .text-index strong,
body.wb-page .wed-list strong{
  font-size:var(--webena-h3)!important;
  line-height:1.25!important;
}

/* Métadonnées, légendes et actions : une seule petite échelle lisible. */
body.wb-page .counter,
body.wb-page .wed-work-caption p,
body.wb-page .wed-list small,
body.wb-page .text-index small,
body.wb-page .launch-terms,
body.wb-page .pending-page h1 span,
body.wb-page .pending-services span,
body.wb-page .pending-services span::after,
body.wb-page .page-actions a,
body.wb-page .page-actions button,
body.wb-page .pending-actions a,
body.wb-page .care-actions a,
body.wb-page .home-hero-actions a,
body.wb-page .home-founder a,
body.wb-page .home-contact a,
body.v3-features .feature-menu p,
body.v3-features .feature-tabs button,
body.v3-features .feature-mobile-select{
  font-size:var(--webena-meta)!important;
}
body.wb-page .pending-page h1 span{
  line-height:1.3!important;
  letter-spacing:.2em!important;
  margin-bottom:18px!important;
}

/* Tableaux Weddings : corps cohérent avec le reste, titres dans l'échelle H3. */
body.wb-page .pack-table th{
  font-size:var(--webena-h3)!important;
  line-height:1.2!important;
}
body.wb-page .pack-table td{
  font-size:16px!important;
  line-height:1.55!important;
}
body.wb-page .pack-table td:first-child,
body.wb-page .pack-price{
  font-size:22px!important;
}

/* Weddings : même composition d'introduction que Events / Business / Care. */
body.wb-page .wed-overview--split{
  display:grid!important;
  grid-template-columns:minmax(240px,.82fr) minmax(360px,1.18fr)!important;
  gap:clamp(48px,8vw,120px)!important;
  align-items:end!important;
  width:100%!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}
body.wb-page .wed-overview--split h1{
  margin:0!important;
  max-width:8ch!important;
}
body.wb-page .wed-overview-copy{
  align-self:end!important;
  max-width:620px!important;
  padding-bottom:2px!important;
}
body.wb-page .wed-overview-copy p{
  margin:0!important;
  max-width:48ch!important;
}
body.wb-page .wed-overview-copy .page-actions{
  margin-top:28px!important;
}

/* Le footer suit explicitement l'échelle des mentions légales. */
.wb-v9-footer__brand p,
.wb-v9-footer a{
  font-size:var(--webena-footer)!important;
}
.wb-v9-footer h2,
.wb-v9-footer__bar{
  font-size:13px!important;
}

@media (min-width:768px) and (max-width:1023px){
  :root{
    --webena-body:17px;
    --webena-h1:46px;
    --webena-h2:34px;
    --webena-h3:26px;
    --webena-meta:14px;
    --webena-footer:14px;
  }
  body.wb-page .wed-overview--split{
    grid-template-columns:minmax(210px,.78fr) minmax(320px,1.22fr)!important;
    gap:clamp(36px,6vw,70px)!important;
  }
}

@media (max-width:767px){
  :root{
    --webena-body:16px;
    --webena-h1:36px;
    --webena-h2:30px;
    --webena-h3:22px;
    --webena-meta:13px;
    --webena-footer:13px;
  }
  body.wb-page .wed-overview--split{
    grid-template-columns:1fr!important;
    gap:24px!important;
    align-items:start!important;
  }
  body.wb-page .wed-overview--split h1{
    max-width:none!important;
  }
  body.wb-page .wed-overview-copy{
    max-width:100%!important;
  }
  body.wb-page .pack-table td{
    font-size:14px!important;
  }
  body.wb-page .pack-table td:first-child,
  body.wb-page .pack-price{
    font-size:18px!important;
  }
  .wb-v9-footer h2,
  .wb-v9-footer__bar{
    font-size:12px!important;
  }
}

/* Contact Webena : même échelle sur les choix, champs et navigation du formulaire. */
body.wb-page .choice-grid label,
body.wb-page .project-summary b{
  font-size:var(--webena-h3)!important;
  line-height:1.3!important;
}
body.wb-page .form-field input,
body.wb-page .form-field select,
body.wb-page .form-field textarea,
body.wb-page .project-summary div{
  font-size:var(--webena-body)!important;
  line-height:1.55!important;
}
body.wb-page .form-field label,
body.wb-page .form-field small,
body.wb-page .project-controls button{
  font-size:var(--webena-meta)!important;
}

/* Fonctionnalités : les intitulés de famille et prix restent lisibles sans créer
   une quatrième échelle typographique concurrente. */
body.v3-features .feature-families button,
body.v3-features .opt__price{
  font-size:var(--webena-h3)!important;
}
body.v3-features .demo__c,
body.v3-features .mini,
body.v3-features .b-btn{
  font-size:var(--webena-meta)!important;
}

/* V9 · Ajustement demandé : gros titres plus présents sur les pages Webena. */
:root{
  --webena-h1:64px;
  --webena-h2:46px;
}

/* Les quatre pôles reprennent l'échelle historique de Webena Events. */
body.wb-page[data-active="Weddings"] .wed-overview--split h1,
body.wb-page[data-active="Events"] .pending-page h1,
body.wb-page[data-active="Business"] .pending-page h1,
body.wb-page[data-active="Care"] .care-intro h1{
  font-size:clamp(64px,10vw,148px)!important;
  line-height:.86!important;
  letter-spacing:-.04em!important;
  font-weight:600!important;
}

@media (min-width:768px) and (max-width:1023px){
  :root{
    --webena-h1:52px;
    --webena-h2:40px;
  }
}

@media (max-width:767px){
  :root{
    --webena-h1:40px;
    --webena-h2:34px;
  }
  body.wb-page[data-active="Weddings"] .wed-overview--split h1,
  body.wb-page[data-active="Events"] .pending-page h1,
  body.wb-page[data-active="Business"] .pending-page h1,
  body.wb-page[data-active="Care"] .care-intro h1{
    font-size:clamp(62px,19vw,100px)!important;
    line-height:.88!important;
  }
}


/* ==========================================================================
   V9.4 · réglages d'alignement et de hiérarchie demandés
   ========================================================================== */

/* Header Webena : même corps typographique pour tous les liens de 1er niveau. */
.v3-header > .v3-nav > a,
.v3-header > .v3-nav > .v3-nav-item > a,
.v3-header .v3-project,
.v3-header .v3-menu{
  font-size:14px!important;
}

/* Weddings : même composition, mais davantage d'air entre le grand titre et
   la colonne de description sur ordinateur. */
@media (min-width:1024px){
  body.wb-page[data-active="Weddings"] .wed-overview--split{
    gap:clamp(72px,9vw,145px)!important;
  }
}

/* Care : le début de la description partage désormais le même axe supérieur
   que le titre, au lieu de flotter plus haut ou plus bas selon la hauteur. */
body.wb-page[data-active="Care"] .care-intro{
  align-items:start!important;
}
body.wb-page[data-active="Care"] .care-intro p{
  margin-top:0!important;
}

/* Les deux messages-clés de l'accueil sont volontairement plus présents. */
@media (min-width:1024px){
  body.wb-page .home-hero h1,
  body.wb-page .home-contact h2{
    font-size:60px!important;
    line-height:1.06!important;
    font-weight:600!important;
  }
}


/* V9.5 · Accueil : échelle du grand titre V9 d'origine */
body.wb-page.wb-home .home-hero h1,
body.wb-page.wb-home .home-creation-copy h2,
body.wb-page.wb-home .home-value h2,
body.wb-page.wb-home .home-method h2,
body.wb-page.wb-home .home-founder h2,
body.wb-page.wb-home .home-contact h2{
  font-size:clamp(58px,6.6vw,104px)!important;
}
@media (min-width:768px) and (max-width:1023px){
  body.wb-page.wb-home .home-hero h1,
  body.wb-page.wb-home .home-creation-copy h2,
  body.wb-page.wb-home .home-value h2,
  body.wb-page.wb-home .home-method h2,
  body.wb-page.wb-home .home-founder h2,
  body.wb-page.wb-home .home-contact h2{font-size:clamp(58px,10vw,88px)!important;}
}
@media (max-width:767px){
  body.wb-page.wb-home .home-hero h1,
  body.wb-page.wb-home .home-creation-copy h2,
  body.wb-page.wb-home .home-value h2,
  body.wb-page.wb-home .home-method h2,
  body.wb-page.wb-home .home-founder h2,
  body.wb-page.wb-home .home-contact h2{font-size:clamp(48px,14vw,68px)!important;}
}

/* ========================================================================== 
   V9.6 · corrections ciblées : Care + Fonctionnalités
   ========================================================================== */

/* Care : le titre et la description démarrent réellement sur le même axe.
   Les marges natives du h1 créaient encore un décalage visuel important. */
body.wb-page[data-active="Care"] .care-intro{
  align-items:start!important;
}
body.wb-page[data-active="Care"] .care-intro h1,
body.wb-page[data-active="Care"] .care-intro p{
  margin-top:0!important;
  margin-bottom:0!important;
  align-self:start!important;
}

/* Fonctionnalités : cette page garde l'échelle standard demandée, même si
   d'autres pages Webena utilisent volontairement des titres plus grands. */
@media (min-width:1024px){
  body.v3-features .feature-menu h1{
    font-size:56px!important;
    line-height:1.06!important;
    font-weight:600!important;
  }
  body.v3-features .feature-family-header h2,
  body.v3-features .fam__h h2,
  body.v3-features .recap h2{
    font-size:40px!important;
    line-height:1.12!important;
    font-weight:600!important;
  }
}
@media (min-width:768px) and (max-width:1023px){
  body.v3-features .feature-menu h1{
    font-size:46px!important;
    line-height:1.06!important;
    font-weight:600!important;
  }
  body.v3-features .feature-family-header h2,
  body.v3-features .fam__h h2,
  body.v3-features .recap h2{
    font-size:34px!important;
    line-height:1.12!important;
    font-weight:600!important;
  }
}
@media (max-width:767px){
  body.v3-features .feature-menu h1{
    font-size:36px!important;
    line-height:1.06!important;
    font-weight:600!important;
  }
  body.v3-features .feature-family-header h2,
  body.v3-features .fam__h h2,
  body.v3-features .recap h2{
    font-size:30px!important;
    line-height:1.12!important;
    font-weight:600!important;
  }
}

/* Fonctionnalités desktop : rendre le défilement de la colonne latérale
   évident. Chrome/Safari masquent souvent la scrollbar fine par défaut. */
@media (min-width:1120px){
  body.v3-features .feature-menu{
    scrollbar-width:auto!important;
    scrollbar-color:var(--wb-gold) rgba(31,31,31,.08)!important;
    scrollbar-gutter:stable!important;
    overscroll-behavior:contain;
  }
  body.v3-features .feature-menu::-webkit-scrollbar{
    display:block!important;
    width:9px!important;
  }
  body.v3-features .feature-menu::-webkit-scrollbar-track{
    background:rgba(31,31,31,.06)!important;
  }
  body.v3-features .feature-menu::-webkit-scrollbar-thumb{
    background:var(--wb-gold)!important;
    border:2px solid var(--wb-ivory)!important;
    border-radius:999px!important;
  }
  body.v3-features .feature-menu::-webkit-scrollbar-thumb:hover{
    background:#a9844f!important;
  }
}


/* Fonctionnalités desktop : scrollbar du menu latéral toujours affichée. */
@media (min-width:1120px){
  body.v3-features .feature-menu{
    overflow-y:scroll!important;
    scrollbar-width:auto!important;
    scrollbar-color:var(--wb-gold) rgba(31,31,31,.08)!important;
    scrollbar-gutter:stable!important;
  }
  body.v3-features .feature-menu::-webkit-scrollbar{
    display:block!important;
    width:10px!important;
  }
  body.v3-features .feature-menu::-webkit-scrollbar-track{
    background:rgba(31,31,31,.06)!important;
  }
  body.v3-features .feature-menu::-webkit-scrollbar-thumb{
    background:var(--wb-gold)!important;
    border:2px solid var(--wb-ivory)!important;
    border-radius:999px!important;
    min-height:34px!important;
  }
}
