/* Raccords au générateur : la composition et les valeurs XL vivent dans upstream/xl/main.css. */
:root{--sans:var(--type);--serif:var(--editorial);--muted:var(--quiet);--rule:var(--line);--paper-light:var(--surface);--edge:clamp(16px,3.125vw,40px)}
/* Le chrome utilise les mêmes classes de comportement que le site, sans ses anciennes règles visuelles. */
.hg-header.mast{display:block;position:relative;top:auto;z-index:20;padding:12px 0 0;min-height:0;background:none;border:0;color:var(--ink);font:1rem var(--type)}
.hg-header .bar{position:relative}.hg-header .wordmark{width:auto;margin:0}
.hg-header .wordmark img{width:min(100%,164px);height:54px;object-fit:cover}
.hg-header #hg-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1.18fr) minmax(0,.7fr) minmax(0,.9fr);padding:0;gap:0;width:auto;font:inherit}
.xl-family{position:static;margin:0;border-right:1px solid #74655480;min-width:0}
.xl-family>summary{display:flex;min-height:78px;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;position:relative;padding:9px clamp(10px,1.25vw,19px) 12px;list-style:none;font-size:clamp(.96rem,1.3vw,1.18rem);font-weight:740;line-height:1.06;cursor:pointer}
.xl-family>summary::-webkit-details-marker{display:none}.xl-family>summary:hover{background:#49392b}
.xl-family>summary[aria-current]{color:var(--yellow);background:#33271d}
.xl-family>summary[aria-current]::after{content:"";position:absolute;bottom:0;left:11px;width:25px;height:5px;background:var(--yellow);clip-path:polygon(0 100%,5px 0,100% 0,calc(100% - 5px) 100%)}
.xl-family:last-of-type{border-right:0;background:linear-gradient(111deg,#392b20,#241d18 18%,#1b1714);box-shadow:inset 2px 0 #7f6249}
.hg-header .hg-mega{position:absolute;inset:100% 0 auto auto;z-index:50;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(620px,100%);min-width:0;padding:15px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 8px 20px #211b1622;margin:0}
.hg-header .hg-mega a{font:650 1.05rem/1.25 var(--type);padding:14px;min-height:44px;border:0;background:none;box-shadow:none}
.hg-header .hg-mega a:hover{background:var(--soft)}.hg-header .hg-mega a:focus-visible{outline:2px solid var(--ink)}
.hg-header .xl-utilities{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:24px;min-height:32px;border-top:1px solid #74655480;padding:0 16px;font-size:.78rem}
.hg-header .xl-utilities>a{display:inline-flex;flex-direction:row;padding:5px 0;min-height:32px;font:inherit;border:0;box-shadow:none;background:none}
.hg-header .hg-pays{position:static}.hg-header .hg-pays summary{font:inherit;min-height:32px;display:flex;align-items:center;cursor:pointer}
.hg-header .hg-menu-button{display:none}
.xl-footer{flex-wrap:wrap;gap:16px 28px}.xl-footer a{min-height:32px;display:inline-flex;align-items:center}
.xl-page{line-height:normal}
.xl-page main{padding:0}.xl-page .xl-status{display:flex;flex-wrap:wrap;gap:12px 28px;padding:18px 0;border-block:1px solid var(--line);font:1rem/1.5 var(--type);margin-bottom:24px}
.xl-status span:first-child{margin-right:auto}.xl-note{font:1rem/1.5 var(--type);color:var(--quiet);padding:20px 0}
.xl-territory-cover{display:flex;flex-direction:column;gap:30px;justify-content:space-between;padding:35px;min-height:260px;background:#34251c;color:var(--white);border:1px solid #9f8060;box-shadow:inset 0 0 0 6px #34251c,inset 0 0 0 7px #9f8060}
.xl-territory-cover strong{font:700 clamp(1.7rem,4vw,3rem)/1 var(--editorial)}
.xl-door-audience{font-size:.72rem!important}.xl-page .xl-radar-subscribe{padding:30px 0;border-block:1px solid var(--line)}
.xl-radar-subscribe h2{font:700 clamp(2rem,4vw,3rem)/1.1 var(--editorial);margin:15px 0}.xl-radar-subscribe p{margin-bottom:15px}
.xl-existing{padding:24px 0;line-height:1.55}.xl-existing>*{margin:30px 0;padding:0;max-width:100%}.xl-existing h2{font:700 clamp(1.7rem,4vw,3rem)/1.1 var(--editorial);margin-bottom:20px}.xl-existing h3{font:700 1.4rem/1.2 var(--editorial);margin:16px 0}.xl-existing p{margin:12px 0;max-width:80ch}.xl-existing a{text-decoration:underline;text-underline-offset:4px}.xl-existing img{max-height:480px;object-fit:contain}.xl-existing .hg-besoin-qui{display:block}.xl-existing [class*="grid"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:24px}.xl-existing .nx-sticky{position:static}.xl-existing .nx-hero,.xl-existing .nx-scroll,.xl-existing .nx-topbar{display:none}.xl-existing .hg-bureau-entrees{display:grid;grid-template-columns:1fr 1fr;gap:20px}.xl-existing .hg-bureau-entrees a{padding:22px;background:var(--surface);border:1px solid var(--line)}
.xl-connect-question{border-top:1px solid var(--line)}.xl-connect-question summary{padding:20px 0;cursor:pointer;font-weight:700;list-style:none}.xl-connect-question summary b{margin-right:25px;color:var(--copper)}.xl-connect-question .connect-xl-paper{margin-left:20%;margin-bottom:24px}
.xl-page .academy-exercise .market-comparable-grid{display:block}.xl-page .academy-exercise .market-score{margin-top:25px}.xl-page .academy-exercise h2{font:700 2rem/1.1 var(--editorial)}
.xl-page .horizon-cases{padding:10px 0;color:var(--quiet)}
.xl-legacy{background:var(--canvas);color:var(--ink);font-family:var(--type)}
.xl-legacy h1,.xl-legacy .hg-intro h1,.xl-legacy .page-heading h1,.xl-legacy .nx-hero h1{font-family:var(--display);font-weight:900;text-transform:uppercase;letter-spacing:-.033em;color:var(--ink)}
.xl-legacy h2,.xl-legacy h3,.xl-legacy .hg-section h2{font-family:var(--editorial);color:var(--ink)}
.xl-legacy .hg-kicker,.xl-legacy .eyebrow{font-family:ui-monospace,monospace;color:var(--copper)}
.xl-legacy .hg-button,.xl-legacy .primary-link{background:var(--yellow);color:var(--black);border-color:var(--yellow)}
/* La palette XL prolonge les gabarits documentaires et les vrais formulaires. */
.xl-legacy main{background:var(--canvas)}
html:not(.hg-enhanced) .offer-story-controls,html:not(.hg-enhanced) .offer-chapters{display:none}
html:not(.hg-enhanced) .offer-scenes{display:block;overflow:visible}html:not(.hg-enhanced) .offer-scene{margin-bottom:20px}
@media(max-width:1279px){
 .hg-header .bar{grid-template-columns:1fr auto}.hg-header .wordmark{max-width:230px;border-right:0}.hg-header .hg-menu-button{display:flex;align-items:center;gap:18px;margin:12px;padding:10px 15px;border:1px solid #746554;background:transparent;color:var(--white);font:700 1rem var(--type)}
 .hg-header #hg-navigation{grid-column:1/-1;display:none;grid-template-columns:1fr;width:100%}.hg-header #hg-navigation.is-open{display:grid}.hg-header .xl-family{border-top:1px solid #74655480;border-right:0}
 .hg-header .xl-family>summary{min-height:62px;flex-direction:row;justify-content:flex-start;align-items:center;gap:18px;padding:16px;font-size:1.1rem}
 .hg-header .hg-mega{position:static;width:100%;grid-template-columns:1fr;box-shadow:none;border:0}.hg-header .xl-utilities{flex-wrap:wrap;justify-content:flex-start;gap:12px;padding:12px 16px}.hg-header .hg-pays .hg-mega{position:static}
 html:not(.hg-enhanced) .hg-header #hg-navigation{display:grid}html:not(.hg-enhanced) .hg-header .hg-menu-button{display:none}
 .xl-connect-question .connect-xl-paper{margin-left:0}
}
@media(max-width:760px){.xl-existing .hg-bureau-entrees{grid-template-columns:1fr}.xl-territory-cover{padding:25px}.xl-status span:first-child{width:100%}.xl-footer{margin-top:25px}.xl-page .academy-exercise .market-score-row{grid-template-columns:minmax(0,1fr) 38px 52px 38px}.xl-page .academy-exercise .market-score-columns{grid-template-columns:minmax(0,1fr) 38px 52px 38px}}
@media(forced-colors:active){.bar,.xl-family,.hg-header .hg-mega,.xl-territory-cover{border:1px solid CanvasText;background:Canvas;color:CanvasText}.wordmark img,.xl-hero-wordmark img{filter:none}.xl-family>summary[aria-current]{border-bottom:3px solid Highlight}.square{background:Highlight}.xl-entrance::after{background:Canvas}.primary{border:2px solid ButtonText}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.hg-footer.xl-footer{background:none;color:var(--ink);padding:22px 0;border:0;font-family:var(--type)}.xl-footer nav{display:flex;flex-wrap:wrap;gap:12px 24px;width:100%;border-top:1px solid var(--line);padding-top:16px}.xl-footer a{font:inherit}
.hg-header .hg-pays-liste{position:absolute;right:0;top:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:12px;min-width:200px;z-index:50}.hg-header .hg-pays-liste a{min-height:44px;display:flex;padding:10px;background:none;box-shadow:none;border:0}.hg-header .hg-pays-liste a:focus-visible{outline-color:var(--ink)}
.xl-product-page main>section,.xl-product-page main>div:not(.xl-character-head){margin-block:32px;line-height:1.5}.xl-product-page h2{font:700 clamp(1.7rem,4vw,3rem)/1.1 var(--editorial);margin:20px 0}.xl-product-page h3{font:700 1.4rem/1.2 var(--editorial)}.xl-product-page p{margin:12px 0;max-width:80ch}.xl-product-page .xl-character-copy p{margin:0}.xl-product-page main a{text-underline-offset:4px}.xl-product-page .primary-link{display:inline-block;margin-top:15px;padding:12px 18px;background:var(--yellow);color:var(--black)}.xl-product-page figure{margin:30px 0}.xl-product-page figure img{width:100%;max-height:450px;object-fit:cover}.xl-product-page .xl-head-character{margin:0}.xl-product-page .xl-head-character img{max-height:none}.xl-product-page figcaption{font:12px/1.5 ui-monospace,monospace;margin-top:8px}.xl-product-page figcaption span{display:block}.xl-product-page [class*="grid"],.xl-product-page .hg-bureau-entrees,.xl-product-page .bureau-scope{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:24px}.xl-product-page .offer-action{padding:28px;background:var(--surface);border-block:1px solid var(--line)}.xl-product-page .hg-bureau-cta a{display:inline-block;background:var(--yellow);color:var(--black);padding:12px;margin:8px 12px 8px 0}.xl-page .hg-comparatif{width:100%;border-collapse:collapse}.xl-page .hg-comparatif th,.xl-page .hg-comparatif td{padding:18px;text-align:left;border-bottom:1px solid var(--line)}.xl-page .hg-comparatif td span,.xl-page .hg-comparatif td small{display:block}.xl-page .hg-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.xl-page .hg-price-grid article{padding:20px;border-top:1px solid var(--line)}.xl-page .hg-price-grid p{margin:15px 0}.xl-page .hg-price{font:700 1.8rem var(--editorial)}
@media(max-width:760px){.xl-page .hg-comparatif thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.xl-page .hg-comparatif tr,.xl-page .hg-comparatif td,.xl-page .hg-comparatif th{display:block;width:100%}.xl-page .hg-comparatif td,.xl-page .hg-comparatif th{padding:12px 0}.xl-page .hg-price-grid{grid-template-columns:1fr}.hg-header .hg-pays-liste{position:static}.xl-page .xl-head-character img{object-fit:contain}}
/* Comportements éprouvés du site : aide, ancrage et repli au zoom. */
.hg-header .hg-aide-court{display:none}.hg-enhanced .hg-header.mast{position:sticky;top:0;background:var(--canvas)}
.xl-page .hg-aide-volet-fermer{min-height:44px;padding:8px 16px;border:1px solid var(--ink);background:none;font:600 1rem var(--type)}.xl-page .hg-aide-section{line-height:1.5}.xl-page .hg-aide-section p{margin:15px 0}.xl-page .hg-aide-section table{width:100%;border-collapse:collapse}.xl-page .hg-aide-section td,.xl-page .hg-aide-section th{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.xl-product-page .xl-head-character img{height:auto;max-height:420px}.xl-product-page video{max-width:100%;height:auto}.xl-product-page .nx-fond{width:100%}.xl-product-page .nx-pause{display:none}
.xl-page .hg-comparatif a,.xl-page .hg-bureau-entrees a{display:inline-flex;align-items:center;min-height:24px}.xl-page .hg-comparatif .hg-entrees span{white-space:nowrap}.xl-page .hg-comparatif td .hg-offre span{display:inline}
@media(max-width:1279px){.hg-header .bar{grid-template-columns:minmax(0,1fr) auto auto}.hg-header .hg-aide-court{display:flex;align-items:center;min-height:44px;padding:0 10px;color:var(--white);font:600 1rem var(--type);text-decoration:none}.hg-header:has(#hg-navigation.is-open){position:relative}.hg-header .xl-utilities .hg-aide{display:none}.hg-header .hg-menu-button{margin:8px}.hg-header .wordmark{padding-inline:12px}.hg-header .wordmark img{max-width:140px}}
@media(max-width:760px){.xl-product-page .xl-head-character img{max-height:250px}.xl-page .hg-comparatif td::before,.xl-page .hg-comparatif tbody th::before{content:attr(data-label);display:block;font:700 .7rem/1.4 ui-monospace,monospace;letter-spacing:.04em;margin-bottom:8px}.xl-page .hg-comparatif td,.xl-page .hg-comparatif th{border:0}.xl-page .hg-comparatif tr{border-bottom:1px solid var(--line);padding-block:18px}}
@media(min-width:701px) and (max-width:760px){.xl-page .hg-comparatif thead{position:static;clip-path:none;width:auto;height:auto;overflow:visible}.xl-page .hg-comparatif tr{display:table-row}.xl-page .hg-comparatif td,.xl-page .hg-comparatif th{display:table-cell;width:auto;padding:12px}.xl-page .hg-comparatif td::before,.xl-page .hg-comparatif tbody th::before{display:none}}
@media(max-height:450px){.hg-enhanced .hg-header.mast{position:relative}html{scroll-padding-top:16px}.hg-header .bar{min-height:60px}}
html:not(.hg-enhanced) .hg-aide-court{display:none}
html.hg-enhanced{scroll-padding-top:calc(var(--entete,120px) + 16px)}
.xl-door-audience{font-size:1rem!important;font-weight:400}
.xl-page .offer-family h2{overflow-wrap:anywhere;hyphens:manual;font-size:clamp(1.45rem,2.6vw,2.7rem)}
.xl-page .offer-family-advice{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.xl-page .offer-scene-copy h2{overflow-wrap:anywhere}
.xl-page .radar-horizon-feature .xl-note{grid-column:1/-1;color:var(--white)}
.xl-product-page .nx-appel .k{color:var(--copper)!important}
.xl-legacy .hg-button,.xl-legacy .primary-link{color:var(--black)!important}
@media(max-height:500px){html.hg-enhanced{scroll-padding-top:16px}.hg-enhanced .hg-header.mast{position:relative;top:auto}}

/* Le dialogue immobilise le document, y compris au-delà de la fin du volet. */
html:has(.hg-aide-volet[open]){overflow:hidden;scrollbar-gutter:stable}

.xl-connect-panels{min-width:0}.xl-page .connect-xl-paper{height:100%}
.xl-product-page .case-folio h2{font:750 clamp(2.7rem,5vw,5rem)/.99 var(--editorial)}
.xl-product-page .case-record h2{font-size:clamp(1.45rem,2.4vw,2.15rem)}
html:not(.hg-enhanced) .case-pagination,html:not(.hg-enhanced) .connect-xl-controls{display:none}

[hidden]{display:none!important}
html:not(.hg-enhanced) .hg-header .xl-utilities .hg-aide{display:inline-flex}
.xl-page .offer-family h2{overflow-wrap:normal}
.xl-page .offer-scene-copy h2{overflow-wrap:normal}

/* Les libellés longs gardent leurs mots entiers sur les petits formats. */
.passport-cover strong{font-size:min(clamp(1.2rem,2.6vw,2.1rem),var(--country-size,2.1rem));overflow-wrap:normal}
@media(max-width:380px){.xl-page .offer-family-advice h2{font-size:1.2rem}}
@media(min-width:761px){.xl-page .offer-scene-decide h2{font-size:clamp(2.8rem,4.5vw,5rem)}}
.xl-offer-details>summary{padding:20px 0;border-block:1px solid var(--line);font:700 1.1rem var(--type);cursor:pointer}
.xl-product-page .nx-trois{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:24px}

/* Relecture PR 87 : les liens de texte restent identifiables sans perception des couleurs. */
main p a,main li a,main dd a{text-decoration:underline;text-underline-offset:.2em}
@media(min-width:761px){.xl-page .offer-family-partners{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}}
.horizon-advance .xl-days{display:block;font:760 clamp(2.5rem,6vw,6.1rem)/.94 var(--editorial);letter-spacing:-.047em;margin:6px 0}
.radar-horizon-gap .xl-days{color:var(--yellow);font:760 clamp(1.7rem,3.2vw,2.85rem)/.94 var(--editorial);letter-spacing:-.04em;white-space:nowrap}
.xl-existing nav{display:flex;flex-wrap:wrap;gap:16px 28px}
.xl-existing [role=tablist]{display:flex;flex-wrap:wrap;gap:8px}
.xl-existing [role=tab]{padding:12px;background:var(--surface);border:1px solid var(--line);font:inherit;cursor:pointer}
.xl-existing [role=tab][aria-selected=true]{background:var(--yellow);color:var(--black)}
html:not(.hg-enhanced) .radar-controls,html:not(.hg-enhanced) .browser-controls{display:none}
/* Le carrousel hérité conserve ses mécanismes dans la palette XL. */
.coverflow{position:relative;height:465px;overflow:hidden;perspective:1200px;touch-action:pan-y}
.flow-card{position:absolute;top:30px;left:50%;width:315px;height:396px;margin-left:-157.5px;padding:0;border:1px solid var(--line);background:var(--surface);text-align:left;cursor:pointer;overflow:hidden}
.flow-card img{width:100%;height:220px;object-fit:cover}.flow-card-copy{display:flex;flex-direction:column;padding:16px}.flow-card-copy strong{font:650 1.8rem/1 var(--editorial)}.flow-card-copy small,.flow-card-copy em{margin:8px 0;font:400 .85rem/1.3 var(--type)}
.flow-card[data-position="0"]{z-index:3;transform:none}.flow-card[data-position="-1"]{z-index:2;transform:translateX(-315px) rotateY(31deg) scale(.79)}.flow-card[data-position="1"]{z-index:2;transform:translateX(315px) rotateY(-31deg) scale(.79)}
.browser-controls{display:flex;justify-content:center;align-items:center;gap:24px}.browser-controls button{width:44px;height:44px;border:1px solid var(--line);background:var(--surface);font:inherit;cursor:pointer}
html:not(.hg-enhanced) .coverflow{height:auto;display:grid;gap:20px}html:not(.hg-enhanced) .flow-card{position:static;margin:0;width:100%;height:auto;transform:none}
@media(max-width:760px){.flow-card{width:258px;height:350px;margin-left:-129px}.flow-card img{height:183px}.coverflow{height:410px}.flow-card[data-position="-1"]{transform:translateX(-220px) rotateY(34deg) scale(.73)}.flow-card[data-position="1"]{transform:translateX(220px) rotateY(-34deg) scale(.73)}}

@media(max-width:760px){
 .room-info,.radar-folio,.case-folio,.academy-exercise,.library-barometer,.horizon-signal{background-image:url('/premium/xl/assets/paper-mobile.webp')}
 .role-plan-image{background-image:url('/premium/xl/assets/plan-mobile.webp')}
 .passport-cover{background-image:linear-gradient(90deg,#09050072,transparent 9% 88%,#0c06003a),url('/premium/xl/assets/passport-leather-mobile.webp')}
}
/* Catalogue rétabli : une entrée lisible par formation, avec les filets et numéros XL. */
.xl-existing .hg-launch-courses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px;margin:24px 0}
.xl-existing .hg-launch-courses a{display:grid;grid-template-columns:3ch minmax(0,1fr);gap:16px;padding:18px 0;border-top:1px solid var(--line);align-items:baseline}
.xl-existing .hg-launch-courses a span{font:700 .85rem ui-monospace,monospace;color:var(--copper)}
@media(max-width:760px){.xl-existing .hg-launch-courses{grid-template-columns:1fr}}
