/* ==========================================================================
   RecallTalent — feuille de style commune aux trois pages
   Aucune police ni ressource externe : tout est dans ce fichier.
   ========================================================================== */

/* ---------- 1. Couleurs et mesures ---------- */
:root {
  --encre: #14223b;          /* couleur dominante : bleu nuit */
  --encre-2: #1e3154;
  --texte: #1c2536;
  --texte-doux: #4a5467;
  --fond: #fbfaf7;           /* blanc chaud */
  --surface: #ffffff;
  --sable: #f4efe8;
  --trait: #e3ddd3;
  --accent: #b04a22;         /* seul accent chaud : terre cuite */
  --accent-fonce: #8f3a19;
  --accent-clair: #f2b08a;   /* le même accent, sur fond sombre */
  --accent-teinte: #faede5;
  --jaune: #ffe45c;          /* surlignage des passages à remplir */

  --police-titre: Georgia, "Times New Roman", "Noto Serif", serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon: 14px;
  --rayon-petit: 10px;
  --ombre: 0 24px 48px -28px rgba(20, 34, 59, 0.28);
  --largeur: 1120px;
  --marge: clamp(20px, 5vw, 40px);
  --section: clamp(56px, 9vw, 104px);

  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  /* le pied de page reste en bas, même sur une page courte */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

[id] {
  scroll-margin-top: 88px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

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

address {
  font-style: normal;
}

svg {
  display: block;
  max-width: 100%;
}

h1,
h2 {
  font-family: var(--police-titre);
  font-weight: 400;
  color: var(--encre);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--encre);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease-out;
}

a:hover {
  color: var(--accent-fonce);
}

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

/* Passages entre crochets qu'il reste à remplir */
.a-remplir {
  background: var(--jaune);
  color: #1a1a1a;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--police-texte);
  font-size: 0.95em;
  letter-spacing: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.lien-evitement {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--encre);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--rayon-petit);
  text-decoration: none;
  font-weight: 600;
}

.lien-evitement:focus {
  top: 12px;
  color: #fff;
  outline-color: var(--accent-clair);
}

/* ---------- 3. Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: var(--rayon-petit);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.18s ease-out, transform 0.18s ease-out;
}

.bouton:hover {
  background: var(--accent-fonce);
  color: #fff;
}

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

.bouton svg {
  flex: none;
  width: 20px;
  height: 20px;
}

/* ---------- 4. En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 68px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--encre);
  font-family: var(--police-titre);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.marque:hover {
  color: var(--encre);
}

.marque svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.marque b {
  font-weight: 400;
  color: var(--accent);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--texte);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

.nav a:hover {
  background: var(--sable);
  color: var(--encre);
}


.nav a.nav-contact {
  margin-left: 6px;
  padding-inline: 16px;
  box-shadow: inset 0 0 0 1.5px var(--encre);
  color: var(--encre);
  font-weight: 650;
}

.nav a.nav-contact:hover {
  background: var(--encre);
  color: #fff;
}

.menu-bouton {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--encre);
  color: var(--encre);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 650;
  cursor: pointer;
}

.menu-bouton svg {
  width: 20px;
  height: 20px;
}

.menu-bouton .icone-fermer,
.menu-bouton[aria-expanded="true"] .icone-ouvrir {
  display: none;
}

.menu-bouton[aria-expanded="true"] .icone-fermer {
  display: block;
}

@media (max-width: 979px) {
  /* Sans JavaScript, la navigation reste visible sous le nom. */
  .nav {
    width: 100%;
    padding-bottom: 10px;
  }

  .nav a.nav-contact {
    margin-left: 0;
  }

  .js .menu-bouton {
    display: inline-flex;
  }

  .js .nav {
    display: none;
  }

  .js .nav.ouvert {
    display: block;
  }

  .js .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--trait);
  }

  .js .nav a {
    display: flex;
    min-height: 48px;
    padding-inline: 12px;
  }

  .js .nav a.nav-contact {
    justify-content: center;
    margin-top: 6px;
  }
}

/* ---------- 5. Sections ---------- */
.section {
  padding-block: var(--section);
}

.section-sable {
  background: var(--sable);
}

.section-blanche {
  background: var(--surface);
  border-block: 1px solid var(--trait);
}

.sur-titre {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sur-titre::before {
  content: "";
  flex: none;
  margin-top: calc(0.825em - 1px);
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.intro {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--texte-doux);
  font-size: 1.125rem;
}

.section-tete {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

/* ---------- 6. Accroche (plein écran bleu nuit) ---------- */
.accroche-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}

.lien-discret {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--encre);
  font-weight: 600;
}

.hA {
  padding-top: clamp(56px, 10vw, 120px);
  background: var(--encre);
  color: #eef1f6;
}

.hA .sur-titre {
  color: var(--accent-clair);
}

.hA h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.5rem, 6.6vw, 5.2rem);
  line-height: 1.05;
}

.hA h1 em {
  color: var(--accent-clair);
  font-style: italic;
}

.hA .chapo {
  max-width: 54ch;
  margin-top: 26px;
  color: #c9d1de;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.hA .lien-discret {
  color: #fff;
}

.hA .lien-discret:hover {
  color: var(--accent-clair);
}

.hA :focus-visible {
  outline-color: var(--accent-clair);
}

.hA-bande {
  display: grid;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hA-bande div {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hA-bande b {
  display: block;
  color: var(--accent-clair);
  font-family: var(--police-titre);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.hA-bande span {
  display: block;
  margin-top: 10px;
}

@media (min-width: 760px) {
  .hA-bande {
    grid-template-columns: repeat(3, 1fr);
  }

  .hA-bande div {
    padding: 28px 28px 34px 0;
    border-bottom: 0;
  }

  .hA-bande div + div {
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
}

/* ---------- 7. Le problème ---------- */
.probleme-grille {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
}

.probleme-texte p + p {
  margin-top: 1em;
}

.probleme-texte p {
  max-width: 60ch;
  font-size: 1.125rem;
}

.probleme-texte .reponse {
  margin-top: 1.4em;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--encre);
  font-weight: 600;
}

@media (min-width: 900px) {
  .probleme-grille {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ---------- 9. Ce que vous recevez ---------- */
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-teinte);
  color: var(--accent-fonce);
}

.pastille svg {
  width: 22px;
  height: 22px;
}

.recu-grille {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.recu-liste {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.recu-liste li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.recu-liste p {
  margin-top: 6px;
  color: var(--texte-doux);
  font-size: 1rem;
}

.fiche {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 26px;
  border: 1px solid var(--trait);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--ombre);
}

.fiche-tete {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--trait);
}

.fiche-exemple {
  margin-bottom: 16px;
  color: var(--texte-doux);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fiche-rond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-teinte);
  color: var(--accent-fonce);
  font-weight: 700;
}

.fiche-nom {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fiche-nom strong {
  color: var(--encre);
  font-size: 1.05rem;
}

.fiche-nom span {
  color: var(--texte-doux);
  font-size: 0.9rem;
}

.fiche-etat {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-teinte);
  color: var(--accent-fonce);
  font-size: 0.85rem;
  font-weight: 700;
}

.fiche-lignes {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.fiche-ligne {
  display: grid;
  grid-template-columns: minmax(0, 9em) 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
}

.fiche-ligne dt {
  color: var(--texte-doux);
}

.fiche-ligne dd {
  color: var(--encre);
  font-weight: 600;
}

.fiche-ligne-accent dd {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--accent-teinte);
  color: var(--accent-fonce);
}

@media (min-width: 900px) {
  .recu-grille {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- 10. Nos engagements (fond sombre) ---------- */
.section-encre {
  background: var(--encre);
  color: #eef1f6;
}

.section-encre h2 {
  color: #fff;
}

.section-encre .sur-titre {
  color: var(--accent-clair);
}

.section-encre .intro {
  color: #c9d1de;
}

.section-encre :focus-visible {
  outline-color: var(--accent-clair);
}

.engagements-grille {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
}

.engagements-liste li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  align-items: start;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.0625rem;
}

.engagements-liste li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.engagements-liste svg {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--accent-clair);
}

.engagements-liste strong {
  color: #fff;
  font-weight: 650;
}

@media (min-width: 900px) {
  .engagements-grille {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .engagements-tete {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

/* ---------- 11. Les offres ---------- */
.offres-grille {
  display: grid;
  gap: 20px;
}

.offre {
  position: relative;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--trait);
  border-top: 3px solid var(--accent);
  border-radius: var(--rayon);
  background: var(--surface);
}

.offre-etape {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offre h3 {
  margin-top: 8px;
  font-family: var(--police-titre);
  font-size: 1.6rem;
  font-weight: 400;
}

.offre h3 + p {
  margin-top: 10px;
  color: var(--texte-doux);
}

.offres-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 30px;
}

.offres-pied p {
  max-width: 60ch;
  color: var(--texte-doux);
  font-size: 1rem;
}

@media (min-width: 860px) {
  .offres-grille {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 12. Questions fréquentes ---------- */
.faq-tete {
  margin-inline: auto;
  text-align: center;
}

.faq-tete .sur-titre {
  justify-content: center;
}

.faq-liste {
  display: grid;
  gap: 14px;
  align-items: start;
}

.faq-carte {
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--surface);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.faq-carte:hover {
  border-color: #cfc6b8;
}

.faq-carte[open] {
  border-color: var(--accent-clair);
  box-shadow: 0 12px 28px -20px rgba(20, 34, 59, 0.35);
}

.faq-carte summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px 16px 22px;
  border-radius: var(--rayon);
  color: var(--encre);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-carte summary::-webkit-details-marker {
  display: none;
}

/* le « + » qui devient « − » */
.faq-carte summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-teinte);
  color: var(--accent-fonce);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.faq-carte[open] summary::after {
  content: "−";
  background: var(--accent);
  color: #fff;
}

.faq-reponse {
  padding: 0 22px 22px;
  color: var(--texte-doux);
}

.faq-pied {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 28px auto 0;
}

.faq-candidat {
  background: transparent;
  border-style: dashed;
}

.faq-candidat summary {
  font-size: 1rem;
  font-weight: 600;
}

.faq-autre {
  text-align: center;
  color: var(--texte-doux);
}

@media (min-width: 900px) {
  .faq-liste {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 13. Qui est derrière ---------- */
.qui {
  display: grid;
  gap: 24px;
  max-width: 820px;
}

.qui-initiales {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--encre);
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.qui p:not(.sur-titre) {
  margin-top: 16px;
  font-size: 1.125rem;
  max-width: 60ch;
}

.qui .qui-role {
  margin-top: 6px;
  color: var(--texte-doux);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .qui {
    grid-template-columns: 84px 1fr;
    gap: 32px;
  }
}

/* ---------- 14. Contact ---------- */
.contact-grille {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.contact-mail {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--police-titre);
  font-size: clamp(1.3rem, 4.6vw, 2rem);
  line-height: 1.3;
  color: var(--encre);
  overflow-wrap: anywhere;
}

.contact-telephone {
  margin-top: 10px;
  color: var(--texte-doux);
}

.contact-actions {
  margin-top: 26px;
}

.identite {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--surface);
}

.identite h3 {
  margin-bottom: 14px;
}

.identite dl,
.fiche-legale {
  display: grid;
  gap: 14px;
}

.identite dt,
.fiche-legale dt {
  color: var(--texte-doux);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.identite dd,
.fiche-legale dd {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .contact-grille {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- 15. Pied de page ---------- */
.pied {
  padding-block: 40px 44px;
  background: var(--encre);
  color: #c9d1de;
  font-size: 0.97rem;
}

.section-encre + .pied {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pied a {
  color: #fff;
}

.pied a:hover {
  color: var(--accent-clair);
}

.pied :focus-visible {
  outline-color: var(--accent-clair);
}

.pied-identite {
  color: #eef1f6;
  line-height: 1.9;
}

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.pied-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- 16. Pages de texte (mentions légales, confidentialité) ---------- */
.page-texte {
  padding-block: clamp(40px, 7vw, 80px) var(--section);
}

.page-texte .conteneur {
  max-width: 800px;
}

.page-texte h1 {
  font-size: clamp(2rem, 4.6vw, 2.8rem);
}

.page-texte h2 {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
}

.page-texte p,
.page-texte .liste,
.page-texte .fiche-legale {
  margin-top: 16px;
  max-width: 68ch;
}

.page-texte .liste {
  display: grid;
  gap: 8px;
}

.page-texte .liste li {
  position: relative;
  padding-left: 22px;
}

.page-texte .liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.fiche-legale {
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--surface);
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 20px;
  font-weight: 600;
}

.retour svg {
  width: 18px;
  height: 18px;
}

.page-texte .mise-a-jour {
  margin-top: 44px;
  color: var(--texte-doux);
  font-size: 0.97rem;
}

/* ---------- 17. Confort et impression ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .entete,
  .lien-evitement,
  .hA-bande {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .section,
  .hA,
  .page-texte {
    padding-block: 18pt;
  }

  .section-encre,
  .hA,
  .pied {
    background: #fff;
    color: #000;
  }

  .section-encre h2,
  .hA h1,
  .hA .chapo,
  .section-encre .intro,
  .engagements-liste strong,
  .pied a,
  .pied-identite {
    color: #000;
  }
}
