/* ==========================================================================
   Programme apporteurs d'affaires et parrainage — page /apporteurs
   --------------------------------------------------------------------------
   Code couleur fixe : apporteur = orange, parrain = rose, Osmose = bleu-vert.
   Texte et boutons sur fond clair : bleu-vert foncé #2f5856 (contraste 7,8:1
   sur blanc). Jamais de texte blanc sur #75acaa.
   Polices : celles du site (Raleway titres, Open Sans texte, Poppins surtitres),
   graisses 500 à 700 uniquement (aucune police web chargée : pas de 800 simulé).
   ========================================================================== */

.page-apporteurs {
  --osm: #75acaa;          /* bleu-vert officiel */
  --osm-fonce: #2f5856;    /* texte / boutons sur fond clair */
  --osm-nuit: #1f3a39;     /* fond du simulateur */
  --osm-clair: #eef6f5;    /* fond du formulaire */
  --osm-voile: #d9ebea;    /* disques décoratifs */
  --app: #f7d3a1;          /* apporteur */
  --app-clair: #fdf1df;
  --par: #efb8ac;          /* parrain */
  --par-clair: #fdeee9;
  --encre: #1f2d2c;
  --gris: #4f5f5e;
  --filet: #dfe9e8;
  --titre: "Raleway", sans-serif;
  --rayon: 18px;
}

.page-apporteurs main { overflow-x: clip; }
/* Ancres (#simulateur, #formulaire, #profils) : ne pas passer sous le header fixe */
.page-apporteurs main [id] { scroll-margin-top: 90px; }
.ap-section { padding: 72px 0; }
.ap-section--blanc { background: #fff; }
.ap-section--teinte { background: #f7fbfa; }
.ap-surtitre {
  display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--osm-fonce); margin-bottom: 12px;
}
/* Surclasse « .page-interne h2 » du site (taille, couleur) en gardant son soulignement rose */
.page-apporteurs .ap-h2:not(.accordion-header) { font-family: var(--titre); font-weight: 700; color: var(--encre); font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.25; margin: 0 0 18px; }
.ap-centre { text-align: center; }
.ap-intro { color: var(--gris); font-size: 1.02rem; line-height: 1.7; max-width: 720px; }
.ap-centre .ap-intro { margin-left: auto; margin-right: auto; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 2px solid var(--osm-fonce); transition: background .15s, color .15s, transform .15s; cursor: pointer;
}
.ap-btn:hover { transform: translateY(-1px); }
.ap-btn:focus-visible { outline: 3px solid var(--app); outline-offset: 3px; }
.ap-btn--plein { background: var(--osm-fonce); color: #fff; }
.ap-btn--plein:hover { background: var(--osm-nuit); color: #fff; }
.ap-btn--contour { background: transparent; color: var(--osm-fonce); }
.ap-btn--contour:hover { background: var(--osm-fonce); color: #fff; }
.ap-btn--blanc { background: #fff; color: var(--osm-nuit); border-color: #fff; }
.ap-btn--blanc:hover { background: var(--app); border-color: var(--app); color: var(--osm-nuit); }
.ap-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Icônes SVG en trait ─────────────────────────────────────────────────── */
.ap-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Section 1 : accroche ────────────────────────────────────────────────── */
.ap-hero { padding: 48px 0 56px; background: linear-gradient(180deg, #f7fbfa 0%, #fff 100%); }
.ap-hero-grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.ap-hero h1 { font-family: var(--titre); font-weight: 700; color: var(--encre); font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.18; margin: 0 0 18px; }
.ap-hero-texte { color: var(--gris); font-size: 1.08rem; line-height: 1.7; margin-bottom: 26px; }
.ap-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ap-reassurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ap-reassurances li { display: inline-flex; align-items: center; gap: 8px; color: var(--osm-fonce); font-weight: 600; font-size: .92rem; }
.ap-reassurances .ap-ico { width: 20px; height: 20px; stroke-width: 2.4; }

.ap-hero-visuel { position: relative; min-height: 440px; display: flex; align-items: flex-start; justify-content: center; padding: 20px 0 110px; }
.ap-hero-disque { position: absolute; width: min(430px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--osm-voile); opacity: .75; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ap-carte-prime {
  position: relative; z-index: 1; background: #fff; border-radius: var(--rayon); padding: 30px 30px 26px;
  box-shadow: 0 18px 40px rgba(31, 58, 57, .12); width: min(350px, 100%); margin-right: 70px; padding-bottom: 76px;
  border-top: 6px solid var(--app);
}
.ap-carte-prime .ap-lib { font-family: var(--titre); font-weight: 700; color: var(--gris); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.ap-carte-prime .ap-grand { font-family: var(--titre); font-weight: 700; font-size: 5.2rem; line-height: 1; color: var(--encre); margin: 8px 0 10px; }
.ap-carte-prime p { color: var(--gris); font-size: .95rem; line-height: 1.6; margin: 0 0 14px; }
.ap-exemple { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--app-clair); color: var(--encre); border-radius: 10px; padding: 8px 12px; font-size: .9rem; font-weight: 600; }
.ap-carte-parrain {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: min(250px, 70%); background: var(--par);
  color: var(--encre); border-radius: var(--rayon); padding: 18px 20px; box-shadow: 0 14px 30px rgba(31, 58, 57, .15);
}
.ap-carte-parrain .ap-lib { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.ap-carte-parrain .ap-moyen { font-family: var(--titre); font-weight: 700; font-size: 2.3rem; line-height: 1.1; margin: 2px 0 4px; }
.ap-carte-parrain p { margin: 0; font-size: .88rem; line-height: 1.5; }

/* ── Section 2 : deux profils ────────────────────────────────────────────── */
.ap-profils { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.ap-profil { border-radius: 24px; padding: 30px; display: flex; flex-direction: column; }
.ap-profil--app { background: var(--app-clair); }
.ap-profil--par { background: var(--par-clair); }
.ap-pastille { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .8rem; color: var(--encre); }
.ap-profil--app .ap-pastille { background: var(--app); }
.ap-profil--par .ap-pastille { background: var(--par); }
.ap-illus { width: 100%; height: auto; max-height: 160px; margin: 18px 0 8px; }
.ap-profil h3 { font-family: var(--titre); font-weight: 700; font-size: 1.5rem; color: var(--encre); margin: 6px 0 4px; }
.ap-accroche { color: var(--gris); font-size: 1rem; margin-bottom: 16px; }
.ap-encadre { background: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; color: var(--encre); line-height: 1.5; }
.ap-encadre strong { font-family: var(--titre); font-size: 1.35rem; font-weight: 700; }
.ap-lignes { margin: 0 0 22px; display: grid; gap: 12px; }
.ap-lignes div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: .94rem; line-height: 1.55; }
.ap-lignes dt { font-weight: 700; color: var(--encre); }
.ap-lignes dd { margin: 0; color: var(--gris); }
.ap-profil .ap-btn { margin-top: auto; align-self: flex-start; }
.ap-cumul { display: flex; justify-content: center; margin-top: 28px; }
.ap-cumul span { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--filet); border-radius: 999px; padding: 10px 20px; color: var(--osm-fonce); font-weight: 600; font-size: .95rem; text-align: center; }

/* ── Section 3 : étapes ──────────────────────────────────────────────────── */
.ap-etapes { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.ap-etapes::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; border-top: 2px dashed var(--osm); z-index: 0; }
.ap-etape { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.ap-etape-rond { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--osm); color: var(--osm-fonce); }
.ap-etape-rond .ap-ico { width: 26px; height: 26px; }
.ap-etape--app .ap-etape-rond { background: var(--app); border-color: var(--app); color: var(--encre); }
.ap-etape-qui { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--osm-fonce); margin-bottom: 6px; }
.ap-etape h3 { font-family: var(--titre); font-weight: 700; font-size: 1.08rem; color: var(--encre); margin: 0 0 8px; }
.ap-etape p { color: var(--gris); font-size: .92rem; line-height: 1.6; margin: 0; }
.ap-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.ap-type { border: 1px solid var(--filet); border-radius: 14px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; background: #fff; }
.ap-type .ap-ico { color: var(--osm-fonce); margin-top: 2px; }
.ap-type strong { display: block; font-family: var(--titre); color: var(--encre); font-size: 1rem; }
.ap-type span { color: var(--gris); font-size: .88rem; line-height: 1.5; }

/* ── Section 4 : parrainage ──────────────────────────────────────────────── */
.ap-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ap-etoile { display: flex; gap: 14px; background: var(--par-clair); border-left: 4px solid var(--par); border-radius: 12px; padding: 16px 18px; color: var(--encre); line-height: 1.6; margin-top: 18px; }
.ap-etoile .ap-ico { color: #b5584a; width: 24px; height: 24px; margin-top: 2px; }
.ap-carte { background: #fff; border-radius: var(--rayon); box-shadow: 0 14px 34px rgba(31, 58, 57, .1); padding: 24px; }
.ap-schema { width: 100%; height: auto; display: block; }
.ap-repartition { margin-top: 18px; }
.ap-repartition-titre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .88rem; color: var(--gris); margin-bottom: 8px; }
.ap-repartition-titre strong { color: var(--encre); }
.ap-barre { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--filet); }
.ap-barre span { display: block; height: 100%; }
.ap-barre .b-osm { background: var(--osm); }
.ap-barre .b-app { background: var(--app); }
.ap-barre .b-par { background: var(--par); min-width: 6px; } /* largeur minimale : 0,9 % reste visible */
.ap-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ap-tuile { border-radius: 12px; padding: 10px 12px; }
.ap-tuile small { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--encre); }
.ap-tuile strong { font-family: var(--titre); font-size: 1.2rem; color: var(--encre); }
.ap-tuile--osm { background: var(--osm-clair); border: 1px solid var(--osm-voile); }
.ap-tuile--app { background: var(--app-clair); border: 1px solid var(--app); }
.ap-tuile--par { background: var(--par-clair); border: 1px solid var(--par); }
.ap-note { font-size: .82rem; color: var(--gris); margin: 12px 0 0; }

/* ── Section 5 : simulateur ──────────────────────────────────────────────── */
.ap-simu { background: var(--osm-nuit); color: #e8f1f0; }
.ap-simu .ap-surtitre { color: var(--app); }
.page-apporteurs .ap-simu .ap-h2:not(.accordion-header) { color: #fff; border-bottom-color: var(--par); }
.ap-simu-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; margin-top: 34px; align-items: start; }
.ap-reglages { background: #fff; color: var(--encre); border-radius: var(--rayon); padding: 26px; }
.ap-champ { margin-bottom: 24px; }
.ap-champ-lib { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 10px; color: var(--encre); }
.ap-segment { display: inline-flex; background: #eef2f2; border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.ap-segment button {
  min-height: 44px; border: 0; border-radius: 999px; padding: 8px 18px; background: transparent;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--gris); cursor: pointer;
}
.ap-segment button:focus-visible { outline: 3px solid var(--osm); outline-offset: 2px; }
.ap-segment--profil button[aria-pressed="true"][data-valeur="apporteur"] { background: var(--app); color: var(--encre); }
.ap-segment--profil button[aria-pressed="true"][data-valeur="parrain"] { background: var(--par); color: var(--encre); }
.ap-segment--projet button[aria-pressed="true"] { background: var(--osm-fonce); color: #fff; }
.ap-valeur { font-family: var(--titre); font-weight: 700; font-size: 1.9rem; color: var(--encre); margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.ap-curseur { width: 100%; accent-color: var(--osm-fonce); min-height: 44px; }
.ap-bornes { display: flex; justify-content: space-between; font-size: .78rem; color: var(--gris); }
.ap-mention { font-size: .8rem; color: var(--gris); line-height: 1.55; margin: 6px 0 0; }
.ap-resultats { display: grid; gap: 18px; }
.ap-resultat { border-radius: var(--rayon); padding: 24px 26px; color: var(--encre); transition: background .2s; }
.ap-resultat--apporteur { background: var(--app); }
.ap-resultat--parrain { background: var(--par); }
.ap-resultat .ap-lib { font-weight: 700; font-size: .9rem; }
.ap-resultat .ap-montant { font-family: var(--titre); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.ap-resultat p { margin: 0; font-size: .92rem; line-height: 1.55; }
.ap-detail { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--rayon); padding: 22px 24px; }
.ap-detail dl { margin: 0 0 16px; display: grid; gap: 10px; }
.ap-detail dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; border-bottom: 1px dashed rgba(255, 255, 255, .18); padding-bottom: 8px; }
.ap-detail dt { font-weight: 400; color: #cfe1df; }
.ap-detail dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ap-annuel { font-size: .9rem; color: #cfe1df; margin-bottom: 18px; }
.ap-annuel strong { display: block; font-family: var(--titre); font-size: 2rem; color: #fff; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ── Section 6 : règles et FAQ ───────────────────────────────────────────── */
.ap-regles { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: regle; display: grid; gap: 18px; }
.ap-regles li { counter-increment: regle; display: grid; grid-template-columns: 40px 1fr; gap: 14px; line-height: 1.65; color: var(--gris); }
.ap-regles li::before {
  content: counter(regle); width: 40px; height: 40px; border-radius: 50%; background: var(--osm-clair);
  color: var(--osm-fonce); font-family: var(--titre); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ap-regles strong { color: var(--encre); display: block; }
.page-apporteurs .faq-osmose { margin: 0; }
.page-apporteurs .faq-osmose h2 { font-family: var(--titre); font-weight: 700; font-size: 1.35rem; color: var(--encre); }
.page-apporteurs .faq-osmose summary { min-height: 44px; }

/* ── Section 7 : formulaire ──────────────────────────────────────────────── */
.ap-form-section { background: var(--osm-clair); }
.ap-form-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.ap-parler { background: #fff; border-radius: 14px; padding: 18px 20px; margin-top: 22px; border-left: 4px solid var(--osm); }
.ap-parler strong { display: block; font-family: var(--titre); color: var(--encre); margin-bottom: 8px; }
.ap-parler a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--osm-fonce); font-weight: 700; text-decoration: none; margin-right: 18px; }
.ap-parler a:hover { text-decoration: underline; }
.ap-form { background: #fff; border-radius: var(--rayon); padding: 28px; box-shadow: 0 14px 34px rgba(31, 58, 57, .08); }
.ap-form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.ap-form legend { font-family: var(--titre); font-weight: 700; font-size: 1rem; color: var(--encre); margin-bottom: 12px; padding: 0; }
.ap-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-choix label {
  display: flex; align-items: center; gap: 10px; min-height: 48px; border: 2px solid var(--filet); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--encre);
}
.ap-choix input { accent-color: var(--osm-fonce); width: 18px; height: 18px; }
.ap-choix label:has(input[value="recommandation"]:checked) { border-color: #e2b475; background: var(--app-clair); }
.ap-choix label:has(input[value="parrain"]:checked) { border-color: #d98474; background: var(--par-clair); }
.ap-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-champs .ap-large { grid-column: 1 / -1; }
.ap-form label.ap-l { display: block; font-size: .86rem; font-weight: 600; color: var(--encre); margin-bottom: 6px; }
.ap-form input[type="text"], .ap-form input[type="tel"], .ap-form input[type="email"], .ap-form select, .ap-form textarea {
  width: 100%; min-height: 46px; border: 1px solid #cfdcdb; border-radius: 10px; padding: 10px 12px; font: inherit;
  font-size: .95rem; color: var(--encre); background: #fff;
}
.ap-form textarea { min-height: 96px; resize: vertical; }
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { outline: none; border-color: var(--osm-fonce); box-shadow: 0 0 0 3px rgba(117, 172, 170, .25); }
.ap-case { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--encre); line-height: 1.5; cursor: pointer; }
.ap-case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--osm-fonce); flex-shrink: 0; }
.ap-rgpd { font-size: .78rem; color: var(--gris); line-height: 1.55; margin: 14px 0 18px; }
.ap-obligatoire { color: #b5584a; }
.ap-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ap-retour { border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin-top: 14px; display: none; }
.ap-retour.err { display: block; background: #fdecea; color: #8a1c14; }
.ap-confirmation { display: none; text-align: center; padding: 20px 8px; }
.ap-confirmation .ap-ico { width: 52px; height: 52px; color: var(--osm-fonce); stroke-width: 1.6; }
.ap-confirmation h3 { font-family: var(--titre); font-weight: 700; color: var(--encre); margin: 12px 0 8px; }
.ap-confirmation p { color: var(--gris); line-height: 1.6; }
[data-mode="parrain"] .ap-seulement-reco { display: none; }
[data-mode="recommandation"] .ap-seulement-parrain { display: none; }

/* ── Encart de la page d'accueil ─────────────────────────────────────────── */
/* (styles dans css/style.css, section « Encart apporteurs ») */

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ap-section { padding: 52px 0; }
  .ap-hero { padding: 32px 0 52px; }
  .ap-hero-grille, .ap-profils, .ap-grille2, .ap-simu-grille, .ap-form-grille { grid-template-columns: 1fr; gap: 28px; }
  .ap-hero-visuel { min-height: 0; flex-direction: column; align-items: center; gap: 14px; padding: 0; }
  .ap-carte-prime { padding-bottom: 26px; }
  .ap-hero-disque { width: 300px; }
  .ap-carte-prime { margin: 0; width: 100%; max-width: 420px; }
  .ap-carte-parrain { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; }
  .ap-etapes { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .ap-etapes::before { display: none; }
  .ap-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ap-etapes, .ap-types, .ap-champs, .ap-choix { grid-template-columns: 1fr; }
  .ap-tuiles { grid-template-columns: 1fr; }
  .ap-lignes div { grid-template-columns: 1fr; gap: 2px; }
  .ap-profil, .ap-reglages, .ap-form, .ap-carte { padding: 20px; }
  .ap-carte-prime .ap-grand { font-size: 4.2rem; }
  .ap-segment { display: flex; }
  .ap-segment button { flex: 1 1 auto; }
  .ap-hero-actions .ap-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-btn, .ap-resultat { transition: none; }
  .ap-btn:hover { transform: none; }
}
