/* emotion-wheel.com — feuille commune à toutes les pages.
   Les valeurs viennent de docs/design/HANDOFF-site.md (§ 4 à § 9) et de ses maquettes HTML.
   Aucun style en ligne dans les pages : la politique de sécurité du site (staticwebapp.config.json) les refuse. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --fond: #EDF0EE;
  --encre: #1B2B2B;
  --secondaire: #4F5E5C;
  --surface: #FFFFFF;
  --attenuee: #F3F5F4;
  --sur-encre: #C9D2D0;
  --filet: #DDE2E0;
  --fonce: #241703;
  --survol: #3A4A4A;

  /* Première teinte de chaque famille, d'après Wheel/Wheel/Data/dataHierarchy.json. */
  --fear: #4E3227;
  --anger: #213535;
  --disgust: #F54320;
  --sad: #FA6113;
  --peace: #2A6F8F;
  --happy: #FCBB24;
  --strength: #6B3A7D;
  --surprise: #32985E;

  --gouttiere: clamp(16px, 4vw, 24px);
  --entre-sections: clamp(56px, 7vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--fond); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: ui-rounded, 'SF Pro Rounded', Nunito, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--encre); }
a:hover { color: var(--survol); }
a:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }

/* ---------- En-tête ---------- */

.entete {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px var(--gouttiere);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.marque, .marque:hover {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--encre);
  text-decoration: none;
}
.marque img { display: block; width: 36px; height: 36px; }
.marque span { font-size: 19px; font-weight: 800; line-height: 1.1; }
.entete nav { display: flex; align-items: center; gap: 8px; }
.langue, .langue:hover {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Pied de page ---------- */

.pied {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gouttiere) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  font-size: 15px;
  color: var(--secondaire);
}
.pied-contact { flex: 1 1 100%; margin: 0; overflow-wrap: anywhere; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.pied a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- Éléments communs ---------- */

.bouton, .bouton:hover {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--encre);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}
.bouton svg { flex: none; }
.bouton-grand { min-height: 56px; }
.bouton-inverse, .bouton-inverse:hover { background: var(--surface); color: var(--encre); }
.bouton-courriel { padding: 0 22px; overflow-wrap: anywhere; }

/* Un lien seul sur sa ligne : en gras, et une cible d'au moins 44 px. */
.lien-seul { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.surtitre { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--secondaire); }

.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.coches li { display: flex; align-items: flex-start; gap: 12px; }
.coches svg { flex: none; margin-top: 2px; }

/* Couleur de chaque famille, avec la couleur de texte qui y passe à 4,5 pour 1. */
.famille-fear { background: var(--fear); color: #FFFFFF; }
.famille-anger { background: var(--anger); color: #FFFFFF; }
.famille-disgust { background: var(--disgust); color: var(--fonce); }
.famille-sad { background: var(--sad); color: var(--fonce); }
.famille-peace { background: var(--peace); color: #FFFFFF; }
.famille-happy { background: var(--happy); color: var(--fonce); }
.famille-strength { background: var(--strength); color: #FFFFFF; }
.famille-surprise { background: var(--surprise); color: var(--fonce); }


/* ---------- Accueil ---------- */

.section { max-width: 1120px; margin: 0 auto var(--entre-sections); padding: 0 var(--gouttiere); }
.section-derniere { margin-bottom: clamp(40px, 5vw, 64px); }

.titre-section {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.intro { max-width: 660px; margin-bottom: 32px; }
.sous-titre { margin: 12px 0 0; font-size: 18px; color: var(--secondaire); }

/* Ouverture */
.ouverture {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px var(--gouttiere) var(--entre-sections);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 48px;
}
.ouverture-texte {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.etiquette {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondaire);
}
.titre-accueil {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.chapeau-accueil { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--secondaire); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 8px; }
.actions .lien-seul { font-size: 16px; }
.note { margin: 0; font-size: 14px; color: var(--secondaire); }
.ouverture-roue { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }

/* La roue : l'image de roue.py, et les noms des familles posés par-dessus (HANDOFF-site.md § 5). */
.roue { position: relative; width: min(100%, 540px); aspect-ratio: 1 / 1; container-type: inline-size; }
.roue img { display: block; width: 100%; height: 100%; }
.roue-nom {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  font-size: 3.1cqw;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: #FFFFFF;
}
.roue-nom-fonce { color: var(--fonce); }
.roue-fear { left: 68.82%; top: 40.37%; --rotation: -27.1deg; }
.roue-anger { left: 50.36%; top: 28.86%; --rotation: -89deg; }
.roue-disgust { left: 35.43%; top: 34.68%; --rotation: 46.5deg; }
.roue-sad { left: 28.86%; top: 50%; --rotation: 0deg; }
.roue-peace { left: 40.05%; top: 68.66%; --rotation: -61.9deg; }
.roue-happy { left: 55.3%; top: 70.47%; --rotation: 75.5deg; }
.roue-strength { left: 65.57%; top: 64.31%; --rotation: 42.6deg; }
.roue-surprise { left: 70.55%; top: 54.95%; --rotation: 13.5deg; }
.roue-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6cqw;
  color: #FFFFFF;
  line-height: 1;
}
.roue-centre-nombre { font-size: 8cqw; font-weight: 800; }
.roue-centre-mot { font-size: 3.4cqw; font-weight: 700; }

/* « Comment vous sentez-vous ? » */
.carte-bandeau { background: var(--surface); border-radius: 28px; overflow: hidden; }
.bandeau { background: var(--encre); padding: clamp(24px, 3.2vw, 40px); }
.bandeau .titre-section { color: #FFFFFF; }
.bandeau p { margin: 8px 0 0; font-size: 18px; color: var(--sur-encre); }
.captures {
  padding: clamp(24px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px 32px;
}
.capture { display: flex; flex-direction: column; gap: 10px; }
.capture h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.capture p { margin: 0; font-size: 16px; color: var(--secondaire); }
.telephone {
  align-self: center;
  width: min(100%, 250px);
  padding: 8px;
  margin-bottom: 14px;
  border-radius: 40px;
  background: var(--encre);
}
.telephone img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 1688; border-radius: 32px; }
.titre-et-pilule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pilule-grise {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fond);
  font-size: 13px;
  font-weight: 700;
  color: var(--secondaire);
}

/* La fiche */
.fiche {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.fiche-gauche {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.fiche-droite { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pilule-famille { padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.fiche-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 506;
  object-fit: cover;
  border-radius: 20px;
}
.fiche-nom-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fiche-nom { font-size: 32px; font-weight: 800; line-height: 1.2; }
.pilule-contour {
  padding: 3px 12px;
  border: 2px solid var(--secondaire);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondaire);
}
.fiche-definition { margin: 0; font-size: 20px; line-height: 1.45; }
.fiche-bloc { display: flex; flex-direction: column; gap: 10px; }
.petit-titre { font-size: 13px; font-weight: 700; color: var(--secondaire); }
.petit-titre-espace { margin-top: 8px; }
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles li { padding: 6px 14px; border-radius: 14px; background: var(--attenuee); font-size: 16px; }
.jauge { display: flex; flex-direction: column; gap: 8px; }
.jauge-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.jauge-critere { color: var(--secondaire); }
.jauge-valeur { font-weight: 800; }
.jauge-segments { display: flex; gap: 6px; }
.jauge-segments span { flex: 1; height: 10px; border-radius: 5px; background: var(--filet); }
.jauge-segments .actif { background: var(--encre); }
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.repere { padding: 14px; border-radius: 14px; background: var(--attenuee); display: flex; flex-direction: column; gap: 2px; }
.repere-critere { font-size: 12px; font-weight: 700; color: var(--secondaire); }
.repere-valeur { font-size: 17px; font-weight: 800; }
.repere-phrase { font-size: 13px; line-height: 1.4; color: var(--secondaire); }
.relation { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.pastille-famille { padding: 6px 16px; border-radius: 14px; font-size: 16px; font-weight: 800; }

/* Les huit familles */
.familles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(150px, calc((100% - 60px) / 4 - 1px)), 1fr));
  gap: 20px;
}
.famille { background: var(--surface); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.famille img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 506; object-fit: cover; }
.famille-texte { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.famille h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.point { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.famille-compte { margin: 0; font-size: 13px; font-weight: 700; color: var(--secondaire); }
.famille-definition { margin: 0; font-size: 15px; line-height: 1.45; color: var(--secondaire); }

/* Le journal */
.deux-colonnes { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.colonne { flex: 1 1 380px; min-width: 0; }
.carte-blanche {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.carte-blanche .lien-seul { align-self: flex-start; font-size: 16px; }

/* Les prix */
.titre-prix { margin-bottom: 28px; max-width: 660px; }
.cartes-prix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.carte-prix {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.carte-prix .coches { gap: 12px; }
.carte-prix-encre { background: var(--encre); color: #FFFFFF; }
.carte-prix-encre .surtitre, .carte-prix-encre .coches svg { color: var(--sur-encre); }
.carte-prix-encre .bouton { align-self: flex-start; margin-top: 4px; }
.carte-prix .surtitre { margin: 0; }
.prix-titre { margin: 4px 0 0; font-size: 32px; font-weight: 800; line-height: 1.2; }
.prix-detail { margin: 4px 0 0; font-size: 16px; color: var(--sur-encre); }
.note-prix { margin: 20px 0 0; max-width: 820px; font-size: 14px; line-height: 1.55; color: var(--secondaire); }

/* « Cette app ne pose pas de diagnostic. » */
.carte-diagnostic { padding: clamp(24px, 3.2vw, 40px); border-radius: 28px; background: var(--surface); }
.carte-diagnostic h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; }
.carte-diagnostic > p { margin: 12px 0 24px; max-width: 720px; color: var(--secondaire); }
/* Aucun numéro : l'audience est internationale, et un numéro juste dans un pays est faux ailleurs. */
.encadre-aide {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--attenuee);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.encadre-aide p { margin: 0; max-width: 720px; color: var(--secondaire); }
.encadre-aide .encadre-aide-titre { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--encre); }

/* ---------- Pages de texte ---------- */

.page-texte { max-width: 760px; margin: 0 auto; padding: 24px var(--gouttiere) 64px; }
.page-texte h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.chapeau { margin: 12px 0 32px; font-size: 19px; color: var(--secondaire); }
.chapeau-serre { margin-bottom: 28px; }
.mise-a-jour { margin: 8px 0 28px; font-size: 15px; color: var(--secondaire); }
.pile { display: flex; flex-direction: column; gap: 16px; }
.carte-texte {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.carte-texte-serree { gap: 10px; }
.carte-texte > a { align-self: flex-start; }
.carte-texte h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.carte-texte p { margin: 0; color: var(--secondaire); }
.carte-texte ol, .carte-texte ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.carte-texte ul { color: var(--secondaire); }
.libelle { font-weight: 800; color: var(--encre); }
.en-bref { padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: var(--encre); color: #FFFFFF; }
.en-bref p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; }
.case-grise {
  font-style: normal;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--attenuee);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-grise strong { font-weight: 800; }
.case-grise a { align-self: flex-start; }

/* Listes de définitions : un filet entre deux lignes, le terme à gauche sur une largeur fixe. */
.definitions { margin: 0; display: flex; flex-direction: column; }
.definitions > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--filet); }
.definitions > div:last-child { padding-bottom: 0; }
.definitions dt { flex: 0 0 150px; font-weight: 800; }
.definitions dd { flex: 1 1 320px; min-width: 0; margin: 0; color: var(--secondaire); }

.definitions-editeur > div:first-child { border-top: 0; padding: 0 0 14px; }
.definitions-editeur > div + div { align-items: center; gap: 0 24px; padding: 6px 0 0; }
.definitions-editeur dt { flex-basis: 200px; font-weight: 500; color: var(--secondaire); }
.definitions-editeur dd { flex: 1 1 280px; font-weight: 800; color: var(--encre); }
.definitions-editeur dd a { font-weight: 800; }

/* ---------- Page introuvable ---------- */

.introuvable { display: flex; flex-direction: column; gap: 32px; }
.introuvable section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.introuvable h1, .introuvable h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.12; }
.introuvable p { margin: 0; font-size: 19px; color: var(--secondaire); }
