


body {
  background: var(--y-fond);
  color: var(--y-texte);
  font-family: var(--y-police-texte);
  font-size: var(--y-t-m);
  line-height: var(--y-interligne-texte);
}


:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: var(--y-focus-epaisseur) solid var(--y-focus);
  outline-offset: var(--y-focus-ecart);
}
:where(.y-sombre, .y-vera, .y-citation, .y-engagement--plein) :where(a, button, input, [tabindex]):focus-visible {
  outline-color: var(--y-focus-sur-sombre);
}


.y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--y-e-1);
  min-height: var(--y-cible-confort);         
  min-width: var(--y-cible-min);
  padding: var(--y-e-2) var(--y-e-4);
  border: var(--y-trait-fort) solid var(--y-accent);
  border-radius: var(--y-r-1);
  background: var(--y-accent);                 
  color: var(--y-texte-sur-rouge);
  font-family: var(--y-police-texte);
  font-size: var(--y-t-s);
  font-weight: var(--y-graisse-forte);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--y-d-rapide) var(--y-courbe-standard),
              border-color var(--y-d-rapide) var(--y-courbe-standard),
              color var(--y-d-rapide) var(--y-courbe-standard);
}
.y-btn:hover   { background: var(--y-accent-survol); border-color: var(--y-accent-survol); } 
.y-btn:active  { background: var(--y-accent-actif);  border-color: var(--y-accent-actif); }  
.y-btn:disabled,
.y-btn[aria-disabled="true"] {
  background: var(--y-desactive-fond);
  border-color: var(--y-desactive-fond);
  color: var(--y-desactive-texte);
  cursor: not-allowed;
}
.y-btn[aria-busy="true"] { cursor: progress; }


.y-btn--secondaire {
  background: transparent;                     
  color: var(--y-accent);
  border-color: var(--y-accent);
}
.y-btn--secondaire:hover  { background: var(--y-accent); color: var(--y-texte-sur-rouge); }
.y-btn--secondaire:active { background: var(--y-accent-actif); border-color: var(--y-accent-actif); color: var(--y-texte-sur-rouge); }


.y-btn-fixe {
  position: fixed;
  inset-inline: var(--y-e-2);
  bottom: calc(var(--y-e-2) + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: auto;
  border-radius: var(--y-r-plein);
  box-shadow: var(--y-ombre-flottant);         
}
.y-btn-fixe:focus-visible { outline-offset: var(--y-focus-ecart); }
@media (min-width: 48rem) {
  .y-btn-fixe { display: none; }               
}

.y-a-bouton-fixe { padding-bottom: calc(var(--y-cible-confort) + var(--y-e-4)); }


.y-lien {
  color: var(--y-accent);                      
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  
  display: inline-block;
  min-height: var(--y-cible-min);
  padding-block: calc((var(--y-cible-min) - 1.6em) / 2);
  transition: color var(--y-d-rapide) var(--y-courbe-standard);
}
.y-lien:hover  { color: var(--y-accent-survol); text-decoration-thickness: 2px; } 
.y-lien:active { color: var(--y-accent-actif); }
p .y-lien { display: inline; min-height: 0; padding: 0; } 


.y-champ { display: grid; gap: var(--y-e-1); max-width: 32rem; }
.y-champ__libelle {
  font-size: var(--y-t-s);
  font-weight: var(--y-graisse-moyenne);
  color: var(--y-texte);                       
}
.y-champ__aide { font-size: var(--y-t-xs); color: var(--y-texte-doux); } 
.y-champ__saisie {
  min-height: var(--y-cible-confort);
  padding: var(--y-e-1) var(--y-e-2);
  border: var(--y-trait-fort) solid var(--y-borde);   
  border-radius: var(--y-r-1);
  background: var(--y-blanco);
  color: var(--y-texte);                       
  font: inherit;
  font-size: max(16px, var(--y-t-m));          
  transition: border-color var(--y-d-rapide) var(--y-courbe-standard);
}
.y-champ__saisie:hover { border-color: var(--y-texte); }
.y-champ__saisie:focus-visible {
  border-color: var(--y-texte);
  outline: var(--y-focus-epaisseur) solid var(--y-focus);
  outline-offset: 1px;
}
.y-champ__saisie[aria-invalid="true"] { border-color: var(--y-erreur); }
.y-champ__erreur {
  display: flex; gap: var(--y-e-05); align-items: baseline;
  font-size: var(--y-t-xs);
  font-weight: var(--y-graisse-moyenne);
  color: var(--y-erreur);                      
}
.y-champ__erreur::before { content: "!"; font-weight: var(--y-graisse-forte); }
.y-champ__saisie:disabled { background: var(--y-desactive-fond); color: var(--y-desactive-texte); }



.y-video {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--y-r-1);
  background: var(--y-vino);
  color: var(--y-texte-sur-sombre);
  text-decoration: none;
  aspect-ratio: 9 / 16;                        
}
.y-video--large { aspect-ratio: 16 / 9; }
.y-video img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--y-d-moyen) var(--y-courbe-sortie); }
.y-video__jouer {
  position: absolute; inset: 50% auto auto 50%;
  width: var(--y-cible-confort); height: var(--y-cible-confort);  
  translate: -50% -50%;
  border-radius: var(--y-r-plein);
  background: var(--y-accent);
  display: grid; place-items: center;
}
.y-video__jouer::before {                      
  content: ""; margin-left: 4px;
  border-left: 16px solid var(--y-texte-sur-rouge);
  border-block: 10px solid transparent;
}
.y-video__legende {                            
  position: absolute; inset: auto 0 0 0;
  padding: var(--y-e-1) var(--y-e-2);
  background: var(--y-vino);                   
  color: var(--y-texte-sur-sombre);
  font-size: var(--y-t-s);
  font-weight: var(--y-graisse-moyenne);
}
.y-video:hover img { transform: scale(1.03); }
.y-video:hover .y-video__jouer { background: var(--y-accent-survol); }
.y-video:focus-visible { outline: var(--y-focus-epaisseur) solid var(--y-focus); outline-offset: var(--y-focus-ecart); }


.y-chiffre {
  display: grid; gap: var(--y-e-05);
  padding: var(--y-e-3);
  border-left: var(--y-trait-signature) solid var(--y-accent);
  background: var(--y-surface);
}
.y-chiffre__valeur {
  font-family: var(--y-police-titre);
  font-size: var(--y-t-2xl);
  line-height: 1;
  color: var(--y-accent);                      
}
.y-chiffre__libelle { font-size: var(--y-t-s); color: var(--y-texte); }       
.y-chiffre__date { font-size: var(--y-t-xs); color: var(--y-texte-doux); }    


.y-citation {
  margin: 0;
  padding: var(--y-e-6) var(--y-gouttiere);
  background: var(--y-surface-sombre);
  color: var(--y-texte-sur-sombre);            
}
.y-citation__texte {
  font-family: var(--y-police-titre);
  font-style: italic;
  font-size: var(--y-t-xl);
  line-height: var(--y-interligne-moyen);
  max-width: 28ch;
}
.y-citation__texte::before {
  content: "“"; display: block;
  font-size: var(--y-t-3xl); line-height: 0.6;
  color: var(--y-oro);                         
}
.y-citation__auteur {
  margin-top: var(--y-e-3);
  font-family: var(--y-police-texte);
  font-size: var(--y-t-s);
  color: var(--y-piel);                        
}


.y-domaine {
  display: grid; gap: var(--y-e-1); align-content: start;
  min-height: var(--y-cible-min);
  padding: var(--y-e-3) var(--y-e-3) var(--y-e-3) calc(var(--y-e-3) + var(--y-trait-signature));
  position: relative;
  background: var(--y-surface);
  color: var(--y-texte);                       
  text-decoration: none;
  border-radius: var(--y-r-0);
  transition: background-color var(--y-d-rapide) var(--y-courbe-standard);
}
.y-domaine::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--y-trait-signature);
  background: var(--y-accent);
  transition: width var(--y-d-moyen) var(--y-courbe-sortie);
}
.y-domaine__titre {
  font-family: var(--y-police-titre);
  font-size: var(--y-t-xl);
  line-height: var(--y-interligne-moyen);
}
.y-domaine__texte { font-size: var(--y-t-s); color: var(--y-texte-doux); }  
.y-domaine__suite { font-size: var(--y-t-s); font-weight: var(--y-graisse-forte); color: var(--y-accent-survol); } 
.y-domaine:hover::before { width: calc(var(--y-trait-signature) * 2); }
.y-domaine:active { background: var(--y-desactive-fond); }
.y-domaine:focus-visible { outline: var(--y-focus-epaisseur) solid var(--y-focus); outline-offset: var(--y-focus-ecart); }

.y-domaine--terre { background: var(--y-engagement-fond); }               
.y-domaine--terre::before { background: var(--y-engagement); }
.y-domaine--terre .y-domaine__suite { color: var(--y-engagement); }      


.y-engagement { background: var(--y-engagement-fond); color: var(--y-texte); padding: var(--y-section) var(--y-gouttiere); }
.y-engagement__titre { font-family: var(--y-police-titre); font-style: italic; font-size: var(--y-t-2xl); color: var(--y-engagement); } 
.y-engagement--plein { background: var(--y-engagement); color: var(--y-blanco); } 


.y-vera {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--y-e-2) var(--y-e-3);
  padding: var(--y-e-3) var(--y-gouttiere);
  background: var(--y-surface-sombre);
  color: var(--y-texte-sur-sombre);            
}
.y-vera__pastille {                            
  display: inline-grid; place-items: center;
  min-width: var(--y-cible-min); height: var(--y-cible-min);
  padding-inline: var(--y-e-1);
  border: var(--y-trait) solid var(--y-oro);   
  border-radius: var(--y-r-plein);
  font-size: var(--y-t-xs); font-weight: var(--y-graisse-forte);
  letter-spacing: var(--y-approche-capitales);
  color: var(--y-texte-sur-sombre);
}
.y-vera__texte { flex: 1 1 16rem; font-size: var(--y-t-m); }
.y-vera__mention { display: block; font-size: var(--y-t-xs); color: var(--y-piel); } 
.y-vera__bouton {                              
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--y-cible-confort);
  padding: var(--y-e-2) var(--y-e-4);
  border: var(--y-trait-fort) solid var(--y-rosa);
  border-radius: var(--y-r-plein);
  background: var(--y-rosa);
  color: var(--y-vino);                        
  font-size: var(--y-t-s); font-weight: var(--y-graisse-forte);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--y-d-rapide) var(--y-courbe-standard), color var(--y-d-rapide) var(--y-courbe-standard);
}
.y-vera__bouton:hover  { background: var(--y-piel); border-color: var(--y-piel); }        
.y-vera__bouton:active { background: transparent; color: var(--y-rosa); }                 
.y-vera__bouton:focus-visible { outline: var(--y-focus-epaisseur) solid var(--y-focus-sur-sombre); outline-offset: var(--y-focus-ecart); }


.y-entree {
  animation: y-entree var(--y-d-lent) var(--y-courbe-sortie) both;
}
@keyframes y-entree {
  from { opacity: 0; transform: translateY(var(--y-deplacement)); }
  to   { opacity: 1; transform: none; }
}
