/* emotion-wheel.com: what the emotion pages add to styles.css.
   Generated by marketing/outils/pages_emotions.py: do not edit by hand.
   No inline style in the pages: the site's Content-Security-Policy refuses them. */

.page-emotion {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gouttiere) clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-emotion > .fiche, .page-emotion > .carte-emotion, .page-emotion > .appel, .page-emotion > .carte-diagnostic { margin: 0; }

/* Breadcrumb */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 15px; color: var(--secondaire); }
.fil a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Head of the page: name, definition, synonyms, and the illustration; the family colour where there is none */
.emotion-nom, .index-titre {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.index-chapeau { margin: 12px 0 0; max-width: 660px; font-size: 19px; color: var(--secondaire); }
/* What the app adds, said where the reader is: under the index's lead, under the shades, under a family's emotions */
.index-app { margin: 8px 0 0; max-width: 660px; font-size: 17px; }
.carte-emotion-app { margin: 0; font-size: 16px; }
.index-app a, .carte-emotion-app a { font-weight: 700; }
.bloc-couleur { width: 100%; aspect-ratio: 1024 / 506; border-radius: 20px; }
.emotion-compte { margin: 0; font-size: 15px; font-weight: 700; color: var(--secondaire); }

/* White card with a title: shades, emotions of a family, families of the index */
.carte-emotion {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.carte-emotion h2, .familles-index .carte-emotion h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.familles-index .carte-emotion h3 a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.carte-emotion-intro { margin: 0; color: var(--secondaire); }

/* The shades, side by side: one tile each, with its name, its intensity and its definition */
.nuances {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.nuance { padding: 16px; border-radius: 16px; background: var(--attenuee); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.nuance-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nuance h3 { margin: 0; }
.nuance p { margin: 0; font-size: 16px; }
.nuance .nuance-note { font-size: 14px; color: var(--secondaire); }
.nuance .pilule-grise { background: var(--surface); }

/* The small titles of a card (Synonymes, Profil, Repères…) are headings, for the outline of the page; they look
   as they did as spans (.petit-titre, in styles.css). */
h2.petit-titre, h3.petit-titre { margin: 0; line-height: inherit; }
h3.petit-titre-espace { margin-top: 8px; }

/* Linked capsules: a comfortable target, no underline, the colour of their slice of the wheel */
a.pastille-emotion, a.pilule-famille, .page-emotion .emotions .pastille-emotion, .page-emotion .nuance h3 .pastille-emotion {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
a.pastille-emotion:hover { color: var(--fonce); text-decoration: underline; }
a.pilule-famille:hover { text-decoration: underline; }
.intrique-phrase { margin: 0; font-size: 18px; }

/* Families of the index */
.familles-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }

/* Invitation to the app */
.appel {
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 28px;
  background: var(--encre);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.appel h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; }
.appel p { margin: 0; max-width: 720px; color: var(--sur-encre); }
.appel .bouton { margin-top: 8px; }

/* The clickable wheel of the index */
.roue-liens { width: min(100%, 760px); margin: 0 auto; }
.roue-liens svg { display: block; width: 100%; height: auto; }
.roue-liens a:hover path, .roue-liens a:focus-visible path { opacity: 0.82; }
.roue-liens text { pointer-events: none; }

/* Tints of the second and third rings, from Wheel/Wheel/Data/dataHierarchy.json, with the text colour
   that reaches 4.5:1 on each. */
:root {
  --fear-2: #3E4757;
  --fear-3: #8E96A6;
  --anger-2: #D24B3E;
  --anger-3: #EB958A;
  --disgust-2: #9DB86E;
  --disgust-3: #C9DCA6;
  --sad-2: #6489BF;
  --sad-3: #AFC5E3;
  --peace-2: #A49BD0;
  --peace-3: #D3CDEA;
  --happy-2: #FDC551;
  --happy-3: #EFC157;
  --strength-2: #EC8A4C;
  --strength-3: #F5BC92;
  --surprise-2: #E07AA0;
  --surprise-3: #F1B5CB;
}
.pastille-emotion.fear-2, a.pastille-emotion.fear-2:hover { background: var(--fear-2); color: #FFFFFF; }
.pastille-emotion.fear-3, a.pastille-emotion.fear-3:hover { background: var(--fear-3); color: var(--fonce); }
.pastille-emotion.famille-fear, a.pastille-emotion.famille-fear:hover, a.pilule-famille.famille-fear:hover { color: #FFFFFF; }
.pastille-emotion.anger-2, a.pastille-emotion.anger-2:hover { background: var(--anger-2); color: var(--fonce); }
.pastille-emotion.anger-3, a.pastille-emotion.anger-3:hover { background: var(--anger-3); color: var(--fonce); }
.pastille-emotion.famille-anger, a.pastille-emotion.famille-anger:hover, a.pilule-famille.famille-anger:hover { color: #FFFFFF; }
.pastille-emotion.disgust-2, a.pastille-emotion.disgust-2:hover { background: var(--disgust-2); color: var(--fonce); }
.pastille-emotion.disgust-3, a.pastille-emotion.disgust-3:hover { background: var(--disgust-3); color: var(--fonce); }
.pastille-emotion.famille-disgust, a.pastille-emotion.famille-disgust:hover, a.pilule-famille.famille-disgust:hover { color: var(--fonce); }
.pastille-emotion.sad-2, a.pastille-emotion.sad-2:hover { background: var(--sad-2); color: var(--fonce); }
.pastille-emotion.sad-3, a.pastille-emotion.sad-3:hover { background: var(--sad-3); color: var(--fonce); }
.pastille-emotion.famille-sad, a.pastille-emotion.famille-sad:hover, a.pilule-famille.famille-sad:hover { color: #FFFFFF; }
.pastille-emotion.peace-2, a.pastille-emotion.peace-2:hover { background: var(--peace-2); color: var(--fonce); }
.pastille-emotion.peace-3, a.pastille-emotion.peace-3:hover { background: var(--peace-3); color: var(--fonce); }
.pastille-emotion.famille-peace, a.pastille-emotion.famille-peace:hover, a.pilule-famille.famille-peace:hover { color: var(--fonce); }
.pastille-emotion.happy-2, a.pastille-emotion.happy-2:hover { background: var(--happy-2); color: var(--fonce); }
.pastille-emotion.happy-3, a.pastille-emotion.happy-3:hover { background: var(--happy-3); color: var(--fonce); }
.pastille-emotion.famille-happy, a.pastille-emotion.famille-happy:hover, a.pilule-famille.famille-happy:hover { color: var(--fonce); }
.pastille-emotion.strength-2, a.pastille-emotion.strength-2:hover { background: var(--strength-2); color: var(--fonce); }
.pastille-emotion.strength-3, a.pastille-emotion.strength-3:hover { background: var(--strength-3); color: var(--fonce); }
.pastille-emotion.famille-strength, a.pastille-emotion.famille-strength:hover, a.pilule-famille.famille-strength:hover { color: var(--fonce); }
.pastille-emotion.surprise-2, a.pastille-emotion.surprise-2:hover { background: var(--surprise-2); color: var(--fonce); }
.pastille-emotion.surprise-3, a.pastille-emotion.surprise-3:hover { background: var(--surprise-3); color: var(--fonce); }
.pastille-emotion.famille-surprise, a.pastille-emotion.famille-surprise:hover, a.pilule-famille.famille-surprise:hover { color: var(--fonce); }
