/* CentreForma : univers sombre, sablier de verre et perles. Bleu-vert du partenaire, fil doré. */
:root {
  --cf-noir: #f7f5f4; --cf-nuit: #ffffff; --cf-carte: #ffffff; --cf-trait: rgba(59,30,14,.14);
  --cf-blanc: #2b190e; --cf-doux: #69574d; --cf-accent: #ef7a1e; --cf-vif: #c44c0a; --cf-or: #d9581a; --cf-degrade: linear-gradient(90deg, #d94e12, #ef7a1e 55%, #e8981f);
  --cf-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --cf-serif: var(--cf-sans);
  --cf-zone: 1280px; --cf-rayon: 24px;
}
.cf-page { margin: 0; font-family: var(--cf-sans); color: var(--cf-blanc); background: var(--cf-noir); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.cf-accueil { overflow-x: clip; }
.cf-page *, .cf-page *::before, .cf-page *::after { box-sizing: border-box; }
.cf-page img { max-width: 100%; display: block; }
.cf-page h1, .cf-page h2, .cf-page h3, .cf-page p, .cf-page figure { margin: 0; }
.cf-zone { width: min(var(--cf-zone), 100% - 32px); margin-inline: auto; }
.cf-section { position: relative; z-index: 2; padding: clamp(84px, 12vw, 170px) 0; }
.cf-plein { background: var(--cf-noir); }
.cf-etiquette { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cf-vif); }
.cf-etiquette::before { content: ''; width: 34px; height: 1px; background: var(--cf-or); }
.cf-titre { font-size: clamp(40px, 6.6vw, 96px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin-top: 20px !important; }
.cf-page em, h1 em, h2 em { font-family: var(--cf-sans); font-style: normal; font-weight: inherit; letter-spacing: inherit; background: var(--cf-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-intro { font-size: clamp(17px, 1.6vw, 21px); color: var(--cf-doux); max-width: 620px; margin-top: 24px !important; }
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 10px; font-family: var(--cf-sans); font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.cf-btn:hover { transform: translateY(-2px); }
.cf-page a:focus-visible, .cf-page summary:focus-visible, .cf-page button:focus-visible { outline: 2px solid var(--cf-or); outline-offset: 3px; }
.cf-btn-clair { background: #d9520c; color: #fff; }
.cf-btn-clair:hover { color: #fff; background: #d9520c; box-shadow: 0 14px 30px -12px rgba(183,86,30,.7); }
.cf-btn-verre { position: relative; color: var(--cf-blanc); background: #fff; box-shadow: inset 0 0 0 1.5px var(--cf-blanc); }
.cf-btn-verre::before { content: ''; position: absolute; left: 0; bottom: 0; width: 22px; height: 14px; border-left: 2px solid #f0733a; border-bottom: 2px solid #f0733a; border-bottom-left-radius: 10px; }
.cf-btn-verre:hover { color: var(--cf-blanc); background: #f3edea; }

/* Scène */
#cf-scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.cf-poster { display: none; position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); height: 72vh; z-index: 1; mix-blend-mode: multiply; }
.cf-sans-3d #cf-scene { display: none; }
.cf-sans-3d .cf-poster { display: block; }

/* En-tête */
.cf-entete { position: sticky; top: 0; z-index: 60; transition: background .3s, box-shadow .3s; background: rgba(247,245,244,.86); backdrop-filter: blur(16px); }
.cf-accueil .cf-entete { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.cf-accueil .cf-entete.defile { background: rgba(247,245,244,.86); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--cf-trait); }
.cf-entete::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #f0733a 30%, #ef7a1e 70%, transparent); opacity: .75; }
.cf-barre { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 80px; }
.cf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cf-blanc); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.cf-logo:hover { color: var(--cf-blanc); }
.cf-logo svg { width: 38px; height: 46px; flex: none; overflow: visible; }
.cf-logo path { transform-box: fill-box; transform-origin: center; }
.cf-logo:hover .cf-r1 { animation: cf-rouage 9s linear infinite; }
.cf-logo:hover .cf-r2 { animation: cf-rouage 6s linear infinite reverse; }
.cf-logo:hover .cf-r3 { animation: cf-rouage 3.600s linear infinite; }
@keyframes cf-rouage { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cf-logo:hover path { animation: none; } }
.cf-nav { display: flex; align-items: center; gap: 30px; justify-self: end; }
.cf-nav a { color: var(--cf-blanc); text-decoration: none; font-size: 15px; font-weight: 500; }
.cf-nav a:hover, .cf-nav a[aria-current] { color: var(--cf-vif); }
.cf-droite { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cf-droite .cf-btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.cf-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(59,30,14,.08); color: var(--cf-blanc); cursor: pointer; font-size: 22px; line-height: 1; }
.cf-progres { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--cf-or); transform: scaleX(0); transform-origin: left; }

/* Points de navigation */
.cf-points { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 12px; }
.cf-points a { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(59,30,14,.25); transition: transform .25s, background .25s; }
.cf-points a.actif { background: var(--cf-vif); box-shadow: 0 0 0 4px rgba(218,159,125,.18); }

/* Héros */
.cf-heros { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; text-align: center; padding: clamp(104px, 14vh, 140px) 0 90px; }
.cf-heros h1 { font-size: clamp(44px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin-top: 16px; }
.cf-heros p { display: none; }
.cf-heros-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.cf-descendre { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--cf-doux); font-size: 13px; text-decoration: none; display: grid; justify-items: center; gap: 8px; }
.cf-descendre::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--cf-or), transparent); animation: cf-goutte 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cf-goutte { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Manifeste */
.cf-manifeste { position: relative; z-index: 2; min-height: 170vh; }
.cf-manifeste-texte { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.cf-manifeste p { font-size: clamp(32px, 5.4vw, 78px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; max-width: 18ch; }
.cf-manifeste span { color: rgba(43,25,14,.14); transition: color .35s; }
.cf-manifeste span.lu { color: var(--cf-blanc); }

/* Bande de mots */
.cf-bande { position: relative; z-index: 2; overflow: hidden; background: var(--cf-noir); border-block: 1px solid var(--cf-trait); padding: 22px 0; }
.cf-bande div { display: flex; width: max-content; gap: 56px; animation: cf-defile 40s linear infinite; font-family: var(--cf-serif); font-size: clamp(30px, 4.4vw, 58px); color: var(--cf-doux); white-space: nowrap; }
.cf-bande span::after { content: '•'; font-style: normal; color: var(--cf-or); margin-left: 56px; font-size: .5em; vertical-align: middle; }
@keyframes cf-defile { to { transform: translateX(-50%); } }

/* Une journée : défilement horizontal */
.cf-journee { position: relative; z-index: 2; height: 460vh; background: var(--cf-noir); }
.cf-journee-fixe { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); }
.cf-piste { display: flex; gap: 22px; width: max-content; padding-inline: max(16px, calc((100vw - var(--cf-zone)) / 2)); will-change: transform; }
.cf-moment { width: min(430px, 82vw); min-height: min(46vh, 400px); padding: 30px; border-radius: var(--cf-rayon); background: var(--cf-carte); box-shadow: inset 0 0 0 1px var(--cf-trait); display: flex; flex-direction: column; }
.cf-heure { font-family: var(--cf-serif); font-size: clamp(50px, 6vw, 80px); line-height: 1; color: var(--cf-vif); }
.cf-moment h3 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; margin-top: auto !important; padding-top: 28px; }
.cf-moment p { color: var(--cf-doux); margin-top: 8px; }

/* Parcours : les perles coulent au défilement */
.cf-parcours { position: relative; z-index: 2; height: 420vh; }
.cf-parcours-fixe { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.cf-parcours-texte { width: min(560px, 100%); margin-left: auto; }
.cf-etape { display: none; }
.cf-etape.active { display: block; animation: cf-entree .55s ease both; }
@keyframes cf-entree { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cf-etape .n { font-family: var(--cf-serif); color: var(--cf-or); font-size: 28px; }
.cf-etape h3 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin-top: 8px; }
.cf-etape p { color: var(--cf-doux); font-size: 19px; margin-top: 18px; max-width: 480px; }
.cf-reperes { display: flex; gap: 8px; margin-top: 30px; }
.cf-reperes i { flex: 1; height: 2px; background: var(--cf-trait); position: relative; overflow: hidden; }
.cf-reperes i::after { content: ''; position: absolute; inset: 0; background: var(--cf-vif); transform: scaleX(var(--r, 0)); transform-origin: left; }

/* Écrans dessinés */
.cf-grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.cf-bloc { grid-column: span 4; position: relative; overflow: hidden; border-radius: var(--cf-rayon); background: #fff; box-shadow: inset 0 0 0 1px var(--cf-trait); padding: 28px; min-height: 340px; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.cf-bloc:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(218,159,125,.5), 0 30px 70px -30px rgba(203,96,33,.5); }
.cf-bloc.l6 { grid-column: span 6; }
.cf-bloc.l8 { grid-column: span 8; }
.cf-bloc h3 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; margin-top: auto !important; padding-top: 22px; }
.cf-bloc p { color: var(--cf-doux); font-size: 16px; margin-top: 6px; }
.cf-ui { border-radius: 14px; background: #f6f3f2; box-shadow: inset 0 0 0 1px var(--cf-trait); padding: 14px; font-size: 13px; color: var(--cf-blanc); }
.cf-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(59,30,14,.08); }
.cf-ligne:last-child { border-bottom: 0; }
.cf-ok { color: var(--cf-vif); font-weight: 600; }
.cf-attente { color: var(--cf-or); font-weight: 600; }
.cf-signature path { fill: none; stroke: var(--cf-vif); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.vu .cf-signature path { animation: cf-trace 2.6s ease forwards .4s; }
@keyframes cf-trace { to { stroke-dashoffset: 0; } }
.cf-visio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cf-visio i { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(140deg, #ecddd4, #d9bcab); position: relative; }
.cf-visio i::after { content: ''; position: absolute; inset: 30% 38%; border-radius: 50%; background: rgba(187,88,30,.38); }
.cf-visio i:nth-child(2) { box-shadow: 0 0 0 2px var(--cf-vif); }
.cf-chaine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-chaine b { font-weight: 600; padding: 9px 14px; border-radius: 999px; background: rgba(59,30,14,.06); }
.cf-chaine b.fait { background: rgba(203,96,33,.24); color: var(--cf-vif); }
.cf-chaine span { color: var(--cf-or); }
.cf-barres { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.cf-barres i { flex: 1; background: linear-gradient(var(--cf-vif), rgba(203,96,33,.12)); border-radius: 6px 6px 0 0; height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * .07s); }
.vu .cf-barres i, .cf-tableau .cf-barres i { transform: none; }

/* Modalités */
.cf-volets { display: flex; gap: 14px; margin-top: 56px; height: min(66vh, 620px); }
.cf-volet { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--cf-rayon); transition: flex .7s cubic-bezier(.2,.8,.2,1); }
.cf-volet:hover, .cf-volet:focus-within { flex: 2.3; }
.cf-volet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.72); transition: filter .7s, transform 1.2s; }
.cf-volet:hover img { filter: grayscale(.2) brightness(.82); transform: scale(1.05); }
.cf-volet::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,10,5,.94) 8%, rgba(20,10,5,.1) 62%); }
.cf-volet div { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 24px; }
.cf-volet h3 { font-size: clamp(25px, 2.6vw, 36px); letter-spacing: -.025em; font-weight: 600; }
.cf-volet p { color: var(--cf-blanc); margin-top: 8px; max-width: 420px; }

/* Tableau de bord */
.cf-scene-3d { perspective: 1400px; margin-top: 60px; }
.cf-tableau { transform: rotateX(var(--inclin, 22deg)) scale(var(--taille, .94)); transform-origin: center top; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--cf-trait), 0 60px 120px -40px rgba(203,96,33,.45); overflow: hidden; display: grid; grid-template-columns: 210px minmax(0, 1fr); will-change: transform; }
.cf-menu { padding: 22px 16px; border-right: 1px solid var(--cf-trait); display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--cf-doux); }
.cf-menu b { padding: 9px 12px; border-radius: 10px; font-weight: 500; }
.cf-menu b.on { background: rgba(203,96,33,.18); color: var(--cf-vif); }
.cf-corps { padding: 26px; display: grid; gap: 16px; }
.cf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cf-kpi { padding: 16px; border-radius: 14px; background: #f6f3f2; font-size: 13px; color: var(--cf-doux); }
.cf-kpi b { display: block; height: 10px; width: 64%; margin-bottom: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--cf-vif), transparent); }
.cf-illustration { color: var(--cf-doux); font-size: 13px; margin-top: 16px !important; text-align: center; }

/* Qualiopi */
.cf-criteres { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: c; }
.cf-criteres li { counter-increment: c; display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: baseline; padding: 20px 0; border-top: 1px solid var(--cf-trait); font-size: clamp(21px, 3vw, 40px); letter-spacing: -.02em; font-weight: 500; color: var(--cf-doux); transition: color .3s, padding .3s; }
.cf-criteres li:last-child { border-bottom: 1px solid var(--cf-trait); }
.cf-criteres li:hover { color: var(--cf-blanc); padding-left: 14px; }
.cf-criteres li::before { content: '0' counter(c); font-family: var(--cf-serif); color: var(--cf-or); font-size: .8em; }
.cf-note { color: var(--cf-doux); font-size: 14px; margin-top: 24px !important; }

/* Thèmes */
.cf-themes { overflow: hidden; margin-top: 56px; display: grid; gap: 16px; }
.cf-themes div { display: flex; gap: 16px; width: max-content; animation: cf-defile 70s linear infinite; }
.cf-themes div:nth-child(2) { animation-direction: reverse; }
.cf-themes img { width: clamp(240px, 26vw, 380px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 0 0 1px var(--cf-trait); }

/* Mobile */
.cf-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.cf-tel { width: min(300px, 80%); margin-inline: auto; aspect-ratio: 9 / 18.6; border-radius: 42px; background: #e8e2df; padding: 14px; box-shadow: inset 0 0 0 2px rgba(59,30,14,.2), 0 60px 110px -40px rgba(203,96,33,.6); rotate: -5deg; }
.cf-tel-ecran { height: 100%; border-radius: 30px; background: linear-gradient(170deg, #fff, #f1e8e3); padding: 34px 16px 16px; display: grid; gap: 10px; align-content: start; font-size: 13px; }
.cf-tel-ecran b { font-size: 18px; letter-spacing: -.02em; }
.cf-tel-ecran div { padding: 12px; border-radius: 14px; background: rgba(59,30,14,.06); display: flex; justify-content: space-between; gap: 8px; }

/* Démarrer */
.cf-pas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--cf-trait); }
.cf-pas > div { padding: 30px 28px 10px 0; border-right: 1px solid var(--cf-trait); margin-right: 28px; }
.cf-pas > div:last-child { border-right: 0; margin-right: 0; }
.cf-pas span { font-family: var(--cf-serif); font-size: 56px; color: var(--cf-or); line-height: 1; }
.cf-pas h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 16px; }
.cf-pas p { color: var(--cf-doux); margin-top: 6px; }

/* Tarifs */
.cf-gammes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.cf-gamme { padding: 30px 26px; border-radius: var(--cf-rayon); background: var(--cf-carte); box-shadow: inset 0 0 0 1px var(--cf-trait); transition: transform .3s, box-shadow .3s; }
.cf-gamme:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--cf-vif); }
.cf-gamme h3 { font-family: var(--cf-serif); font-weight: 400; font-size: 38px; color: var(--cf-vif); }
.cf-gamme .volume { color: var(--cf-doux); font-size: 15px; margin-top: 10px; min-height: 48px; }
.cf-gamme .prix { font-weight: 600; font-size: 20px; margin-top: 14px; }

/* Questions */
.cf-questions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); }
.cf-questions details { border-top: 1px solid var(--cf-trait); padding: 22px 0; }
.cf-questions details:last-child { border-bottom: 1px solid var(--cf-trait); }
.cf-questions summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 19px; }
.cf-questions summary::-webkit-details-marker { display: none; }
.cf-questions summary::after { content: '+'; color: var(--cf-or); font-size: 26px; line-height: 1; transition: transform .25s; }
.cf-questions details[open] summary::after { transform: rotate(45deg); }
.cf-questions p { color: var(--cf-doux); margin-top: 12px; }

/* Final */
.cf-final { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: flex-start; text-align: center; padding: 15vh 0 60px; }
.cf-final h2 { font-size: clamp(46px, 8vw, 124px); line-height: .98; letter-spacing: -.04em; font-weight: 700; }
.cf-final p { color: var(--cf-doux); font-size: 19px; margin: 18px auto 30px; max-width: 520px; }

/* Pied */
.cf-pied { position: relative; z-index: 2; background: var(--cf-noir); border-top: 1px solid var(--cf-trait); color: var(--cf-doux); padding: 60px 0 22px; font-size: 15px; overflow: hidden; }
.cf-pied-grille { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.cf-pied h3 { color: var(--cf-blanc); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.cf-pied a:not(.cf-logo) { display: block; color: var(--cf-doux); text-decoration: none; padding: 3px 0; }
.cf-pied a:not(.cf-logo):hover { color: var(--cf-vif); }
.cf-pied p { margin-top: 14px !important; max-width: 340px; }
.cf-geant { font-size: clamp(60px, 15.5vw, 240px); line-height: .9; letter-spacing: -.05em; font-weight: 700; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(183,86,30,.32); margin-top: 44px; white-space: nowrap; }
.cf-geant em { -webkit-text-stroke: 0; opacity: .32; }
.cf-pied-bas { margin-top: 20px; font-size: 14px; text-align: center; }

/* Apparition */
.cf-js .cf-revele { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.cf-js .cf-revele.vu { opacity: 1; transform: none; }

/* Pages internes */
.cf-bougie-page { width: min(100%, 460px); margin-inline: auto; mix-blend-mode: multiply; }

@media (max-width: 1100px) { .cf-points { display: none; } }
@media (max-width: 960px) {
  .cf-barre { grid-template-columns: 1fr auto; }
  .cf-burger { display: block; }
  .cf-droite .cf-btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .cf-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: rgba(247,245,244,.98); border-bottom: 1px solid var(--cf-trait); }
  .cf-nav.ouvert { display: flex; }
  .cf-nav a { padding: 12px 4px; font-size: 17px; }
      .cf-descendre { display: none; }
  .cf-parcours-texte { margin: auto 0 9vh; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.84); backdrop-filter: blur(10px); }
  .cf-parcours-fixe { align-items: flex-end; }
  .cf-bloc, .cf-bloc.l6, .cf-bloc.l8 { grid-column: span 12; min-height: 0; }
  .cf-volets { flex-direction: column; height: auto; }
  .cf-volet { min-height: 300px; flex: none; }
  .cf-tableau { grid-template-columns: minmax(0, 1fr); }
  .cf-menu { display: none; }
  .cf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-mobile, .cf-questions { grid-template-columns: minmax(0, 1fr); }
  .cf-gammes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-pas { grid-template-columns: minmax(0, 1fr); }
  .cf-pas > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--cf-trait); padding: 24px 0; }
  .cf-pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-pied-grille > div:first-child { grid-column: 1 / -1; }
  .cf-criteres li { grid-template-columns: 56px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cf-gammes { grid-template-columns: minmax(0, 1fr); }
    .cf-heros-actions .cf-btn { flex: 1 1 0; padding: 0 12px; }
  .cf-heros .cf-etiquette::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-bande div, .cf-themes div, .cf-descendre::after { animation: none; }
  .cf-js .cf-revele { opacity: 1; transform: none; transition: none; }
  .cf-manifeste span { color: var(--cf-blanc); }
  .cf-signature path { stroke-dashoffset: 0; }
  .cf-barres i { transform: none; }
  .cf-journee { height: auto; }
  .cf-journee-fixe { position: static; height: auto; overflow-x: auto; }
  .cf-parcours { height: auto; }
  .cf-parcours-fixe { position: static; height: auto; padding: 60px 0; }
  .cf-etape { display: block; margin-bottom: 40px; }
  .cf-btn, .cf-bloc, .cf-gamme, .cf-volet, .cf-volet img, .cf-criteres li { transition: none; }
}

/* Sections ajoutées : documents, relié, arche, espaces, bibliothèque */
.cf-centre { text-align: center; }
.cf-centre .cf-intro { margin-inline: auto; }
.cf-collage { position: relative; height: clamp(520px, 62vw, 700px); margin-top: 40px; }
.cf-doc { position: absolute; border-radius: 6px; box-shadow: 0 34px 70px -24px rgba(59,30,14,.45); transform: translate3d(0, calc(var(--p, 0) * var(--k, 0px)), 0) rotate(var(--r, 0deg)); will-change: transform; overflow: hidden; }
.cf-doc-orange { background: #d9541c; color: #fff4ea; }
.cf-doc-blanc { background: #ebeae9; color: #111; }
.cf-doc-noir { background: #d9520c; color: #f0e0d7; box-shadow: 0 34px 70px -24px rgba(59,30,14,.45), inset 0 0 0 1px var(--cf-trait); }
.cf-doc-grand { left: 50%; top: 8%; width: min(330px, 62vw); aspect-ratio: 3 / 4.1; margin-left: calc(min(330px, 62vw) / -2); padding: 34px 28px; box-shadow: 0 0 0 5px #efe7dc, 0 40px 80px -24px rgba(59,30,14,.5); display: flex; flex-direction: column; justify-content: flex-end; z-index: 3; --k: -50px; }
.cf-doc-grand b { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.cf-doc-grand p { font-size: 14px; margin-top: 10px !important; color: #ffe4d0; }
.cf-doc-carte { left: 7%; top: 2%; width: min(300px, 42vw); aspect-ratio: 1.45; padding: 20px; z-index: 2; font-weight: 700; --k: 60px; }
.cf-doc-ticket { right: 6%; top: 12%; width: min(320px, 44vw); padding: 16px 18px; z-index: 4; font-size: 13px; --k: -90px; --r: 2deg; }
.cf-doc-ticket .cf-ligne { border-color: rgba(0,0,0,.12); padding: 6px 0; }
.cf-doc-note { left: 4%; top: 52%; width: min(300px, 44vw); padding: 18px 20px; z-index: 4; --k: 90px; --r: -3deg; }
.cf-doc-note b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.cf-doc-note small { display: block; margin-top: 8px; color: #333; }
.cf-doc-fond { right: 16%; top: 40%; width: min(280px, 40vw); aspect-ratio: .8; padding: 18px; z-index: 1; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; --k: 40px; }
.cf-doc-cachet { position: absolute; right: 22px; top: 22px; width: 54px; height: 54px; border-radius: 50%; border: 2px solid #ffe4d0; opacity: .75; }
.cf-rai { position: absolute; inset: 0; z-index: 5; pointer-events: none; mix-blend-mode: multiply; background: linear-gradient(118deg, transparent 34%, rgba(0,0,0,.34) 34.5%, rgba(0,0,0,.34) 47%, transparent 47.5%, transparent 53%, rgba(0,0,0,.28) 53.5%, rgba(0,0,0,.28) 63%, transparent 63.5%); }

.cf-relie { position: relative; z-index: 2; min-height: 130vh; display: flex; align-items: center; }
.cf-relie-texte { max-width: 560px; }

.cf-arche { position: relative; z-index: 2; height: 130vh; background: radial-gradient(90% 70% at 50% 30%, #e4e4e2, #bdbdba); color: #141414; overflow: hidden; }
.cf-arche-texte { position: relative; z-index: 2; padding-top: clamp(70px, 11vh, 120px); text-align: center; }
.cf-arche .cf-etiquette { color: #2b2b2b; }
.cf-arche .cf-titre { color: #111; }
.cf-arche em { background: linear-gradient(90deg, #c24614, #b6561e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-arche .cf-intro { color: #3d3d3d; margin-inline: auto; }
.cf-roue { position: absolute; left: 50%; top: 134%; width: 0; height: 0; --rayon: min(112vh, 860px); --pas: 9.4deg; }
.cf-dalle { position: absolute; left: 0; top: 0; width: clamp(88px, 9.6vw, 134px); height: clamp(260px, 42vh, 400px); margin-left: calc(clamp(88px, 9.6vw, 134px) / -2); transform: rotate(calc(var(--i) * var(--pas) + var(--tour, 0deg))) translateY(calc(var(--rayon) * -1)); transform-origin: 50% 0; display: flex; align-items: center; justify-content: center; border-radius: 3px; color: #f1f1ef; font-weight: 700; font-size: clamp(15px, 1.5vw, 20px); letter-spacing: -.01em; writing-mode: vertical-rl; background-color: #5c5d5b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(90deg, #8b8c89, #666764); box-shadow: -14px 12px 22px -8px rgba(0,0,0,.5), inset 0 3px 0 rgba(255,255,255,.55); }

.cf-pile { position: relative; height: clamp(440px, 56vh, 560px); margin-top: 60px; perspective: 1500px; }
.cf-feuille { position: absolute; left: 50%; top: 4%; width: min(330px, 58vw); height: 92%; margin-left: calc(min(330px, 58vw) / -2); border-radius: 14px; padding: 24px; overflow: hidden; transform: translateX(calc((var(--n) - 1.5) * var(--e, .2) * var(--ecart))) rotateY(-34deg) translateZ(calc(var(--n) * 46px)); box-shadow: -22px 26px 60px -24px rgba(59,30,14,.5); display: flex; flex-direction: column; justify-content: flex-end; --ecart: clamp(90px, 21vw, 300px); will-change: transform; }
.cf-feuille img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cf-feuille::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 56%); }
.cf-feuille > div { position: relative; z-index: 1; color: #fff; }
.cf-feuille b { display: block; font-size: 25px; letter-spacing: -.02em; }
.cf-feuille span { font-size: 15px; opacity: .92; }
.cf-f-orange { background: #e8691f; } .cf-f-clair { background: #d6d0cd; } .cf-f-clair > div { color: #111; } .cf-f-clair::after, .cf-f-orange::after { display: none; }

.cf-rayon { display: flex; justify-content: center; gap: 12px; height: clamp(380px, 52vh, 480px); margin-top: 56px; }
.cf-livre { position: relative; flex: 0 0 66px; height: 100%; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer; font-family: var(--cf-sans); transition: flex-basis .6s cubic-bezier(.2,.8,.2,1); text-align: left; box-shadow: inset -2px 0 0 rgba(0,0,0,.2); }
.cf-livre.ouvert { flex-basis: min(320px, 62vw); cursor: default; }
.cf-livre .dos { position: absolute; left: 0; top: 0; bottom: 0; width: 66px; padding: 18px 0; writing-mode: vertical-rl; display: flex; align-items: center; font-weight: 700; font-size: 16px; }
.cf-livre .couv { position: absolute; left: 66px; top: 0; bottom: 0; width: min(254px, 46vw); padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .4s .1s; }
.cf-livre.ouvert .couv { opacity: 1; }
.cf-livre .couv b { font-size: 28px; line-height: 1.08; letter-spacing: -.02em; }
.cf-livre .couv span { font-size: 14px; }
.cf-l-orange { background: #d9541c; color: #fff; } .cf-l-blanc { background: #eeedec; color: #111; } .cf-l-noir { background: #d9520c; color: #fff; box-shadow: inset 0 0 0 1px var(--cf-trait); } .cf-l-gris { background: #a9adac; color: #111; } .cf-l-teal { background: #b9571e; color: #fff; }
.cf-exemple { color: var(--cf-doux); font-size: 13px; margin-top: 16px !important; text-align: center; }

@media (max-width: 760px) {
  .cf-doc-carte { left: 0; } .cf-doc-ticket { right: 0; top: 56%; } .cf-doc-note { left: 0; top: 76%; } .cf-doc-fond { display: none; }
  .cf-roue { --rayon: 118vw; --pas: 14deg; top: 116%; }
  .cf-relie { align-items: flex-start; padding-top: 12vh; min-height: 120vh; }
  .cf-rayon { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
  .cf-livre { flex-basis: 54px; } .cf-livre .dos { width: 54px; font-size: 14px; } .cf-livre .couv { left: 54px; }
}
@media (prefers-reduced-motion: reduce) { .cf-livre, .cf-livre .couv { transition: none; } }

/* Version claire : rythme des sections */
#plateforme, #bibliotheque, #demarrer, #questions { background: #fff; }
.cf-volet, .cf-volet h3 { color: #fff; }
.cf-volet p { color: #f6f1ee; }
.cf-fort { --cf-blanc: #fff; --cf-doux: #eddcd2; --cf-trait: rgba(255,255,255,.22); --cf-vif: #f1d1be; --cf-or: #ffc27a; --cf-degrade: linear-gradient(90deg, #ffd9a8, #fff); background: #d9520c !important; color: #fff; }
.cf-bougie-page, .cf-poster { height: auto; filter: brightness(1.045); -webkit-mask-image: radial-gradient(ellipse closest-side, #000 76%, transparent); mask-image: radial-gradient(ellipse closest-side, #000 76%, transparent); }
.cf-poster { width: min(1100px, 96vw); max-width: none; bottom: -22vh; }

/* Animations des pages internes */
.cf-anim { display: block; width: min(100%, 440px); aspect-ratio: 1 / 1.16; margin-inline: auto; }
.heros-petit canvas:not(.cf-anim) { display: none; }

/* L'assistant, en bas à droite de toutes les pages */
#cf-robot { position: fixed; right: 18px; bottom: 16px; z-index: 70; font-family: var(--cf-sans); }
#cf-robot > button { display: block; width: 112px; height: 126px; padding: 0; border: 0; border-radius: 16px; background: none; cursor: pointer; filter: drop-shadow(0 8px 12px rgba(80,40,10,.22)); }
#cf-robot > button:focus-visible { outline: 2px solid #d9581a; outline-offset: 3px; }
#cf-robot svg { display: block; width: 100%; height: 100%; overflow: visible; }
#cf-robot .r-corps { animation: cf-flotte 3.4s ease-in-out infinite; }
#cf-robot .r-ombre { transform-box: fill-box; transform-origin: center; animation: cf-ombre 3.4s ease-in-out infinite; }
#cf-robot .r-salut { transform-box: fill-box; transform-origin: 50% 8%; transition: transform .3s; }
#cf-robot > button:hover .r-salut, #cf-robot.ouvert .r-salut { animation: cf-salut .9s ease-in-out infinite; }
#cf-robot .r-oeil { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
#cf-robot.cligne .r-oeil { transform: scaleY(.1); }
@keyframes cf-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cf-ombre { 0%, 100% { transform: scaleX(1); opacity: .28; } 50% { transform: scaleX(.8); opacity: .16; } }
@keyframes cf-salut { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-52deg); } }
#cf-robot .cf-bulle { position: absolute; right: 8px; bottom: 136px; box-sizing: border-box; width: 268px; display: grid; gap: 8px; padding: 18px; border-radius: 20px 20px 6px 20px; background: #fff; color: #2b190e; box-shadow: 0 24px 60px -20px rgba(59,30,14,.5), inset 0 0 0 1px rgba(59,30,14,.1); font-size: 15px; line-height: 1.4; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
#cf-robot.ouvert .cf-bulle { opacity: 1; visibility: visible; transform: none; }
#cf-robot .cf-bulle b { font-size: 16px; }
#cf-robot .cf-bulle span { color: #69574d; }
#cf-robot .cf-bulle a { display: block; padding: 10px; border-radius: 10px; text-align: center; text-decoration: none; font-weight: 700; background: #d9520c; color: #fff; }
#cf-robot .cf-bulle a.sec { background: #f1e8e3; color: #d9520c; }
@media (max-width: 760px) { #cf-robot { right: 8px; bottom: 8px; } #cf-robot > button { width: 72px; height: 81px; } #cf-robot .cf-bulle { bottom: 84px; right: 0; width: min(268px, calc(100vw - 24px)); } }
@media (prefers-reduced-motion: reduce) { #cf-robot .cf-bulle { transition: none; } #cf-robot .r-corps, #cf-robot .r-ombre, #cf-robot .r-salut { animation: none !important; } }
