/* =====================================================================
   Centre d'aide Purity White · style.css
   Mise en page : en-tête collant ; accueil = héros de recherche à gauche
   et questions fréquentes à droite sur ordinateur, une seule colonne sur
   téléphone ; article = colonne de lecture de 720 px + liste du thème.
   ===================================================================== */

/* ------------------------------- Police ------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-italique-sous-ensemble.woff2") format("woff2");
}

/* ------------------------------- Jetons ------------------------------- */

:root {
  /* couleurs (reprises du tableau de bord Purity White) */
  --accent: #6c39cc;
  --accent-survol: #5a2db3;
  --accent-texte: #6c39cc;
  --violet-fonce: #4f2a9e;
  --lilas: #efe8fc;
  --lilas-doux: #f3edfe;
  --surlignage: #e4d7fd;
  --selection: #dccdfb;
  --encre: #1f1b2e;
  --gris: #625f78;
  --fond: #f4f7fc;
  --fond-2: #f2f6fb;
  --carte: #ffffff;
  --surface: #f6f7fb;
  --trait: rgb(108 57 204 / 0.14);
  --barre: #cbbdf0;
  --forme-a: #e7dcfd;
  --forme-b: #efe6fd;
  --vert-wa: #25d366;
  --vert-wa-fonce: #1a9e52;
  --blanc: #ffffff;

  /* pastilles d'icônes */
  --p-violet-fond: #eee4fc;
  --p-violet: #9547ec;
  --p-bleu-fond: #e1ebfd;
  --p-bleu: #3576ec;
  --p-vert-fond: #dcf3e6;
  --p-vert: #17984a;
  --p-orange-fond: #fde8d8;
  --p-orange: #d65b0c;

  /* ombres teintées violet */
  --ombre-carte: 0 1px 2px rgb(54 28 110 / 0.05), 0 6px 18px -8px rgb(54 28 110 / 0.12);
  --ombre-elevee: 0 2px 6px rgb(54 28 110 / 0.06), 0 18px 36px -14px rgb(54 28 110 / 0.24);
  --ombre-champ: 0 1px 2px rgb(54 28 110 / 0.05), 0 12px 32px -14px rgb(54 28 110 / 0.24);
  --ombre-panneau: 0 4px 12px rgb(54 28 110 / 0.06), 0 24px 48px -16px rgb(54 28 110 / 0.28);
  --ombre-entete: 0 10px 28px -20px rgb(54 28 110 / 0.35);
  --anneau: rgb(108 57 204 / 0.16);

  /* typographie */
  --police: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* formes : cartes et blocs 20, pastilles 14, contrôles en pilule */
  --rayon-carte: 20px;
  --rayon-pastille: 14px;
  --rayon-pilule: 999px;

  /* mouvement */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ressort: linear(0, 0.018, 0.0644, 0.1292, 0.205, 0.286, 0.3679, 0.4476, 0.5231, 0.5931, 0.6566, 0.7135, 0.7637, 0.8074, 0.8451, 0.8771, 0.9041, 0.9265, 0.9449, 0.9599, 0.9719, 0.9814, 0.9888, 0.9944, 0.9986, 1.0016, 1.0037, 1.0051, 1.0059, 1.0062, 1.0063, 1.0061, 1.0058, 1.0053, 1.0048, 1.0043, 1.0038, 1.0033, 1.0028, 1.0024, 1);

  --entete-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #7c4ddb;
    --accent-survol: #8b60e2;
    --accent-texte: #b9a3ff;
    --violet-fonce: #d8caff;
    --lilas: #2c2546;
    --lilas-doux: #211d35;
    --surlignage: #44336f;
    --selection: #4a3a78;
    --encre: #efecf8;
    --gris: #aaa6c0;
    --fond: #13111c;
    --fond-2: #161424;
    --carte: #1c1a29;
    --surface: #24213a;
    --trait: rgb(185 163 255 / 0.18);
    --barre: #4a4170;
    --forme-a: #231a40;
    --forme-b: #1d1736;
    --p-violet-fond: #2d2348;
    --p-violet: #c3a2ff;
    --p-bleu-fond: #1d2944;
    --p-bleu: #8bb2ff;
    --p-vert-fond: #19312a;
    --p-vert: #63d39b;
    --p-orange-fond: #382517;
    --p-orange: #ffa262;
    --ombre-carte: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 22px -12px rgb(0 0 0 / 0.55);
    --ombre-elevee: 0 2px 6px rgb(0 0 0 / 0.35), 0 20px 40px -14px rgb(0 0 0 / 0.65);
    --ombre-champ: 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 34px -14px rgb(0 0 0 / 0.7);
    --ombre-panneau: 0 4px 12px rgb(0 0 0 / 0.35), 0 26px 50px -16px rgb(0 0 0 / 0.75);
    --ombre-entete: 0 10px 28px -18px rgb(0 0 0 / 0.75);
    --anneau: rgb(185 163 255 / 0.22);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --accent: #7c4ddb;
  --accent-survol: #8b60e2;
  --accent-texte: #b9a3ff;
  --violet-fonce: #d8caff;
  --lilas: #2c2546;
  --lilas-doux: #211d35;
  --surlignage: #44336f;
  --selection: #4a3a78;
  --encre: #efecf8;
  --gris: #aaa6c0;
  --fond: #13111c;
  --fond-2: #161424;
  --carte: #1c1a29;
  --surface: #24213a;
  --trait: rgb(185 163 255 / 0.18);
  --barre: #4a4170;
  --forme-a: #231a40;
  --forme-b: #1d1736;
  --p-violet-fond: #2d2348;
  --p-violet: #c3a2ff;
  --p-bleu-fond: #1d2944;
  --p-bleu: #8bb2ff;
  --p-vert-fond: #19312a;
  --p-vert: #63d39b;
  --p-orange-fond: #382517;
  --p-orange: #ffa262;
  --ombre-carte: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 22px -12px rgb(0 0 0 / 0.55);
  --ombre-elevee: 0 2px 6px rgb(0 0 0 / 0.35), 0 20px 40px -14px rgb(0 0 0 / 0.65);
  --ombre-champ: 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 34px -14px rgb(0 0 0 / 0.7);
  --ombre-panneau: 0 4px 12px rgb(0 0 0 / 0.35), 0 26px 50px -16px rgb(0 0 0 / 0.75);
  --ombre-entete: 0 10px 28px -18px rgb(0 0 0 / 0.75);
  --anneau: rgb(185 163 255 / 0.22);
  color-scheme: dark;
}

/* ------------------------------- Base ------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete-h) + 16px);
  scrollbar-color: var(--barre) transparent;
  background: var(--fond);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  caret-color: var(--accent);
  overflow-wrap: break-word;
}

/* très léger dégradé froid, comme le tableau de bord */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(165deg, var(--fond) 30%, var(--fond-2) 100%);
}

::selection {
  background: var(--selection);
  color: var(--encre);
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.ic {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.conteneur {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

.lien-evitement {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 8px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--rayon-pilule);
  background: var(--accent);
  color: var(--blanc);
  font-weight: 600;
  font-size: 0.875rem;
  transform: translateY(-180%);
}

.lien-evitement:focus {
  transform: none;
}

#sentinelle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

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

.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  height: var(--entete-h);
}

.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--fond) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}

.entete::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: var(--ombre-entete);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.entete.est-defile::after {
  opacity: 1;
}

.entete__contenu {
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 6px;
  border-radius: var(--rayon-pilule);
}

.marque__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.marque__texte {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.entete__recherche {
  justify-self: center;
  width: 100%;
  max-width: 460px;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}

.entete.avec-recherche .entete__recherche {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}

.entete__retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--rayon-pilule);
  background: var(--carte);
  box-shadow: var(--ombre-carte);
  color: var(--encre);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out);
}

.entete__retour .ic {
  width: 20px;
  height: 20px;
  color: var(--accent-texte);
}

.entete__retour-texte {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.entete__retour:active,
.marque:active {
  transform: scale(0.97);
}

@media (max-width: 639px) {
  .entete.avec-recherche .marque__texte {
    display: none;
  }
}

/* ------------------------------- Contenu ------------------------------- */

main {
  display: block;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  outline: none;
}

.vue {
  position: relative;
  isolation: isolate;
  animation: vue-entree 200ms var(--ease-out) both;
}

.vue--initiale {
  animation-duration: 260ms;
}

@keyframes vue-entree {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --------------------------- Cartes et boutons --------------------------- */

.carte {
  position: relative;
  background: var(--carte);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-carte);
  transition: transform 140ms var(--ease-out);
}

.carte::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--ombre-elevee);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

a.carte:active {
  transform: scale(0.97);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--rayon-pilule);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out);
}

.bouton .ic {
  width: 20px;
  height: 20px;
}

.bouton:active {
  transform: scale(0.97);
}

.bouton--primaire {
  background: var(--accent);
  color: var(--blanc);
  box-shadow: 0 8px 20px -10px rgb(108 57 204 / 0.7);
}

.bouton--secondaire {
  background: var(--carte);
  color: var(--violet-fonce);
  box-shadow: var(--ombre-carte);
}

.bouton--secondaire .ic {
  color: var(--accent-texte);
}

.bouton--choix {
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--encre);
  font-size: 0.875rem;
}

.bouton--choix .ic {
  width: 18px;
  height: 18px;
  color: var(--accent-texte);
}

.lien {
  color: var(--accent-texte);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent-texte) 40%, transparent);
}

.lien--discret {
  font-weight: 500;
  text-decoration: none;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: var(--rayon-pilule);
}

.puce {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--rayon-pilule);
  background: var(--carte);
  box-shadow: var(--ombre-carte);
  color: var(--encre);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out);
}

.puce::after {
  content: "";
  position: absolute;
  inset: -4px -2px;
}

.puce:active {
  transform: scale(0.97);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-top: 16px;
}

.suggestions--centre {
  justify-content: center;
  margin-top: 20px;
}

/* ------------------------------- Pastilles ------------------------------- */

.pastille {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--rayon-pastille);
  background: var(--p-fond);
  color: var(--p-ic);
}

.pastille .ic {
  width: 24px;
  height: 24px;
}

.pastille--violet {
  --p-fond: var(--p-violet-fond);
  --p-ic: var(--p-violet);
}

.pastille--bleu {
  --p-fond: var(--p-bleu-fond);
  --p-ic: var(--p-bleu);
}

.pastille--vert {
  --p-fond: var(--p-vert-fond);
  --p-ic: var(--p-vert);
}

.pastille--orange {
  --p-fond: var(--p-orange-fond);
  --p-ic: var(--p-orange);
}

.pastille--mini {
  width: 24px;
  height: 24px;
  border-radius: var(--rayon-pastille);
}

.pastille--mini .ic {
  width: 15px;
  height: 15px;
}

.pastille--petite {
  width: 36px;
  height: 36px;
}

.pastille--petite .ic {
  width: 20px;
  height: 20px;
}

.pastille--grande {
  width: 56px;
  height: 56px;
}

.pastille--grande .ic {
  width: 30px;
  height: 30px;
}

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

.heros__fond {
  position: absolute;
  inset: calc(-1 * var(--entete-h)) 0 auto 0;
  height: 700px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.forme {
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(46px);
  will-change: transform;
}

.forme path {
  fill: var(--forme-a);
}

.forme--a {
  top: -150px;
  left: -150px;
  animation: derive-a 20s ease-in-out infinite alternate;
}

.forme--b {
  top: 60px;
  right: -190px;
  animation: derive-b 24s ease-in-out infinite alternate;
}

.forme--b path {
  fill: var(--forme-b);
}

@keyframes derive-a {
  to {
    transform: translate(46px, 28px) rotate(10deg) scale(1.06);
  }
}

@keyframes derive-b {
  to {
    transform: translate(-40px, 36px) rotate(-12deg) scale(1.04);
  }
}

.accueil {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 52px;
  padding-top: 28px;
}

.heros {
  min-width: 0;
}

.heros__titre {
  font-size: 2.125rem;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 15ch;
  outline: none;
}

.heros__titre em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-texte);
  padding-right: 0.03em;
}

.heros__texte {
  margin-top: 12px;
  max-width: 40ch;
  text-wrap: balance;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gris);
}

.section__titre {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section__titre--petit {
  font-size: 1.0625rem;
}

/* questions fréquentes */
.frequentes__liste {
  display: grid;
  gap: 10px;
}

.ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px 12px 18px;
}

.ligne__titre {
  min-width: 0;
  font-size: 0.96875rem;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -0.012em;
}

.ligne__fleche {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lilas);
  color: var(--violet-fonce);
  transition: transform 200ms var(--ease-out);
}

.ligne__fleche .ic {
  width: 16px;
  height: 16px;
}

/* thèmes */
.themes__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-carte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 148px;
  padding: 16px;
}

.theme-carte__nom {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.96875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.theme-carte__nombre {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
}

.theme-carte__fleche {
  position: absolute;
  top: 16px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--violet-fonce);
  background: var(--lilas);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}

.theme-carte__fleche .ic {
  width: 15px;
  height: 15px;
}

/* contact */
.contact {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 24px;
  border-radius: var(--rayon-carte);
  background: var(--lilas-doux);
}

.contact__titre {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.016em;
}

.contact__texte p {
  margin-top: 4px;
  color: var(--gris);
}

.page .contact {
  margin-top: 44px;
}

/* ------------------------------- Recherche ------------------------------- */

.recherche {
  position: relative;
  scroll-margin-top: calc(var(--entete-h) + 12px);
}

.recherche--grande {
  margin-top: 24px;
  max-width: 580px;
}

.recherche__champ {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: var(--rayon-pilule);
  background: var(--carte);
  box-shadow: var(--ombre-champ);
  transition: transform 180ms var(--ease-out);
}

.recherche__champ::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 6px var(--anneau);
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

.recherche__champ:focus-within {
  transform: scale(1.01);
}

.recherche__champ:focus-within::after {
  opacity: 1;
}

.recherche__loupe {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  color: var(--accent-texte);
  pointer-events: none;
}

.recherche__saisie {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 50px 0 50px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.011em;
  outline: none;
}

.recherche__saisie::-webkit-search-cancel-button,
.recherche__saisie::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.recherche__saisie::placeholder {
  color: var(--gris);
  opacity: 1;
}

.recherche__exemple {
  position: absolute;
  inset: 0 50px 0 50px;
  overflow: hidden;
  pointer-events: none;
  color: var(--gris);
  font-size: 1rem;
}

.recherche[data-rempli] .recherche__exemple {
  opacity: 0;
}

.recherche__exemple-texte {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 320ms var(--ease-out), opacity 240ms var(--ease-out);
}

.recherche__exemple-texte.est-entrant {
  transform: translateY(55%);
  opacity: 0;
}

.recherche__exemple-texte.est-sortant {
  transform: translateY(-55%);
  opacity: 0;
}

.recherche__effacer {
  position: absolute;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gris);
  transition: transform 140ms var(--ease-out);
}

.recherche__effacer .ic {
  width: 18px;
  height: 18px;
}

.recherche__effacer::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.recherche__effacer:active {
  transform: scale(0.92);
}

.recherche--compacte .recherche__champ {
  height: 44px;
  box-shadow: var(--ombre-carte);
}

.recherche--compacte .recherche__loupe {
  left: 14px;
  width: 18px;
  height: 18px;
}

.recherche--compacte .recherche__saisie {
  padding: 0 42px 0 40px;
  font-size: 1rem;
}

.recherche--compacte .recherche__effacer {
  right: 4px;
  width: 36px;
  height: 36px;
}

.recherche__panneau {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: var(--rayon-carte);
  background: var(--carte);
  box-shadow: var(--ombre-panneau);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  scrollbar-width: thin;
}

.recherche[data-ouvert] .recherche__panneau {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.recherche__entete-panneau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gris);
}

.recherche__liste {
  display: grid;
  gap: 2px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 9px 12px;
  border-radius: var(--rayon-pastille);
  cursor: pointer;
}

.option.est-actif {
  background: var(--lilas);
}

.option__pastille {
  align-self: flex-start;
  margin-top: 2px;
}

.option__texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.option__titre {
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--encre);
}

.option__theme {
  margin-top: 1px;
  font-size: 0.8125rem;
  color: var(--gris);
}

.option__icone {
  width: 18px;
  height: 18px;
  color: var(--gris);
}

.option--tout {
  justify-content: space-between;
  min-height: 48px;
}

.option--tout .option__titre {
  color: var(--accent-texte);
  font-weight: 600;
}

.option__fleche {
  width: 18px;
  height: 18px;
  color: var(--accent-texte);
}

.recherche__etat {
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gris);
}

@media (max-width: 1023px) {
  .recherche--compacte .recherche__panneau {
    position: fixed;
    top: calc(var(--entete-h) + env(safe-area-inset-top, 0px) + 6px);
    left: 12px;
    right: 12px;
  }
}

/* mots trouvés */
.trouve {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  background: none;
  color: inherit;
}

.trouve::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.14em;
  z-index: -1;
  border-radius: var(--rayon-pilule);
  background: var(--surlignage);
}

.anime-marques .trouve::before,
.recherche__panneau.est-neuf .trouve::before {
  transform-origin: left center;
  animation: deroule 200ms var(--ease-out) both;
}

@keyframes deroule {
  from {
    transform: scaleX(0);
  }
}

/* ------------------------------- Pages ------------------------------- */

.page {
  padding-top: 24px;
}

.page--etroite {
  max-width: 812px;
}

.page__titre {
  font-size: 1.75rem;
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.024em;
  text-wrap: balance;
  outline: none;
}

.page__sous-titre {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
}

.barre-page {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 22px;
}

.bouton-retour {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  flex-shrink: 0;
  border-radius: var(--rayon-pilule);
  background: var(--carte);
  box-shadow: var(--ombre-carte);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre);
  transition: transform 140ms var(--ease-out);
}

.bouton-retour::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.bouton-retour .ic {
  width: 18px;
  height: 18px;
  color: var(--accent-texte);
}

.bouton-retour:active {
  transform: scale(0.97);
}

/* résultats */
.resultats {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.resultat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.resultat__theme {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gris);
}

.resultat__titre {
  margin-top: 4px;
  font-size: 1.03125rem;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.resultat__resume {
  font-size: 0.90625rem;
  line-height: 1.5;
  color: var(--gris);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resultats__aide {
  margin-top: 26px;
  font-size: 0.90625rem;
  color: var(--gris);
}

/* thème */
.theme-entete {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.liste-articles {
  display: grid;
  gap: 10px;
}

.article-carte {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px 16px 18px;
}

.article-carte__texte {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.article-carte__titre {
  font-size: 1rem;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.013em;
}

.article-carte__resume {
  font-size: 0.90625rem;
  line-height: 1.5;
  color: var(--gris);
}

/* états vides et erreurs */
.etat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
}

.etat .page__titre {
  margin-top: 20px;
  max-width: 22ch;
}

.etat__texte {
  margin-top: 10px;
  max-width: 46ch;
  color: var(--gris);
}

.etat__contact {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 460px;
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--rayon-carte);
  background: var(--lilas-doux);
  color: var(--gris);
}

.etat__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* ------------------------------- Article ------------------------------- */

.article-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.article {
  min-width: 0;
}

.puce-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: var(--rayon-pilule);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--violet-fonce);
}

.puce-theme > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bouton-copier {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: var(--rayon-pilule);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gris);
  transition: transform 140ms var(--ease-out);
}

.bouton-copier::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.bouton-copier:active {
  transform: scale(0.95);
}

.bouton-copier__icones {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bouton-copier__icones .ic {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-out);
}

.ic--ok {
  opacity: 0;
  transform: scale(0.6);
  color: var(--p-vert);
}

.bouton-copier[data-etat="copie"] .ic--lien {
  opacity: 0;
  transform: scale(0.6);
}

.bouton-copier[data-etat="copie"] .ic--ok {
  opacity: 1;
  transform: none;
}

.bouton-copier__texte {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.article__titre {
  font-size: 1.875rem;
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
  outline: none;
}

.article__resume {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gris);
}

.article__corps {
  display: grid;
  gap: 16px;
  max-width: 66ch;
  margin-top: 30px;
}

.article__corps > p {
  font-size: 1.03125rem;
  line-height: 1.7;
}

.article__corps strong,
.puces strong,
.etape__texte strong {
  font-weight: 650;
}

.article__intertitre {
  margin-top: 14px;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.article__corps > .article__intertitre:first-child {
  margin-top: 0;
}

/* étapes numérotées */
.etapes {
  display: grid;
  gap: 16px;
}

.etape {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.etape__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--blanc);
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  box-shadow: 0 6px 14px -8px rgb(108 57 204 / 0.8);
}

.etape__texte {
  min-width: 0;
  padding-top: 3px;
}

.etape__texte > p {
  font-size: 1.03125rem;
  line-height: 1.6;
}

.etape.apparait .etape__num {
  animation: num-entree 640ms var(--ressort) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.etape.apparait .etape__texte {
  animation: texte-entree 280ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms + 50ms);
}

.etape.en-attente .etape__num,
.etape.en-attente .etape__texte {
  opacity: 0;
}

@keyframes num-entree {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  30% {
    opacity: 1;
  }
}

@keyframes texte-entree {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* listes à puces */
.puces {
  display: grid;
  gap: 8px;
}

.etape__texte .puces {
  margin-top: 10px;
}

.puces > li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.puces > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.exemple {
  padding: 14px 18px;
  border-radius: var(--rayon-carte);
  background: var(--carte);
  font-size: 0.96875rem;
  line-height: 1.6;
}

/* encadrés */
.encadre {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: var(--rayon-carte);
  background: var(--lilas-doux);
}

.encadre + .encadre {
  margin-top: 0;
}

.encadre__texte {
  min-width: 0;
  padding-top: 2px;
}

.encadre__titre {
  margin-bottom: 2px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--encre);
}

.encadre__texte p:not(.encadre__titre) {
  font-size: 0.96875rem;
  line-height: 1.6;
}

/* voir aussi */
.voir-aussi {
  margin-top: 44px;
}

.voir-aussi__grille {
  display: grid;
  gap: 10px;
}

.lie {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 72px;
  padding: 14px 14px 14px 18px;
}

.lie__texte {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lie__titre {
  font-size: 0.9375rem;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.lie__theme {
  font-size: 0.8125rem;
  color: var(--gris);
}

/* avis sur l'article */
.avis-article {
  margin-top: 28px;
  padding: 18px 18px 18px 20px;
}

.avis-article__question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.avis-article__titre {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.avis-article__choix {
  display: flex;
  gap: 8px;
}

.avis-article__merci,
.avis-article__aide {
  display: none;
}

[data-reponse] .avis-article__question {
  display: none;
}

[data-reponse="oui"] .avis-article__merci {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: monte 240ms var(--ease-out) both;
}

[data-reponse="non"] .avis-article__aide {
  display: grid;
  justify-items: start;
  gap: 14px;
  color: var(--gris);
  animation: monte 240ms var(--ease-out) both;
}

@keyframes monte {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* dans ce thème */
.dans-ce-theme {
  margin-top: 48px;
  min-width: 0;
}

.dans-ce-theme__titre {
  margin-bottom: 8px;
  padding-left: 12px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--gris);
}

.dans-ce-theme__liste {
  display: grid;
  gap: 2px;
}

.dans-ce-theme__lien {
  display: block;
  padding: 10px 12px;
  border-radius: var(--rayon-pastille);
  font-size: 0.90625rem;
  line-height: 1.4;
  color: var(--encre);
}

.dans-ce-theme__lien[aria-current="page"] {
  background: var(--lilas);
  color: var(--violet-fonce);
  font-weight: 600;
}

/* ------------------------------- Bulle WhatsApp ------------------------------- */

.wa-bulle {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out);
}

.wa-bulle.est-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.saisie-en-cours .wa-bulle.est-visible,
.panneau-ouvert .wa-bulle.est-visible {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
}

.wa-bulle__rond {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--vert-wa) 0%, var(--vert-wa-fonce) 100%);
  color: var(--blanc);
  box-shadow: 0 2px 6px rgb(26 158 82 / 0.25), 0 12px 26px -10px rgb(26 158 82 / 0.7);
  transition: transform 140ms var(--ease-out);
}

.wa-bulle__rond .ic {
  width: 30px;
  height: 30px;
}

.wa-bulle:active .wa-bulle__rond {
  transform: scale(0.92);
}

.wa-bulle:focus-visible {
  outline: none;
}

.wa-bulle:focus-visible .wa-bulle__rond {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wa-bulle__etiquette {
  position: absolute;
  right: 66px;
  top: 50%;
  translate: 0 -50%;
  padding: 9px 16px;
  border-radius: var(--rayon-pilule);
  background: var(--carte);
  box-shadow: var(--ombre-elevee);
  color: var(--encre);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px) scale(0.96);
  transform-origin: right center;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}

/* ------------------------------- Survol (souris) ------------------------------- */

@media (hover: hover) and (pointer: fine) {
  a.carte:hover {
    transform: translateY(-2px);
  }

  a.carte:hover::after {
    opacity: 1;
  }

  a.carte:active {
    transform: scale(0.97);
  }

  .ligne:hover .ligne__fleche,
  .article-carte:hover .ligne__fleche,
  .lie:hover .ligne__fleche {
    transform: translateX(2px);
  }

  .theme-carte:hover .theme-carte__fleche {
    opacity: 1;
    transform: none;
  }

  .puce:hover {
    background: var(--lilas);
    color: var(--violet-fonce);
  }

  .bouton--primaire:hover {
    background: var(--accent-survol);
  }

  .bouton--secondaire:hover,
  .bouton-retour:hover,
  .entete__retour:hover {
    background: var(--lilas-doux);
  }

  .bouton--choix:hover {
    background: var(--lilas);
  }

  .puce-theme:hover,
  .bouton-copier:hover,
  .lien--discret:hover {
    background: var(--lilas);
  }

  .recherche__effacer:hover {
    background: var(--lilas);
    color: var(--violet-fonce);
  }

  .dans-ce-theme__lien:hover:not([aria-current]) {
    background: var(--carte);
  }

  .wa-bulle:hover .wa-bulle__etiquette {
    opacity: 1;
    transform: none;
  }
}

.wa-bulle:focus-visible .wa-bulle__etiquette {
  opacity: 1;
  transform: none;
}

/* ------------------------------- Tablette ------------------------------- */

@media (min-width: 640px) {
  .conteneur {
    padding-inline: 24px;
  }

  .heros__titre {
    font-size: 2.75rem;
  }

  .themes__grille {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 28px 32px;
  }

  .entete__retour {
    width: auto;
    padding: 0 18px 0 14px;
  }

  .entete__retour-texte {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .bouton-copier {
    width: auto;
    padding: 0 14px;
  }

  .bouton-copier__texte {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .voir-aussi__grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page__titre {
    font-size: 2rem;
  }

  .article__titre {
    font-size: 2.25rem;
  }

  .avis-article {
    padding: 20px 20px 20px 24px;
  }
}

/* ------------------------------- Ordinateur ------------------------------- */

@media (min-width: 1024px) {
  .conteneur {
    padding-inline: 32px;
  }

  .entete__contenu {
    gap: 24px;
  }

  .accueil {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "heros frequentes"
      "themes themes"
      "contact contact";
    column-gap: 72px;
    row-gap: 88px;
    align-items: start;
    padding-top: 64px;
  }

  .heros {
    grid-area: heros;
    padding-top: 8px;
  }

  .frequentes {
    grid-area: frequentes;
  }

  .themes {
    grid-area: themes;
  }

  .contact {
    grid-area: contact;
  }

  .heros__titre {
    font-size: 3.5rem;
    line-height: 1.06;
    letter-spacing: -0.034em;
  }

  .heros__texte {
    margin-top: 16px;
    font-size: 1.125rem;
  }

  .recherche--grande {
    margin-top: 32px;
  }

  .recherche--grande .recherche__champ {
    height: 60px;
  }

  .recherche--grande .recherche__saisie,
  .recherche--grande .recherche__exemple {
    font-size: 1.0625rem;
  }

  .recherche--grande .recherche__exemple-texte {
    line-height: 60px;
  }

  .recherche--grande .recherche__saisie {
    padding: 0 54px 0 54px;
  }

  .recherche--grande .recherche__exemple {
    inset: 0 54px 0 54px;
  }

  .recherche--grande .recherche__loupe {
    left: 20px;
  }

  .themes__grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .theme-carte {
    min-height: 156px;
    padding: 20px;
  }

  .puce {
    padding: 0 15px;
  }

  .page {
    padding-top: 48px;
  }

  .page__titre {
    font-size: 2.25rem;
  }

  .article-grille {
    grid-template-columns: minmax(0, 720px) 264px;
    justify-content: space-between;
    column-gap: 64px;
    align-items: start;
  }

  .article__titre {
    font-size: 2.5rem;
    line-height: 1.12;
  }

  .dans-ce-theme {
    position: sticky;
    top: calc(var(--entete-h) + env(safe-area-inset-top, 0px) + 28px);
    margin-top: 62px;
  }
}

/* ------------------------------- Mouvement réduit ------------------------------- */

@keyframes fondu {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vue,
  .avec-cascade .cascade > li,
  .etape.apparait .etape__num,
  .etape.apparait .etape__texte,
  [data-reponse] .avis-article__merci,
  [data-reponse] .avis-article__aide {
    animation-name: fondu !important;
    animation-duration: 150ms !important;
    animation-timing-function: ease-out !important;
  }

  .forme {
    animation: none;
  }

  .anime-marques .trouve::before,
  .recherche__panneau.est-neuf .trouve::before {
    animation: none;
  }

  .recherche__champ:focus-within,
  .carte,
  a.carte:hover,
  a.carte:active,
  .bouton:active,
  .puce:active,
  .bouton-retour:active,
  .entete__retour:active,
  .wa-bulle,
  .wa-bulle.est-visible,
  .wa-bulle:active .wa-bulle__rond,
  .entete__recherche,
  .recherche[data-ouvert] .recherche__panneau,
  .recherche__panneau {
    transform: none !important;
  }

  .recherche__exemple-texte.est-entrant,
  .recherche__exemple-texte.est-sortant {
    transform: none;
  }
}

/* ------------------------------- Impression ------------------------------- */

@media print {
  .entete,
  .wa-bulle,
  .heros__fond,
  .avis-article,
  .barre-page,
  .dans-ce-theme {
    display: none !important;
  }

  .etape .etape__num,
  .etape .etape__texte {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ------------------------------- Cascade (une fois) ------------------------------- */

.avec-cascade .cascade > li {
  animation: arrivee 260ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes arrivee {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
