/* Infra Society, la page Rejoindre (refonte, bloc B4, construit en avance sur la branche refonte-b1).

   Le dessin est celui de Maël (v8/rejoindre.html ; assets/site.css, refinement.css, identity.css), repris à la main,
   avec les valeurs FINALES de sa cascade. Toutes les règles sont portées par body.ch-rejoindre (aucune règle nue, P-42) ;
   ses noms de classes sont gardés, sauf .section → .volet et .ecto → .ecto-fixe (P-89). La charpente porte l'en-tête,
   le pied, les boutons, la fenêtre décorative, la liste à coches, les étapes « 01 / 02 », les questions et l'apparition
   douce ; les cartes d'offre sont celles de l'accueil (mêmes textes, P-81).

   Différences avec la maquette, et leurs raisons (refonte/DECISIONS-A-CONSIGNER.md, P-98 ; la page de comparaison les
   liste) :
   - Oracle → Switzer, graisse 550 (P-85) : titre, titres de l'aperçu et de la fiche, mots à la place des prix ;
   - cartes d'offre : nos textes publiés, sans aucun prix, ni périodicité, ni bascule, ni « Pro » (P-21, DEC-99, P-81) ;
     la place du choix de période reste, vide ; liseré argenté et tampons fixes (P-87) ;
   - bloc de consultation : nos textes publiés (le « livrable » n'est pas décidé, DEC-81) ;
   - gravures des voiles (pont du Gard, voie romaine) écartées : aucune source vérifiable (P-55, DEC-96) ; à leur place,
     deux voiles unis dont l'opacité est réglée par la mesure (au plus près du rendu de Maël) ;
   - Inter en graisse 400 là où Maël écrit 500 : c'est ce que sa maquette montre (P-90).
   Aucune ressource d'un autre site : les images viennent de images/ (registre images/LICENCES.md). */

/* ------------------------------------------------------------------ sections (.section de Maël) et voile de page */
body.ch-rejoindre .volet { padding-top: 124px; padding-bottom: 20px; }
@media (min-width: 1440px) { body.ch-rejoindre .volet { padding-top: 140px; } }   /* avant les règles des blocs, comme chez Maël */
body.ch-rejoindre .ecto-fixe { height: auto; object-fit: contain; aspect-ratio: 320 / 284; }
body.ch-rejoindre main { position: relative; isolation: isolate; }
body.ch-rejoindre main::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 860px; pointer-events: none; opacity: .35;
  background: linear-gradient(112deg, #ccd9f0, #e9e6ec 47%, #efdbc5);
  -webkit-mask-image: linear-gradient(transparent, #000 23%, #000 42%, transparent 100%);
          mask-image: linear-gradient(transparent, #000 23%, #000 42%, transparent 100%);
}
.js-motion body.ch-rejoindre [data-reveal] { transform: translateY(16px); transition-duration: .7s; transition-delay: 0s; }
.js-motion body.ch-rejoindre [data-reveal].is-visible { transform: none; }
.js-motion body.ch-rejoindre .join-preview { transition-delay: .08s; }
body.ch-rejoindre .titre-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ ouverture et aperçu « La Society » */
body.ch-rejoindre .join-opening { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 158px; padding-bottom: 52px; }
body.ch-rejoindre .join-opening h1 { margin: 0 0 25px; font: 550 clamp(48px, 5.3vw, 72px)/1.04 var(--ch-switzer); letter-spacing: -.052em; color: var(--ch-encre); }
body.ch-rejoindre .join-opening-copy > p { max-width: 480px; font-size: 17px; line-height: 1.7; }
body.ch-rejoindre .join-opening-copy > .button { margin-top: 27px; border-radius: 30px; }
body.ch-rejoindre .join-preview { position: relative; isolation: isolate; min-width: 0; padding: 22px 32px 27px 12px; }
body.ch-rejoindre .join-preview-disc {
  position: absolute; inset: 3% 0 0 4%; z-index: -1; overflow: hidden; border-radius: 50%;
  background: url(../../../images/fonds/fond-sable-bleu-aube.jpg) center / cover;
}
/* le voile blanc de Maël, sans sa gravure (pont du Gard, écartée : P-55) : un voile uni, d'opacité réglée par la mesure
   (écart moyen au rendu de la maquette : 18,0 sur 255, contre 18,3 sans voile et 21,5 à son opacité de 50 %) */
body.ch-rejoindre .join-preview-disc::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .1; }
body.ch-rejoindre .join-preview-window {
  overflow: hidden; border: 1px solid #dcdee4; border-radius: 13px; background: #fff; transform: rotate(-3deg);
  box-shadow: 0 15px 35px #303a5310;
}
body.ch-rejoindre .join-preview-body { padding: 26px 30px 22px; }
body.ch-rejoindre .join-preview-body h2 { margin: 0 0 24px; font: 550 33px/1.1 var(--ch-switzer); letter-spacing: -.035em; }
body.ch-rejoindre .join-preview-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid #ececf0; }
body.ch-rejoindre .join-preview-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 43px; border-radius: 8px; background: #eeeafc; color: #72629e;
}
body.ch-rejoindre .join-preview-icon > svg { width: 22px; height: 22px; }
body.ch-rejoindre .join-preview-row:nth-of-type(2) .join-preview-icon { background: #f6edde; color: #9a7c4d; }
body.ch-rejoindre .join-preview-row:nth-of-type(3) .join-preview-icon { background: #e3f3ee; color: #408374; }
body.ch-rejoindre .join-preview-row strong { font-size: 14px; font-weight: 400; }
body.ch-rejoindre .join-preview-row p { margin: 3px 0 0; font-size: 11px; line-height: 1.4; }
body.ch-rejoindre .join-preview-row > svg { width: 16px; height: 16px; margin-left: auto; color: #9a9da5; }
body.ch-rejoindre .join-preview-ecto { position: absolute; right: 0; bottom: 8px; width: 87px; transform: rotate(10deg); transition: opacity .2s, transform .4s var(--ch-courbe); }
/* ECTO cligne de l'œil au survol, en CSS seul (deux images) */
body.ch-rejoindre .join-preview-wink { opacity: 0; }
body.ch-rejoindre .join-preview:hover .join-preview-wink { opacity: 1; }
body.ch-rejoindre .join-preview:hover .join-preview-mascot > .ecto-fixe:first-child { opacity: 0; }

/* ------------------------------------------------------------------ les formules (les cartes de l'accueil, P-81) */
body.ch-rejoindre .pricing { padding-top: 22px; scroll-margin-top: 28px; }
body.ch-rejoindre .pricing-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 28px; }
body.ch-rejoindre .price-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  border: 1px solid #e2e2dc; border-radius: 18px; background: #fff; box-shadow: none;
}
body.ch-rejoindre .price-card.pro { border-color: #b8bdc6; }
/* le liseré argenté tournait sans fin chez Maël : ici, fixe (P-87) */
body.ch-rejoindre .price-card.pro::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 1px; border-radius: inherit;
  background: conic-gradient(from 0deg, #d8dde4, #8792a2, #fafcfe, #929baa, #d8dde4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
body.ch-rejoindre .plan-banner { position: relative; height: 150px; background: url(../../../images/fonds/fond-orange-aube.jpg) center / cover; }
body.ch-rejoindre .pro .plan-banner { background-image: url(../../../images/fonds/fond-sable-bleu-aube.jpg); }
body.ch-rejoindre .plan-tag {
  position: absolute; top: 24px; left: 26px; padding: 7px 14px; border-radius: 30px; background: #ffffffeb;
  font-family: var(--ch-switzer); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ch-encre);
}
body.ch-rejoindre .plan-stamp { position: absolute; top: 50%; right: 23px; width: 132px; height: 132px; transform: translateY(-50%); }
/* le tampon tournait chez Maël : ici, fixe (P-87) */
body.ch-rejoindre .plan-ring { width: 100%; height: 100%; }
body.ch-rejoindre .plan-ring text { font-family: var(--ch-switzer); font-size: 9px; font-weight: 500; letter-spacing: 1px; fill: #713917; }
body.ch-rejoindre .pro .plan-ring text { fill: #435369; }
body.ch-rejoindre .plan-ecto { position: absolute; top: 50%; left: 50%; width: 67px; height: auto; filter: drop-shadow(0 7px 6px #57331920); transform: translate(-50%, -50%); transition: filter .3s; }
/* au survol et au focus, ECTO change de pose et son ombre s'accentue, comme chez Maël : deux images, aucun script */
body.ch-rejoindre .plan-ecto-actif { visibility: hidden; }
body.ch-rejoindre .price-card:is(:hover, :focus-within) .plan-ecto-repos { visibility: hidden; }
body.ch-rejoindre .price-card:is(:hover, :focus-within) .plan-ecto-actif { visibility: visible; }
body.ch-rejoindre .price-card:is(:hover, :focus-within) .plan-ecto { filter: drop-shadow(0 10px 8px #57331938); }
body.ch-rejoindre .plan-content { display: flex; flex: 1; flex-direction: column; padding: 30px 32px 34px; }
body.ch-rejoindre .plan-content h3 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.04em; }
/* 50 px chez Maël (deux lignes) ; nos textes publiés en font trois : 75 px, pour que les deux cartes restent alignées */
body.ch-rejoindre .plan-content > p:not(.billing-note, .note-ecrire) { max-width: 420px; min-height: 75px; font-size: 15px; line-height: 1.65; }
body.ch-rejoindre .plan-choice { display: flex; align-items: center; min-height: 48px; margin-top: 18px; }
body.ch-rejoindre .price { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
/* Oracle chez Maël → Switzer 550 (P-85) ; des mots et non des prix (DEC-99) : un corps plus petit, sur une ligne */
body.ch-rejoindre .price > strong { font: 550 56px/1.1 var(--ch-switzer); letter-spacing: -.05em; color: var(--ch-encre); }
body.ch-rejoindre .price-texte > strong { font-size: 40px; }
body.ch-rejoindre .plan-content .billing-note { min-height: 22px; margin-top: 12px; font-size: 13px; }
body.ch-rejoindre .plan-content .check-list { flex: 1; gap: 14px; margin: 26px 0 32px; font-size: 14px; }
body.ch-rejoindre .plan-content .button { align-self: stretch; justify-content: space-between; margin-top: 0; padding-inline: 18px; font-size: 14px; }
body.ch-rejoindre .formules-note { margin-top: 22px; font-size: 13px; text-align: center; }

/* ------------------------------------------------------------------ la consultation */
body.ch-rejoindre .other-offers { padding-top: 75px; }
body.ch-rejoindre .support-heading { align-items: flex-end; margin-bottom: 32px; }
body.ch-rejoindre .support-heading h2 { margin-top: 0; font-size: 40px; }
body.ch-rejoindre .support-heading > p { font-size: 15px; }
body.ch-rejoindre .consultation-offer {
  display: grid; grid-template-columns: 38% 1fr; overflow: hidden; border: 1px solid var(--ch-filet); border-radius: 22px; background: #fff;
}
body.ch-rejoindre .consultation-art {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 440px;
  background: url(../../../images/fonds/fond-sable-bleu-aube.jpg) center / cover;
}
/* même chose pour la gravure de la voie romaine (écartée, P-55) : voile uni à 16 % (écart 13,1, contre 18,1 sans voile
   et 15,7 à ses 28 %) */
body.ch-rejoindre .consultation-art::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: .16; }
body.ch-rejoindre .consultation-orbit { position: absolute; left: -90px; top: 45px; z-index: -1; width: 380px; aspect-ratio: 1; border: 1px solid #ffffff8f; border-radius: 50%; }
body.ch-rejoindre .consultation-orbit::after { content: ""; position: absolute; inset: 35px; border: 1px solid #ffffff6f; border-radius: 50%; }
body.ch-rejoindre .case-sheet {
  position: relative; z-index: 1; width: 74%; padding: 27px 24px; border: 1px solid #fff; border-radius: 10px; background: #fffefa;
  box-shadow: 0 16px 22px #45526416; transform: rotate(-6deg); transition: transform .6s var(--ch-courbe);
}
body.ch-rejoindre .case-sheet h3 { margin: 21px 0 25px; font: 550 33px/1.12 var(--ch-switzer); letter-spacing: -.035em; }
body.ch-rejoindre .case-sheet > div { padding: 13px 0; border-top: 1px solid #e7e4dc; font-size: 11px; }
body.ch-rejoindre .case-sheet > div > span { margin-right: 10px; font-size: 9px; color: #a89784; }   /* texte d'une illustration : couleurs de Maël (P-91) */
body.ch-rejoindre .case-sheet > p { margin-top: 10px; font-size: 10px; color: #8a8072; }
body.ch-rejoindre .case-ecto { position: absolute; right: 18px; bottom: 40px; z-index: 2; width: 100px; transform: rotate(10deg); transition: transform .6s var(--ch-courbe); }
body.ch-rejoindre .case-sticker {
  position: absolute; top: 37px; right: 23px; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px;
  border: 1px solid #ddc5a7; border-radius: 50%; background: #fff2dd; font-size: 11px; line-height: 1.4; text-align: center; color: #977048;
  transform: rotate(12deg);
}
body.ch-rejoindre .consultation-offer:hover .case-sheet { transform: rotate(-2deg) translateY(-3px); }
body.ch-rejoindre .consultation-offer:hover .case-ecto { transform: rotate(1deg) translateY(-4px); }
body.ch-rejoindre .consultation-content { padding: 40px; }
body.ch-rejoindre .consultation-content h2 { margin: 0 0 22px; font-size: 35px; line-height: 1.13; }
body.ch-rejoindre .consultation-content > p { max-width: 560px; font-size: 15px; line-height: 1.7; }
body.ch-rejoindre .consultation-steps { margin: 25px 0; }
body.ch-rejoindre .consultation-action { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
body.ch-rejoindre .consultation-action > span { font-size: 12px; color: var(--ch-gris); }

/* ------------------------------------------------------------------ paliers de Maël */
@media (max-width: 1100px) {
  body.ch-rejoindre .join-opening { gap: 40px; }
  body.ch-rejoindre .join-preview { padding-right: 20px; }
  body.ch-rejoindre .join-preview-body { padding: 24px; }
  body.ch-rejoindre .join-preview-body h2 { font-size: 29px; }
}
@media (max-width: 1000px) {
  body.ch-rejoindre .consultation-content { padding: 30px; }
  body.ch-rejoindre .consultation-content h2 { font-size: 30px; }
  body.ch-rejoindre .case-sheet { width: 79%; padding: 24px 18px; }
  body.ch-rejoindre .case-sheet h3 { font-size: 30px; }
  body.ch-rejoindre .case-sheet > div { font-size: 10px; }
  body.ch-rejoindre .case-sticker { right: 15px; width: 70px; height: 70px; font-size: 9px; }
  body.ch-rejoindre .case-ecto { right: 10px; width: 80px; }
}
@media (max-width: 809px) {
  body.ch-rejoindre .volet { padding-top: 90px; }
  body.ch-rejoindre .other-offers { padding-top: 75px; }
  body.ch-rejoindre .pricing { padding-top: 22px; }
  body.ch-rejoindre .plan-content { padding: 25px; }
  body.ch-rejoindre .plan-content h3 { font-size: 27px; }
  body.ch-rejoindre .plan-content > p:not(.billing-note, .note-ecrire) { min-height: 70px; font-size: 14px; }
  body.ch-rejoindre .plan-stamp { right: 12px; width: 118px; height: 118px; }
  body.ch-rejoindre .plan-banner { height: 138px; }
  body.ch-rejoindre .plan-content .check-list { font-size: 13px; }
  body.ch-rejoindre .price > strong { font-size: 48px; }
  body.ch-rejoindre .price-texte > strong { font-size: 34px; }
  body.ch-rejoindre .support-heading h2 { font-size: 34px; }
  body.ch-rejoindre .support-heading > p { font-size: 14px; }
  body.ch-rejoindre .consultation-content { padding: 28px; }
  body.ch-rejoindre .consultation-content h2 { font-size: 28px; }
  body.ch-rejoindre .consultation-content > p { font-size: 14px; }
  body.ch-rejoindre .consultation-art { min-height: 460px; }
  body.ch-rejoindre .case-sheet h3 { font-size: 27px; }
  body.ch-rejoindre .case-sticker { top: 30px; }
}
@media (max-width: 760px) {
  body.ch-rejoindre .join-opening { grid-template-columns: 1fr; gap: 28px; padding-top: 120px; padding-bottom: 24px; }
  body.ch-rejoindre .join-opening-copy { text-align: center; }
  body.ch-rejoindre .join-opening h1 { font-size: 49px; }
  body.ch-rejoindre .join-opening-copy > p { max-width: 490px; margin-inline: auto; font-size: 15px; }
  body.ch-rejoindre .join-opening-copy > .button { margin-top: 23px; }
  body.ch-rejoindre .join-preview { width: min(100%, 430px); margin: auto; padding: 18px 27px 23px 9px; }
  body.ch-rejoindre .join-preview-body { padding: 24px; }
  body.ch-rejoindre .join-preview-body h2 { font-size: 29px; }
  body.ch-rejoindre .join-preview-ecto { width: 76px; }
  body.ch-rejoindre .join-preview-row { padding: 12px 0; }
  body.ch-rejoindre .pricing { padding-top: 16px; }
}
@media (max-width: 600px) {
  body.ch-rejoindre .volet { padding-top: 75px; padding-bottom: 0; }
  body.ch-rejoindre main::before { height: 950px; opacity: .29; }
  body.ch-rejoindre .pricing { padding-top: 16px; }
  body.ch-rejoindre .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  body.ch-rejoindre .plan-content { padding: 26px; }
  body.ch-rejoindre .plan-content > p:not(.billing-note, .note-ecrire) { min-height: 0; }
  body.ch-rejoindre .plan-banner { height: 140px; }
  body.ch-rejoindre .plan-tag { top: 23px; left: 24px; font-size: 13px; }
  body.ch-rejoindre .plan-stamp { right: 19px; width: 124px; height: 124px; }
  body.ch-rejoindre .plan-content h3 { font-size: 28px; }
  body.ch-rejoindre .plan-content .billing-note { font-size: 12px; }
  body.ch-rejoindre .plan-content .check-list { font-size: 13px; }
  body.ch-rejoindre .plan-content .button { font-size: 13px; }
  body.ch-rejoindre .plan-choice { display: none; }
  body.ch-rejoindre .price { margin-top: 25px; }
  body.ch-rejoindre .price > strong { font-size: 54px; }
  body.ch-rejoindre .price-texte > strong { font-size: 38px; }
  body.ch-rejoindre .other-offers { padding-top: 55px; }
  body.ch-rejoindre .support-heading { display: block; margin-bottom: 25px; }
  body.ch-rejoindre .support-heading h2 { margin: 0 0 18px; font-size: 33px; }
  body.ch-rejoindre .support-heading > p { font-size: 14px; }
  body.ch-rejoindre .support-heading > p br { display: none; }
  body.ch-rejoindre .consultation-offer { grid-template-columns: 1fr; }
  body.ch-rejoindre .consultation-art { height: 310px; min-height: 310px; }
  body.ch-rejoindre .case-sheet { width: 65%; max-width: 245px; margin-left: -20px; padding: 20px; transform: rotate(-6deg); }
  body.ch-rejoindre .case-sheet h3 { margin: 15px 0; font-size: 28px; }
  body.ch-rejoindre .case-sheet > div { padding: 9px 0; font-size: 10px; }
  body.ch-rejoindre .case-sheet > p { font-size: 9px; }
  body.ch-rejoindre .case-sticker { top: 22px; right: 25px; width: 71px; height: 71px; }
  body.ch-rejoindre .case-ecto { right: 28px; bottom: 22px; width: 85px; }
  body.ch-rejoindre .consultation-content { padding: 27px; }
  body.ch-rejoindre .consultation-content h2 { font-size: 30px; line-height: 1.13; }
  body.ch-rejoindre .consultation-content > p { font-size: 14px; }
  body.ch-rejoindre .consultation-steps { grid-template-columns: 1fr; gap: 19px; }
  body.ch-rejoindre .consultation-steps p { margin-top: 7px; }
  body.ch-rejoindre .consultation-action { flex-direction: column; align-items: flex-start; gap: 13px; }
  body.ch-rejoindre .consultation-action .button { width: 100%; justify-content: space-between; }
}
@media (max-width: 360px) {
  body.ch-rejoindre .case-sticker { right: 15px; }
  body.ch-rejoindre .case-ecto { right: 14px; }
}

/* ------------------------------------------------------------------ « mouvement réduit » */
@media (prefers-reduced-motion: reduce) {
  body.ch-rejoindre .case-sheet, body.ch-rejoindre .case-ecto, body.ch-rejoindre .join-preview-ecto { transition: none; }
}
