/* Fiches de présentation des formations — même charte que index.html.
   Chaque page définit sa couleur d'accent avec --c sur <body>. */
:root {
  --gold:     #C8922A;
  --gold-lt:  #E8B84B;
  --teal:     #1A6B72;
  --teal-dk:  #0D4A50;
  --dark:     #0F1F20;
  --cream:    #FAFAF7;
  --text:     #2C2C2C;
  --muted:    #6B7280;
  --border:   rgba(200,146,42,0.2);
  --white:    #FFFFFF;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* KENTE */
.kente { display: flex; height: 5px; width: 100%; }
.kente span { flex: 1; }
.kente-top { position: fixed; top: 0; left: 0; right: 0; z-index: 200; }

/* NAV */
nav { position: fixed; top: 5px; left: 0; right: 0; z-index: 100; background: rgba(15,31,32,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo-main { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--white); }
.nav-logo-main span { color: var(--gold-lt); }
.nav-logo-sub { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.7); letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-lt); }
.nav-links a.actuel { color: var(--gold-lt); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.nav-cta { background: var(--gold) !important; color: var(--dark) !important; font-weight: 700 !important; padding: 8px 18px; border-radius: 3px; font-size: 12px !important; letter-spacing: 1px; text-transform: uppercase; }
.nav-cta:hover { background: var(--gold-lt) !important; }
.nav-burger { display: none; background: none; border: 1.5px solid var(--border); border-radius: 4px; color: var(--gold-lt); font-size: 21px; line-height: 1; padding: 8px 12px; cursor: pointer; font-family: inherit; }
.nav-burger:hover { border-color: var(--gold); }

/* BOUTONS */
.btn-primary { background: var(--gold); color: var(--dark); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 15px 30px; border-radius: 3px; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 500; padding: 14px 26px; border-radius: 3px; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--gold-lt); color: var(--gold-lt); }

/* EN-TÊTE DE LA FICHE */
.fs-inner { max-width: 1100px; margin: 0 auto; }
.fs-hero { background: linear-gradient(150deg, var(--dark) 0%, var(--teal-dk) 60%, #1E5A5F 100%); padding: 130px 32px 72px; position: relative; overflow: hidden; border-bottom: 5px solid var(--c, var(--gold)); }
.fs-hero::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(200,146,42,0.04) 0px, rgba(200,146,42,0.04) 1px, transparent 1px, transparent 40px), repeating-linear-gradient(-45deg, rgba(200,146,42,0.04) 0px, rgba(200,146,42,0.04) 1px, transparent 1px, transparent 40px); pointer-events: none; }
.fs-hero .fs-inner { position: relative; z-index: 1; }
.fs-retour { display: inline-block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 28px; transition: color 0.2s; }
.fs-retour:hover { color: var(--gold-lt); }
.fs-cat { display: flex; width: fit-content; align-items: center; gap: 10px; color: var(--gold-lt); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.fs-cat::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--c, var(--gold)); }
.fs-titre { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 54px); font-weight: 900; color: var(--white); line-height: 1.1; max-width: 800px; margin-bottom: 18px; }
.fs-icone { display: block; font-size: 0.85em; margin-bottom: 10px; }
.fs-accroche { color: rgba(255,255,255,0.7); font-size: 17px; font-weight: 300; max-width: 640px; line-height: 1.7; margin-bottom: 28px; }
.fs-faits { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.fs-faits span { background: rgba(200,146,42,0.15); border: 1px solid rgba(200,146,42,0.3); border-radius: 2px; padding: 7px 14px; color: var(--gold-lt); font-size: 13px; font-weight: 600; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* SECTIONS */
.fs-section { padding: 80px 32px; background: var(--white); }
.fs-alt { background: var(--cream); }
.fs-tag { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.fs-h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 28px; }
.fs-texte { color: #4B5563; font-size: 15.5px; line-height: 1.8; margin-bottom: 16px; max-width: 60ch; }

/* CORPS : contenu à gauche, carte de vente fixe à droite */
.fs-corps { max-width: 1100px; margin: 0 auto; padding: 64px 32px 24px; }
.avec-vente .fs-corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.avec-vente .fs-contenu { grid-column: 1; grid-row: 1; }
.avec-vente .vente-col { grid-column: 2; grid-row: 1; position: sticky; top: 92px; margin-top: -150px; z-index: 5; }
.avec-vente .fs-hero-texte { max-width: calc(100% - 390px); }
.fs-bloc { margin-bottom: 64px; }

.acquis { margin-top: 28px; background: var(--white); border: 1px solid #EAEAE4; border-top: 4px solid var(--c, var(--gold)); border-radius: 4px; padding: 28px 26px; }
.acquis-titre { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.acquis ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.acquis li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text); line-height: 1.55; }
.acquis li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--c, var(--gold)); color: var(--white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* PROGRAMME */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.prog-jour { background: var(--white); border: 1px solid #EAEAE4; border-radius: 4px; padding: 22px 22px 20px; }
.prog-titre { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c, var(--gold)); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #EFEFEA; }
.prog-jour ol { list-style: none; counter-reset: m; display: flex; flex-direction: column; gap: 8px; }
.prog-jour li { counter-increment: m; position: relative; padding-left: 26px; font-size: 14px; color: var(--text); line-height: 1.5; }
.prog-jour li::before { content: counter(m); position: absolute; left: 0; top: 1px; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.prog-vide { background: var(--white); border: 1px dashed #D6D3C8; border-radius: 4px; padding: 26px; color: var(--muted); font-size: 15px; max-width: 640px; }

.espace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.espace-item { background: var(--white); border: 1px solid #EAEAE4; border-left: 4px solid var(--c, var(--gold)); border-radius: 4px; padding: 20px; }
.espace-titre { font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.espace-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* CARTE DE VENTE — reprise de la carte du Campus (mêmes couleurs, mêmes blocs) */
.vente {
  --indigo-nuit: #1A2350; --indigo-cuve: #232F66; --coton: #F6F0E4; --coton-fonce: #E6DCC3;
  --ocre: #D9A13B; --savon-deep: #B07E1F; --blanc: #FFFDF8; --rouge-erreur: #B0322A; --gris: #6E6753;
  background: var(--blanc); border: 2px solid var(--coton-fonce); border-radius: 16px; padding: 22px 20px;
  box-shadow: 0 18px 40px rgba(26,35,80,.16); display: flex; flex-direction: column;
}
.vente:empty { display: none; }
.v-tete { display: flex; gap: 12px; align-items: center; }
.v-icone { font-size: 2rem; line-height: 1; }
.v-sur { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2E7D4F; }
.vente h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.12rem; color: var(--indigo-nuit); line-height: 1.3; }
.vente .ligne-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; font-size: .8rem; color: #22242B; }
.vente .type-pill { background: var(--coton); border: 1px solid var(--coton-fonce); color: var(--indigo-nuit); font-size: .62rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.vente .jauge { height: 9px; border-radius: 6px; background: var(--coton-fonce); overflow: hidden; margin-top: 9px; }
.vente .jauge-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ocre), var(--savon-deep)); }
.vente .jauge-txt { display: flex; justify-content: space-between; font-size: .72rem; color: var(--gris); margin-top: 4px; }
.vente .prix-ligne { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 16px; }
.vente .prix-ligne .normal { font-size: 1.25rem; font-weight: 800; color: var(--indigo-nuit); }
.vente .prix-ligne .barre { text-decoration: line-through; color: var(--gris); font-size: .9rem; }
.vente .prix-ligne .promo { font-size: 1.45rem; font-weight: 900; color: var(--rouge-erreur); }
.vente .mention-promo { text-align: center; font-size: .74rem; font-weight: 700; color: var(--rouge-erreur); margin-top: 9px; }
.vente .compte { display: flex; gap: 6px; justify-content: center; margin-top: 7px; }
.vente .compte .bloc-t { background: var(--coton); border: 1px solid var(--coton-fonce); border-radius: 8px; padding: 6px 4px; text-align: center; min-width: 50px; }
.vente .compte .bloc-t b { display: block; font-size: 1.05rem; color: var(--indigo-nuit); line-height: 1.1; font-variant-numeric: tabular-nums; }
.vente .compte .bloc-t span { font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.vente .cta-carte { display: block; width: 100%; margin-top: 18px; padding: 14px; background: var(--indigo-nuit); color: var(--coton); border-radius: 10px; font-weight: 800; font-size: .95rem; text-align: center; box-shadow: 0 5px 14px rgba(26,35,80,.22); transition: background .2s, transform .2s, box-shadow .2s; }
.vente .cta-carte:hover { background: var(--indigo-cuve); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26,35,80,.3); }
.vente .paiements { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.vente .paiements span { font-size: .66rem; font-weight: 700; background: var(--blanc); border: 1px solid var(--coton-fonce); border-radius: 6px; padding: 4px 9px; color: var(--indigo-nuit); }

.vente .cta-carte { border: none; cursor: pointer; font-family: inherit; }

/* FENÊTRE D'INSCRIPTION — même parcours et mêmes styles que le Campus */
.insc-ouverte { overflow: hidden; }
.insc-fond { position: fixed; inset: 0; z-index: 500; background: rgba(8,15,16,.72); display: flex; align-items: center; justify-content: center; padding: 20px 16px; }
.insc-fond[hidden], .insc [hidden] { display: none !important; }
.insc {
  --indigo-nuit: #1A2350; --indigo-cuve: #232F66; --indigo-clair: #4A5BAA; --coton: #F6F0E4; --coton-fonce: #E6DCC3;
  --ocre: #D9A13B; --blanc: #FFFDF8; --rouge-erreur: #B0322A; --gris: #6E6753; --vert-ok: #2E7D4F; --encre: #22242B;
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto;
  background: var(--blanc); border-radius: 18px; padding: 26px 22px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.4); color: var(--encre);
}
.insc-fermer { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--coton-fonce); background: var(--coton); color: var(--indigo-nuit); font-size: 15px; cursor: pointer; }
.insc-fermer:hover { border-color: var(--ocre); }
.insc-tete { text-align: center; }
.insc-tete .v-icone { font-size: 2.2rem; }
.insc h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; color: var(--indigo-nuit); margin-top: 6px; padding: 0 30px; line-height: 1.3; }
.insc .prix-ligne { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 10px; }
.insc .prix-ligne .normal { font-size: 1.35rem; font-weight: 800; color: var(--indigo-nuit); }
.insc .prix-ligne .barre { text-decoration: line-through; color: var(--gris); font-size: .9rem; }
.insc .prix-ligne .promo { font-size: 1.5rem; font-weight: 900; color: var(--rouge-erreur); }
.insc .mention-promo { text-align: center; font-size: .74rem; font-weight: 700; color: var(--rouge-erreur); margin-top: 8px; }
.insc .compte { display: flex; gap: 6px; justify-content: center; margin-top: 7px; }
.insc .compte .bloc-t { background: var(--coton); border: 1px solid var(--coton-fonce); border-radius: 8px; padding: 5px 4px; text-align: center; min-width: 48px; }
.insc .compte .bloc-t b { display: block; font-size: 1rem; color: var(--indigo-nuit); line-height: 1.1; font-variant-numeric: tabular-nums; }
.insc .compte .bloc-t span { font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.insc .parcours { text-align: left; margin-top: 20px; }
.insc .p-etape { border: 2px solid var(--coton-fonce); border-radius: 14px; padding: 16px 14px; margin-bottom: 12px; background: var(--blanc); }
.insc .p-titre { font-weight: 700; font-size: .98rem; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--indigo-cuve); }
.insc .rond { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--indigo-nuit); color: var(--coton); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; }
.insc .p-note { font-size: .86rem; color: #5A5245; margin: 6px 0 12px; line-height: 1.5; }
.insc .p-reseaux { display: flex; flex-direction: column; gap: 9px; }
.insc .btn-reseau { border: 2px solid var(--coton-fonce); background: var(--coton); border-radius: 11px; padding: 13px; font-size: .98rem; font-weight: 700; cursor: pointer; text-align: left; font-family: inherit; color: var(--encre); transition: border-color .15s; }
.insc .btn-reseau:hover { border-color: var(--ocre); }
.insc .btn-reseau.choisi { border-color: var(--indigo-clair); background: #EEF1FF; }
.insc .btn-reseau.hors-bf { background: var(--blanc); font-weight: 600; font-size: .9rem; }
.insc .btn-payer { display: block; text-align: center; background: var(--indigo-cuve); color: var(--coton); border-radius: 11px; padding: 15px; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.insc .btn-payer:hover { filter: brightness(1.12); }
.insc .p-code { background: #FFF8E8; border: 2px dashed var(--ocre); border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin-bottom: 12px; word-break: break-all; }
.insc .p-code b { font-family: 'Courier New', monospace; color: var(--indigo-cuve); }
.insc .p-code small { color: #8A8070; }
.insc .btn-suite { display: block; width: 100%; border: none; background: var(--ocre); color: var(--indigo-nuit); border-radius: 11px; padding: 13px; font-weight: 800; font-size: .98rem; cursor: pointer; font-family: inherit; }
.insc .btn-suite:hover { filter: brightness(1.08); }
.insc .p-champ { width: 100%; padding: 13px; border: 2px solid var(--coton-fonce); border-radius: 10px; font-size: 1.05rem; font-family: inherit; margin-bottom: 8px; background: #fff; color: var(--encre); }
.insc .p-champ:focus { outline: none; border-color: var(--indigo-clair); }
.insc .p-promo { margin-top: 12px; border-top: 1px dashed var(--coton-fonce); padding-top: 12px; }
.insc .p-promo .p-champ { text-transform: uppercase; margin-bottom: 4px; }
.insc .p-promo-msg { font-size: .85rem; font-weight: 700; min-height: 1.1em; margin: 2px 0 0; }
.insc .p-promo-msg.ok { color: #1B7A3D; }
.insc .p-promo-msg.ko { color: #C0392B; }
.insc .p-erreur { color: #C62828; font-size: .84rem; font-weight: 600; min-height: 1.2em; margin: 0 0 8px; }
.insc .wa { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--vert-ok); color: #fff; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 1rem; margin-top: 4px; transition: background .2s, transform .2s; }
.insc .wa:hover { background: #256a42; transform: translateY(-2px); }
.insc .paiements { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.insc .paiements span { font-size: .66rem; font-weight: 700; background: var(--blanc); border: 1px solid var(--coton-fonce); border-radius: 6px; padding: 4px 9px; color: var(--indigo-nuit); }

/* DÉROULEMENT */
.deroule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deroule-item { display: flex; gap: 16px; align-items: flex-start; }
.deroule-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--c, var(--gold)); color: var(--white); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.deroule-titre { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.deroule-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* APPEL À L'ACTION */
.fs-cta { background: var(--dark); padding: 72px 32px; text-align: center; }
.fs-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.5vw, 34px); color: var(--white); margin-bottom: 12px; }
.fs-cta p { color: rgba(255,255,255,0.62); font-size: 15.5px; margin: 0 auto 28px; max-width: 560px; }
.fs-cta strong { color: var(--gold-lt); font-weight: 600; white-space: nowrap; }
.fs-cta .fs-actions { justify-content: center; }

/* AUTRES FORMATIONS */
.autres { display: flex; flex-wrap: wrap; gap: 10px; }
.autre { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #E5E5DF; border-left: 3px solid var(--c); border-radius: 3px; background: var(--white); font-size: 14px; font-weight: 500; color: var(--dark); transition: box-shadow 0.2s, transform 0.2s; }
.autre:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* FOOTER */
footer { background: #080F10; padding: 36px 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--gold-lt); }
.footer-sub { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); text-align: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-lt); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-burger { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(15,31,32,0.99); border-bottom: 1px solid var(--border); padding: 6px 0 16px; max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
  .nav-links.ouvert { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 26px; font-size: 15px; color: rgba(255,255,255,0.88); border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links a.actuel { border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 15px; background: rgba(232,184,75,0.08); }
  .nav-cta { margin: 14px 26px 0; text-align: center; padding: 15px !important; font-size: 14px !important; border-bottom: none !important; }
  /* Sur tablette et mobile : la carte passe juste sous le bandeau, sans rester fixe */
  .avec-vente .fs-corps { display: block; }
  .avec-vente .vente-col { position: static; margin: -40px auto 48px; max-width: 420px; }
  .avec-vente .fs-hero-texte { max-width: none; }
  .deroule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .fs-hero { padding: 110px 20px 56px; }
  .fs-section { padding: 60px 20px; }
  .fs-corps { padding: 48px 20px 16px; }
  .fs-cta { padding: 60px 20px; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}
