/*
Theme Name: Ancrage & Élévation
Description: Thème de blocs pour un site de soins énergétiques (LaHoChi, magnétisme, barrer le feu). Couleurs et typographies modifiables depuis Apparence > Éditeur > Styles. Sections dépliables en blocs natifs (Détails).
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 7.4
Version: 2.3.1
Author: 
Text Domain: ancrage-elevation
*/

/* ---------- Polices ---------- */
h1, h2, h3, .wp-block-heading{ font-family: "Fraunces", serif; letter-spacing: -0.01em; }

/* ---------- Largeur : filet de sécurité si un bloc imbriqué ignore le réglage natif ---------- */
.wp-block-group.alignfull .wp-block-columns,
.wp-block-group.alignfull > .wp-block-heading,
.wp-block-group.alignfull > .wp-block-separator,
.wp-block-group.alignfull > p{
  max-width: 1120px !important;
}

/******************************************************************************/
/* Gestion de la couleur des liens avec dégradé */
.gold-gradient-text{
  background: linear-gradient(180deg, #F7ECC4 0%, #E4D19E 26%, #D3B87E 50%, #B79A64 74%, #927C4E 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
}
.gold-gradient-text:hover{
  color: var(--wp--preset--color--sable-deep) !important;
  -webkit-text-fill-color: var(--wp--preset--color--sable-deep) !important;
}



/******************************************************************************/

/* ---------- Ligne dorée sous les titres (bloc Séparateur natif) ---------- */
/* Le séparateur WordPress se colore via la bordure, pas le fond — on force les deux
   pour être sûr, quel que soit le mécanisme utilisé en interne par le style choisi. */
.wp-block-separator{
  border: none;
  border-top: 3px solid var(--wp--preset--color--argile) !important;
  background-color: var(--wp--preset--color--argile) !important;
  opacity: 1 !important;
  height: 3px;
}

/* Pour "Rendez-vous" (fond bleu canard) — avec un pic clair/crème */
.gold-gradient-dark{
  border-top: none !important;
  background: linear-gradient(90deg, #927C4E 0%, #D3B87E 30%, #F7ECC4 50%, #D3B87E 70%, #927C4E 100%) !important;
}
.gold-gradient-light{
  border-top: none !important;
  background: linear-gradient(90deg, #927C4E 0%, #C9A227 50%, #927C4E 100%) !important;
}

/* ---------- Dégradé or sur les mots mis en avant du titre du hero ---------- */
.hero-title em{
  font-style: normal !important;
  background: linear-gradient(180deg, #F7ECC4 0%, #E4D19E 26%, #D3B87E 50%, #B79A64 74%, #927C4E 100%) !important;
  -webkit-background-clip: text !important; 
  background-clip: text !important;
  color: transparent !important; 
  -webkit-text-fill-color: transparent !important;
}

/* ---------- Dégradé or sur les titres du parcour ---------- */
.titre-or {
  font-style: normal !important;
  background: linear-gradient(180deg, #F7ECC4 0%, #E4D19E 26%, #D3B87E 50%, #B79A64 74%, #927C4E 100%) !important;
  -webkit-background-clip: text !important; 
  background-clip: text !important;
  color: transparent !important; 
  -webkit-text-fill-color: transparent !important;
}

/* ---------- Bloc Détails = accordéon ---------- */
.wp-block-details{
  border-top: 1px solid rgba(43,38,32,0.12);
  padding: 4px 0;
}
.wp-block-details:last-of-type{ border-bottom: 1px solid rgba(43,38,32,0.12); }
.wp-block-details summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 46px 18px 2px;
  position: relative;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  transition: color .3s ease;
}
.wp-block-details summary:hover{ color: var(--wp--preset--color--argile); }
.wp-block-details summary::-webkit-details-marker{ display:none; }
.wp-block-details summary::marker{ content:""; }
.wp-block-details summary::after{
  content:"";
  position:absolute; right:6px; top:50%;
  width:9px; height:9px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .3s ease;
}
.wp-block-details[open] summary::after{
  transform: translateY(-35%) rotate(225deg);
}
.wp-block-details > :not(summary){ padding: 0 46px 26px 2px; }

/* Séparateurs teintés or, sur les deux sections à fond clair */
#soins .wp-block-details, #comprendre .wp-block-details{ border-top-color: rgba(201,162,39,.4); }
#soins .wp-block-details:last-of-type, #comprendre .wp-block-details:last-of-type{ border-bottom-color: rgba(201,162,39,.4); }

/* Durée + prix : même taille, prix en gras */
.acc-meta{ font-family:"IBM Plex Mono", monospace; font-size:1.3rem; color: var(--wp--preset--color--encre-soft); }
.acc-price{ font-weight:700; color: var(--wp--preset--color--encre); }

/* ---------- Cartes de tarif (à l'intérieur d'un Groupe classe "tier") ---------- */
.tier{
  border: 1px solid rgba(43,38,32,0.12);
  border-radius: 6px;
}

/* ---------- Étiquettes rondes (hero) ---------- */
.hero-tag{
  border: 1px solid rgba(248,245,238,0.28);
  border-radius: 999px;
  padding: 6px 14px !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--sable-deep);
}

/* Accordéon du hero, plus compact que les autres */
.compact-details summary{ 
    text-align: center; }
    
/* ---------- Halo doré sur les sections à fond bleu canard ---------- */
/* Ciblé par identifiant plutôt que par classe : WordPress applique parfois la couleur
   de fond en style direct sur le bloc plutôt que via la classe "has-...-background-color",
   ce qui rend cette dernière peu fiable comme sélecteur. */
#parcours, #rdv{
  /*background-image: radial-gradient(ellipse farthest-corner at 82% 8%, rgba(201,162,39,0.15) 0%, rgba(201,162,39,0.07) 30%, rgba(201,162,39,0.02) 55%, transparent 80%);*/
}

/* Même halo, très atténué, sur les sections à fond clair (le blanc laisse voir
   une teinte plus facilement qu'un fond sombre, donc opacité bien plus faible) */
#soins, #comprendre{
  /*background-image: radial-gradient(ellipse farthest-corner at 82% 8%, rgba(201,162,39,0.09) 0%, rgba(201,162,39,0.04) 30%, rgba(201,162,39,0.015) 55%, transparent 80%);*/
}

/* ---------- Texte atténué / bordures sur fond sombre (hero, rendez-vous) ---------- */
/* Par identifiant, pour la même raison que le halo ci-dessus. */
#parcours .has-encre-soft-color, #rdv .has-encre-soft-color{
  color: var(--wp--preset--color--ardoise) !important;
}
#parcours .wp-block-details, #rdv .wp-block-details{ border-top-color: rgba(248,245,238,0.2); }
#parcours .wp-block-details:last-of-type, #rdv .wp-block-details:last-of-type{ border-bottom-color: rgba(248,245,238,0.2); }

/* ---------- Boutons : dégradé or en fondu au survol (pas de saut de couleur brutal) ---------- */
/* !important nécessaire : les styles globaux générés automatiquement par WordPress
   à partir de theme.json s'appliquent après ce fichier et gagneraient sinon. */
.wp-block-button__link{
  position: relative !important; z-index: 0; overflow: hidden;
  background-color: var(--wp--preset--color--sable) !important;
  color: var(--wp--preset--color--sable-deep) !important;
  border: 1px solid var(--wp--preset--color--argile) !important;
  border-radius: 999px !important;
  transition: transform .3s ease, color .3s ease;
}
.wp-block-button__link::before{
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, #F7ECC4 0%, #E4D19E 26%, #D3B87E 50%, #B79A64 74%, #927C4E 100%);
  opacity: 0; transition: opacity .3s ease;
}
.wp-block-button__link:hover{ transform: translateY(-2px); color: var(--wp--preset--color--encre) !important; }
.wp-block-button__link:hover::before{ opacity: 1; }
.is-style-outline .wp-block-button__link{
  background: transparent !important;
  border-color: var(--wp--preset--color--argile) !important;
  color: var(--wp--preset--color--sable-deep) !important;
}
.is-style-outline .wp-block-button__link:hover{
  color: var(--wp--preset--color--encre) !important;
}


/* ---------- Emplacement du logo (bloc Image vide en attendant l'upload) ---------- */
.logo-frame-slot{
  max-width: 340px;
}
.logo-frame-slot img{
  border: 1px dashed rgba(228,186,78,.5);
  border-radius: 14px;
  background: rgba(228,186,78,.06);
}

/* ---------- Emplacement Koalendar ---------- */
.booking-slot{
  border: 1px solid rgba(201,162,39,0.45);
  border-radius: 6px;
  text-align: center;
}

/* ---------- Mobile : les boutons du hero passent en pleine largeur ---------- */
@media (max-width: 880px){
  .hero-ctas .wp-block-buttons{ flex-direction: column; align-items: stretch; }
  .hero-ctas .wp-block-button{ width: 100%; }
  .hero-ctas .wp-block-button__link{ justify-content: center; }
}