/* (c) 2026 YANOVA SAS — Tous droits réservés */
/* Sections propres à yanova.fr (préfixe yn-). Le reste (en-tête, sections, boutons, titres, révélations,
   pied) vient du socle famille-yanova (classes fy-). Couleurs : css/jetons-site.css. */

.yn-a-fixer { background: var(--a-fixer-fond); color: var(--a-fixer-texte); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.yn-losange { display: inline-block; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--marque-vert); flex: none; }
.yn-losange--bleu { background: var(--marque-bleu); }
.yn-titre { max-width: 22ch; }

/* Héros : les deux losanges entrelacés du logo */
.yn-heros { position: relative; overflow: hidden; padding: var(--espace-32) 0 var(--espace-24); min-height: min(88vh, 820px); display: flex; align-items: center; }
.yn-heros > .fy-conteneur { width: 100%; }
.yn-heros__scene { position: absolute; inset: 0; pointer-events: none; }
.yn-heros__scene svg { position: absolute; top: 50%; right: -6%; width: min(62vw, 760px); height: auto; transform: translateY(-50%); }
.yn-heros__l { fill: none; stroke-width: 34; stroke-linecap: round; }
.yn-heros__l--bleu { stroke: var(--marque-bleu); }
.yn-heros__l--vert { stroke: var(--marque-vert); }
.yn-heros__plan { transform-box: view-box; transform-origin: 50% 50%; will-change: transform; }
.yn-heros__contenu { position: relative; max-width: 600px; }
.yn-heros__titre { font: 750 60px/62px var(--font-sans); letter-spacing: -.025em; color: var(--titre); margin: 0; }
.yn-heros .fy-chapo { margin-top: var(--espace-8); }
.yn-heros .fy-boutons, .yn-actions { display: flex; flex-wrap: wrap; gap: var(--espace-4); margin-top: var(--espace-12); }
.yn-heros__lieu { margin-top: var(--espace-12); font-size: 14px; line-height: 21px; color: var(--texte-discret); display: flex; align-items: center; gap: var(--espace-3); }
@media (scripting: enabled) {
  .yn-heros__l { stroke-dasharray: 1; animation: yn-tracer 1.6s cubic-bezier(.65, 0, .35, 1) both; }
  .yn-heros__l--vert { animation-delay: .35s; }
  .yn-heros__contenu > * { animation: yn-entrer .7s ease both; }
  .yn-heros__contenu > :nth-child(2) { animation-delay: .12s; }
  .yn-heros__contenu > :nth-child(3) { animation-delay: .24s; }
  .yn-heros__contenu > :nth-child(4) { animation-delay: .36s; }
  .yn-heros__contenu > :nth-child(5) { animation-delay: .48s; }
}
@keyframes yn-tracer { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes yn-entrer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1240px) and (min-width: 641px) {
  .yn-heros__contenu { max-width: 540px; }
  .yn-heros__scene svg { width: 54vw; right: -12%; }
}

/* Pourquoi choisir YANOVA */
.yn-raisons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-6); margin-top: var(--espace-12); }
.yn-raison { padding-top: var(--espace-6); border-top: 2px solid var(--bordure); }
.yn-raison h3 { display: flex; gap: var(--espace-3); align-items: center; }
.yn-raison p { margin-top: var(--espace-3); }

/* Logiciels */
.yn-logiciels { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--espace-6); margin-top: var(--espace-12); }
.yn-logiciels--liste { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.yn-logiciels--deux { grid-template-columns: repeat(2, 1fr); }
.yn-logiciel { position: relative; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-md); padding: var(--espace-8); box-shadow: var(--ombre-carte); display: flex; flex-direction: column; gap: var(--espace-4); transition: box-shadow .25s, transform .25s; }
.yn-logiciel:hover { box-shadow: var(--ombre-survol); transform: translateY(-2px); }
.yn-logiciel--phare { grid-row: span 2; background: var(--teinte-bleue); border-color: transparent; padding: var(--espace-12); }
.yn-logiciel__nom { font: 800 28px/32px var(--font-sans); letter-spacing: .04em; color: var(--titre); margin: 0; }
.yn-logiciel--phare .yn-logiciel__nom { font-size: 44px; line-height: 46px; }
.yn-logiciel__role { font-weight: 650; color: var(--titre); }
.yn-logiciel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--espace-2); }
.yn-logiciel li { display: flex; gap: var(--espace-3); align-items: baseline; }
.yn-logiciel li .yn-losange { width: 8px; height: 8px; transform: translateY(-2px) rotate(45deg); }
.yn-logiciel__rail { padding-top: var(--espace-4); font: 400 14px/20px var(--font-mono); color: var(--texte-discret); }
.yn-logiciel__lien { font-weight: 650; margin-top: auto; }
.yn-logiciel__lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Actions coordonnées et métiers */
.yn-coordonnees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--espace-16); align-items: start; }
.yn-coordonnees__intro { position: sticky; top: calc(var(--hauteur-entete) + var(--espace-12)); }
.yn-trame { margin: var(--espace-8) 0 0; padding: 0; list-style: none; display: grid; gap: var(--espace-2); font: 400 14px/20px var(--font-mono); color: var(--texte-discret); }
.yn-trame li { display: flex; align-items: center; gap: var(--espace-3); }
.yn-metiers { display: grid; gap: var(--espace-4); }
.yn-metiers--page { grid-template-columns: repeat(2, 1fr); gap: var(--espace-6); }
.yn-metier { display: grid; grid-template-columns: 56px 1fr; gap: var(--espace-6); padding: var(--espace-6) var(--espace-8); background: var(--surface); border-radius: var(--rayon-md); border: 1px solid var(--bordure); }
.yn-metier__signe { width: 56px; height: 56px; border-radius: var(--rayon-sm); display: grid; place-items: center; }
.yn-metier--bleu .yn-metier__signe { background: var(--teinte-bleue); }
.yn-metier--vert .yn-metier__signe { background: var(--teinte-verte); }
.yn-metier__signe .yn-losange { width: 18px; height: 18px; border-radius: 4px; }
.yn-metier h3 a { color: inherit; text-decoration: none; }
.yn-metier h3 a:hover { color: var(--action); text-decoration: underline; }
.yn-metier p { margin-top: var(--espace-2); }
.yn-metier__liste { font-size: 14px; line-height: 21px; color: var(--texte-discret); }
.yn-nouveau { display: inline-block; margin-left: var(--espace-2); padding: 2px 10px; border-radius: var(--rayon-pilule); background: var(--teinte-verte); color: var(--accent-texte); font-size: 13px; line-height: 20px; font-weight: 650; vertical-align: middle; }

/* Philosophie (bande nuit) */
.yn-citation { font: 300 36px/44px var(--font-sans); letter-spacing: -.01em; max-width: 24ch; color: var(--texte-sur-nuit); margin: 0; }
.yn-piliers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--espace-16); border-top: 1px solid rgba(255, 255, 255, .14); }
.yn-pilier { padding: var(--espace-8) var(--espace-6) 0 0; }
.yn-pilier + .yn-pilier { padding-left: var(--espace-6); border-left: 1px solid rgba(255, 255, 255, .14); }
.yn-pilier h3 { display: flex; align-items: center; gap: var(--espace-3); color: var(--texte-sur-nuit); }
.yn-pilier p { margin-top: var(--espace-3); color: var(--texte-discret-sur-nuit); font-size: 16px; line-height: 25px; }
.yn-note-nuit { margin-top: var(--espace-12); color: var(--texte-discret-sur-nuit); }

/* Références */
.yn-references { margin-top: var(--espace-12); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.yn-references__piste { display: flex; gap: var(--espace-6); width: max-content; margin: 0; padding: 0; list-style: none; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .yn-references__piste { animation: yn-defiler 60s linear infinite; }
  .yn-references:hover .yn-references__piste, .yn-references:focus-within .yn-references__piste { animation-play-state: paused; }
}
@keyframes yn-defiler { to { transform: translateX(-50%); } }
.yn-reference { width: 320px; flex: none; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-md); padding: var(--espace-6); display: flex; flex-direction: column; gap: var(--espace-4); }
.yn-reference__logo { height: 48px; display: flex; align-items: center; }
.yn-reference__logo img { max-height: 48px; width: auto; }
.yn-reference__logo--texte { font-weight: 800; letter-spacing: .06em; color: var(--titre); font-size: 20px; }
.yn-reference p { font-size: 15px; line-height: 23px; color: var(--texte-discret); }
.yn-reference a { margin-top: auto; font-size: 14px; }
@media (prefers-color-scheme: dark) { .yn-reference__logo img { background: #fff; padding: 4px 8px; border-radius: 6px; } }
@media (prefers-reduced-motion: reduce), (scripting: none) {
  .yn-references { mask-image: none; }
  .yn-references__piste { flex-wrap: wrap; width: auto; }
  .yn-references__piste [aria-hidden="true"] { display: none; }
}

/* Territoire */
.yn-ancrage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace-16); align-items: center; }
.yn-ancrage__photo { aspect-ratio: 4 / 3; border-radius: var(--rayon-lg); background: var(--teinte-bleue); display: grid; place-items: center; text-align: center; padding: var(--espace-8); position: relative; overflow: hidden; }
.yn-ancrage__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yn-ancrage__photo svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; }
.yn-crete1 { fill: var(--marque-bleu); opacity: .25; }
.yn-crete2 { fill: var(--marque-bleu-profond); opacity: .35; }
.yn-crete3 { fill: var(--marque-vert); opacity: .5; }
.yn-ancrage__photo span { position: relative; font-size: 14px; }
.yn-ancrage__legende { font-weight: 600; color: var(--titre); }
.yn-faits { margin: var(--espace-8) 0 0; display: grid; gap: var(--espace-4); padding: 0; list-style: none; }
.yn-faits li { display: flex; gap: var(--espace-4); align-items: baseline; }
.yn-faits .yn-losange { transform: translateY(-2px) rotate(45deg); }

/* Appel final */
.yn-fin__grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--espace-12); align-items: end; }
.yn-fin__titre { font: 750 44px/50px var(--font-sans); letter-spacing: -.02em; color: var(--texte-sur-nuit); margin: 0; }
.yn-fin p { margin-top: var(--espace-6); color: var(--texte-discret-sur-nuit); max-width: 52ch; }
.yn-fin__contact { display: grid; gap: var(--espace-4); justify-items: start; }
.fy-section--nuit a.yn-fin__tel { font: 700 28px/34px var(--font-sans); color: var(--texte-sur-nuit); text-decoration: none; }
.fy-section--nuit a.yn-fin__tel:hover { color: var(--accent-sur-nuit); }

/* Tête des pages intérieures */
.yn-tete { position: relative; overflow: hidden; padding: var(--espace-16) 0; border-bottom: 1px solid var(--bordure); }
.yn-tete--bleu { background: linear-gradient(var(--teinte-bleue), var(--teinte-bleue)) left bottom / 100% 6px no-repeat, var(--fond); }
.yn-tete--vert { background: linear-gradient(var(--marque-vert), var(--marque-vert)) left bottom / 100% 6px no-repeat, var(--fond); }
.yn-tete .fy-conteneur { position: relative; }
.yn-tete .fy-h1 { max-width: 22ch; }
.yn-tete__produit { font: 800 64px/64px var(--font-sans); letter-spacing: .04em; color: var(--titre); margin: 0; }
.yn-tete__role { font-weight: 650; color: var(--accent-texte); margin-bottom: var(--espace-3); }
.yn-tete .fy-chapo { margin-top: var(--espace-6); }
.yn-tete__signe { position: absolute; right: 4%; top: 50%; width: 240px; transform: translateY(-50%); fill: none; stroke-width: 12; }
.yn-tete__signe .yn-l-bleu { stroke: var(--marque-bleu); }
.yn-tete__signe .yn-l-vert { stroke: var(--marque-vert); }
.yn-fil { display: flex; flex-wrap: wrap; gap: var(--espace-2); font-size: 14px; line-height: 20px; margin-bottom: var(--espace-8); color: var(--texte-discret); }
.yn-fil a { color: var(--texte-discret); text-decoration: none; }
.yn-fil a:hover { color: var(--action); text-decoration: underline; }
.yn-fil a[aria-current] { color: var(--titre); font-weight: 600; }

/* Fiche logiciel */
.yn-grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--espace-6); margin-top: var(--espace-12); }
.yn-fonction { padding-top: var(--espace-6); border-top: 2px solid var(--bordure); }
.yn-fonction .yn-losange { margin-bottom: var(--espace-4); }
.yn-fonction p { margin-top: var(--espace-2); }
.yn-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--espace-16); align-items: start; }
.yn-duo > div > .yn-losange { margin-bottom: var(--espace-4); }
.yn-avantages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-4); }
.yn-avantages li { display: flex; gap: var(--espace-4); align-items: baseline; font-size: 19px; line-height: 29px; color: var(--titre); }
.yn-avantages .yn-losange { transform: translateY(-3px) rotate(45deg); }
.yn-encart { background: var(--bande-nuit); color: var(--texte-sur-nuit); border-radius: var(--rayon-lg); padding: var(--espace-12); display: grid; gap: var(--espace-6); justify-items: start; }
.yn-encart .fy-h2 { color: var(--texte-sur-nuit); }
.yn-encart p { color: var(--texte-discret-sur-nuit); max-width: 64ch; }

/* Page d'un métier */
.yn-prestations { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-6); }
.yn-prestation { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-md); padding: var(--espace-8); box-shadow: var(--ombre-carte); scroll-margin-top: calc(var(--hauteur-entete) + 56px); }
.yn-prestation .yn-losange { margin-bottom: var(--espace-6); }
.yn-prestation p { margin-top: var(--espace-3); }
.yn-prestation:target { outline: 2px solid var(--focus); outline-offset: 2px; }
.yn-voisins { border-top: 1px solid var(--bordure); }
.yn-voisins .fy-conteneur { display: flex; justify-content: space-between; gap: var(--espace-6); padding-top: var(--espace-8); padding-bottom: var(--espace-8); }
.yn-voisins a { display: grid; gap: var(--espace-1); text-decoration: none; font-weight: 700; font-size: 20px; color: var(--titre); }
.yn-voisins a span { font-weight: 500; font-size: 14px; color: var(--texte-discret); }
.yn-voisins a:last-child { text-align: right; }
.yn-voisins a:hover { color: var(--action); }

/* Texte long, coordonnées, contact */
.yn-prose { display: grid; gap: var(--espace-4); max-width: var(--largeur-texte); }
.yn-prose p { font-size: 18px; line-height: 30px; margin: 0; }
.fy-section--nuit .yn-prose p { color: var(--texte-discret-sur-nuit); }
.yn-coordonnees-liste { display: grid; grid-template-columns: max-content 1fr; gap: var(--espace-3) var(--espace-8); margin: 0; }
.yn-coordonnees-liste dt { color: var(--texte-discret); font-size: 15px; }
.yn-coordonnees-liste dd { margin: 0; color: var(--titre); font-weight: 600; }
.yn-contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--espace-16); align-items: start; }
.yn-contact-direct { background: var(--fond-alt); border-radius: var(--rayon-lg); padding: var(--espace-8); display: grid; gap: var(--espace-3); }
.yn-contact-direct a.yn-tel { font: 750 30px/36px var(--font-sans); text-decoration: none; color: var(--titre); }

@media (max-width: 960px) {
  .yn-logiciels, .yn-logiciels--liste { grid-template-columns: 1fr; }
  .yn-logiciel--phare { grid-row: auto; }
  .yn-coordonnees, .yn-ancrage, .yn-fin__grille, .yn-duo, .yn-contact { grid-template-columns: 1fr; gap: var(--espace-8); }
  .yn-coordonnees__intro { position: static; }
  .yn-piliers, .yn-grille-4, .yn-prestations, .yn-metiers--page { grid-template-columns: 1fr 1fr; }
  .yn-pilier:nth-child(3) { padding-left: 0; border-left: 0; }
  .yn-tete__signe { opacity: .3; right: -60px; }
}
@media (max-width: 640px) {
  .yn-heros { padding: var(--espace-16) 0; min-height: 0; }
  .yn-heros__titre { font-size: 38px; line-height: 42px; }
  .yn-heros__scene svg { width: 120vw; right: -50%; top: 8%; opacity: .35; transform: none; }
  .yn-raisons, .yn-piliers, .yn-grille-4, .yn-prestations, .yn-metiers--page, .yn-logiciels--deux { grid-template-columns: 1fr; }
  .yn-pilier + .yn-pilier { padding-left: 0; border-left: 0; }
  .yn-metier { grid-template-columns: 1fr; padding: var(--espace-6); }
  .yn-fin__titre { font-size: 32px; line-height: 38px; }
  .yn-logiciel--phare, .yn-encart { padding: var(--espace-8); }
  .yn-tete__produit { font-size: 44px; line-height: 46px; }
  .yn-tete__signe { display: none; }
  .yn-coordonnees-liste { grid-template-columns: 1fr; gap: var(--espace-1); }
  .yn-coordonnees-liste dd { margin-bottom: var(--espace-3); }
  .yn-voisins .fy-conteneur { flex-direction: column; }
  .yn-voisins a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .yn-heros__l { stroke-dasharray: none; animation: none; }
  .yn-heros__contenu > * { animation: none; }
  .yn-logiciel, .yn-logiciel:hover { transition: none; transform: none; }
}

/* Signes des métiers, formulaire de contact */
.yn-signe { width: 28px; height: 28px; fill: none; stroke: var(--titre); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.yn-formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--espace-6); align-items: start; }
.yn-formulaire > h2, .yn-formulaire > p, .yn-formulaire > button, .yn-champ--large { grid-column: 1 / -1; }
.yn-formulaire > h2 { margin-bottom: var(--espace-6); }
.yn-formulaire > [role] { margin-bottom: var(--espace-6); }
.yn-formulaire > button { justify-self: start; margin-top: var(--espace-4); }
.yn-requis { font-weight: 400; color: var(--texte-discret); font-size: 14px; }
@media (max-width: 640px) { .yn-formulaire { grid-template-columns: 1fr; } }

/* Page de rubrique activable (sections, étapes numérotées, références) */
.yn-preparation { padding-top: var(--espace-8); }
.yn-references { margin-top: var(--espace-2); font: 400 13px/19px var(--font-mono); color: var(--texte-discret); }
.fy-carte .yn-losange { margin-bottom: var(--espace-3); }
.yn-etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--espace-8) var(--espace-6); }
.yn-etapes li { counter-increment: etape; padding-top: var(--espace-6); border-top: 2px solid var(--bordure); }
.yn-etapes li::before { content: counter(etape, decimal-leading-zero); display: block; margin-bottom: var(--espace-3); font: 600 14px/20px var(--font-mono); color: var(--marque-bleu); }
.yn-etapes p { margin-top: var(--espace-2); }
.yn-avantages a { color: var(--action); }
.fy-section--nuit .yn-avantages li { color: var(--texte-sur-nuit); }
.fy-section--nuit .yn-duo p { color: var(--texte-discret-sur-nuit); }
@media (max-width: 960px) { .yn-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .yn-etapes { grid-template-columns: 1fr; } }

/* Chat de support Zammad (js/chat-zammad.js) : taille du texte, au lieu de l'option fontSize qui écrirait un attribut style. */
.zammad-chat { font-size: 12px; }
