/* Page ressources de Marie : simple et efficace (retours de Marie du 2026-12-05).
   Fond clair avec quelques fils fins ondulés en couleurs douces (fils.svg) et un grain très fin,
   texte noir, une seule police.
   Seul le mot-clé prend la couleur du Short. */
:root {
  --fond: #ffffff;
  --fond-page: #f7f6f3;
  --encre: #141414;
  --gris: #5f5f5f;
  --ligne: #dddbd6;
  --panneau: #ffffff;
  --accent: #141414;
  --police: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--encre);
  background-color: var(--fond-page);
  background-image: url("fils.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Un grain très fin, pour l'aspect papier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.28 0 0 0 0 0.25 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body { position: relative; isolation: isolate; }

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

a { color: inherit; }

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

.maquette {
  margin: 0 0 36px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff6d6;
  font-size: 0.875rem;
  color: #6b5a12;
}

.signature {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--gris);
}

h1 {
  margin: 0 0 28px;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* La recherche */
.recherche label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.recherche input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--encre);
  border-radius: 12px;
  background: var(--fond);
  font: 700 1.5rem var(--police);
  color: var(--encre);
  text-transform: uppercase;
}
.recherche input::placeholder {
  font-weight: 400;
  font-size: 1.0625rem;
  text-transform: none;
  color: #9a9a9a;
}
.recherche input:focus { outline: none; box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.15); }

.compte {
  margin: 12px 0 20px;
  font-size: 0.9375rem;
  color: var(--gris);
}

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste a {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  box-shadow: 0 8px 24px -20px rgba(20, 20, 20, 0.4);
  text-decoration: none;
}
.liste .mot {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  padding: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  font-weight: 800;
  font-size: 1rem;
  color: var(--c);
  overflow-wrap: anywhere;
  text-align: center;
}
.liste .titre { display: block; font-weight: 700; }
.liste .resume { display: block; color: var(--gris); font-size: 0.9375rem; }
.liste .fleche { color: var(--gris); font-size: 1.2rem; }
.liste a:hover { border-color: var(--encre); }

.vide { padding: 20px 0; color: var(--gris); }

/* Page d'une ressource */
.retour {
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.mot-geant {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.8rem, 12vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.ressource h1 {
  margin: 14px 0 14px;
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.contenu { margin: 0 0 32px; padding-left: 1.2em; }
.contenu li { margin: 4px 0; }

.ressource form {
  padding: 24px;
  border-radius: 16px;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  box-shadow: 0 10px 30px -18px rgba(20, 20, 20, 0.35);
}
.champ { margin-bottom: 16px; }
.champ label { display: block; margin-bottom: 6px; font-weight: 600; }
.champ input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--encre);
}
.champ input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.12); }

.accord {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 20px;
  font-size: 0.9375rem;
  color: var(--gris);
}
.accord input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--encre); flex: none; }

button {
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--encre);
  color: #fff;
  font: 700 1.0625rem var(--police);
  cursor: pointer;
}
button:hover { background: #333; }

.erreur { margin: 0 0 14px; color: #b42318; font-weight: 600; }

.envoye h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; }
.envoye p { margin: 0 0 8px; }

.introuvable h1 { margin-bottom: 14px; }

@media (max-width: 480px) {
  main { padding: 40px 20px 64px; }
  .liste a { grid-template-columns: 4rem 1fr; gap: 12px; padding: 14px; }
  .liste .fleche { display: none; }
  .liste .mot { font-size: 0.8125rem; }
  .ressource form { padding: 20px 16px; }
}

/* Page mentions légales et confidentialité */
.texte-legal h1 { margin-bottom: 8px; }
.texte-legal .maj { margin: 0 0 32px; color: var(--gris); font-size: 0.9375rem; }
.texte-legal h2 { margin: 32px 0 8px; font-size: 1.25rem; font-weight: 800; }
.texte-legal p, .texte-legal ul { margin: 0 0 12px; }
.texte-legal li + li { margin-top: 6px; }
.a-confirmer { padding: 1px 6px; border-radius: 4px; background: #fff6d6; color: #6b5a12; }

/* Page d'une ressource envoyée par email (ex. skills.html) : même mise en page que le texte légal */
.texte-legal .mot-geant { margin: 0 0 8px; }
.texte-legal code { padding: 1px 5px; border-radius: 4px; background: #ffffffb3; font-size: 0.9375em; }
.texte-legal .commande { display: block; margin: 8px 0 16px; padding: 14px 16px; border-radius: 10px; background: #111; color: #fff; font: 600 0.9375rem/1.5 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }

/* Lien vers les mentions légales, en bas des pages */
.pied { margin-top: 56px; font-size: 0.875rem; color: var(--gris); }
.pied a { text-underline-offset: 3px; }

/* Fin de chaque ressource : renvoi vers la chaîne YouTube (demande de Marie du 2026-12-06) */
.chaine { margin: 40px 0 0; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--ligne); }
.chaine p { margin: 0 0 14px; }
.bouton-chaine { display: inline-block; padding: 12px 18px; border-radius: 10px; background: var(--encre); color: #fff; font-weight: 700; text-decoration: none; }
.bouton-chaine:hover { background: #333; }

/* Présentation calquée sur la page ressources de Melvynx (décision 165) */
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sur-titre { margin: 0 0 12px; text-align: center; font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.page-recherche .sur-titre { color: var(--gris); }
.page-recherche h1, .page-ressource h1 { text-align: center; }
.page-recherche h1 { margin-bottom: 12px; }
.accroche { margin: 0 auto 28px; max-width: 34rem; text-align: center; color: var(--gris); }
.page-recherche .recherche input { font-size: 1.25rem; }
.page-recherche .section-titre { margin: 28px 0 12px; }
.page-ressource .mot-geant { text-align: center; font-size: clamp(2.2rem, 9vw, 3.25rem); }
.page-ressource .ressource h1 { font-size: clamp(1.6rem, 5.5vw, 2.25rem); font-weight: 800; line-height: 1.15; }

.carte-form {
  margin: 0 0 40px;
  padding: 24px;
  border-radius: 18px;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  box-shadow: 0 10px 30px -18px rgba(20, 20, 20, 0.35);
}
.ressource .carte-form form { padding: 0; border: 0; box-shadow: none; background: none; }
.carte-titre { margin: 0 0 14px; font-weight: 700; }
.envoye .carte-titre { font-size: 1.4rem; font-weight: 800; }
.sous-bouton { margin: 12px 0 0; font-size: 0.875rem; color: var(--gris); text-align: center; }
.suggestion { width: auto; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.suggestion:hover { background: none; }

.section-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-titre { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.section-note { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.dedans {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-radius: 18px;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  overflow: hidden;
}
.dedans li { display: flex; gap: 14px; padding: 16px 18px; }
.dedans li + li { border-top: 1px solid var(--ligne); }
.dedans .coche {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  font-weight: 800;
}
.dedans strong { display: block; }
.dedans span:not(.coche) { color: var(--gris); }
.il-te-faut { margin: 0 0 8px; padding-left: 1.2em; }

/* Pourboire facultatif (décision 167), affiché quand les liens Stripe sont remplis */
.pourboire { margin: 0 0 18px; font-size: 0.9375rem; color: var(--gris); }
.pourboire p { margin: 0 0 10px; }
.pourboire strong { color: var(--encre); }
.choix-pourboire { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choix-pourboire label { display: grid; justify-items: center; padding: 10px 6px; border: 1.5px solid #cfcfcf; border-radius: 10px; background: #fff; cursor: pointer; text-align: center; }
.choix-pourboire label:has(input:checked) { border-color: var(--encre); background: #f4f3ef; }
.choix-pourboire input { position: absolute; opacity: 0; }
.choix-pourboire label:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 2px; }
.choix-pourboire span { font-size: 0.8125rem; }
.bouton-pourboire { display: block; margin-top: 12px; padding: 14px 20px; border: 2px solid var(--encre); border-radius: 12px; color: var(--encre); font-weight: 700; text-align: center; text-decoration: none; }
