/* IDP - évolution de charte validée le 25 octobre 2026. */
:root,html,body{--serif:'Cormorant Garamond',Georgia,serif!important;--sans:'Inter',Arial,sans-serif!important;--wp--preset--font-family--editorial:'Cormorant Garamond',Georgia,serif!important;--wp--preset--font-family--body:'Inter',Arial,sans-serif!important;--ink:#10162F;--paper:#FFFFFF;--gold:#B2985F;--gold-text:#746137;--line:#E4DFD3;--idp-gold:#B2985F;--idp-ivory:#F9F7F3;--idp-beige:#E8E2D1}
body{font-family:var(--sans)!important;background:#fff;color:var(--ink)}
body :is(h1,h2,h3){font-family:var(--serif)!important;font-weight:600;letter-spacing:-.015em}
body :is(input,select,textarea,button,.idp-nav,.idp-breadcrumb,.idp-toc,.idp-page-location,.idp-page-trail,.idp-footer-nav){font-family:var(--sans)!important}
body .idp-hero h1{font-family:var(--serif)!important;font-size:clamp(42px,4.8vw,70px);font-weight:600;line-height:1.06;letter-spacing:-.025em}
body .idp-page-header h1{font-weight:600;line-height:1.12}
body :is(.idp-content h2,.idp-home-section>h2,.idp-ux25-overview>h2){font-weight:600;line-height:1.15}
body :is(.idp-eyebrow,.idp-page-eyebrow,.idp-rv25-eyebrow,.idp-unit-activities25-label){color:var(--gold-text)!important}
body :is(.idp-orientation-teaser,.idp-project-paths,.idp-rv25-fold>summary,.idp-ux25-details>summary){background:var(--idp-ivory)}
body .idp-page-header{background:var(--idp-ivory);border-bottom-color:var(--line)}
body :is(.idp-ux25-contact-address,.idp-rv25-related){background:var(--idp-ivory)}
body :is(.idp-unit-activities25,.idp-reading-review aside){border-left-color:var(--gold)}
body :is(.idp-band,.idp-footer-top){border-top:2px solid var(--gold)}
body .idp-button{background:var(--gold);border-color:var(--gold);color:var(--ink)!important;font-weight:600}
body .idp-button:hover{background:#E8E2D1;border-color:#B2985F;color:#10162F!important}
body :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #746137;outline-offset:4px}
body ::selection{background:#E8E2D1;color:#10162F}
body svg :is([fill='#8B6F3E' i],[fill='#C9B27C' i]){fill:#B2985F!important}
body svg :is([stroke='#8B6F3E' i],[stroke='#C9B27C' i]){stroke:#B2985F!important}
.idp-charte26-vector{display:block;width:100%;height:auto;max-width:100%}
@media(max-width:760px){body .idp-hero h1{font-size:clamp(38px,9.5vw,50px);line-height:1.08}body .idp-content :is(p,li){line-height:1.7}body .idp-button{white-space:normal;text-align:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Le titre accessible masqué ne doit pas élargir la page. */
@media(min-width:761px){html body.idp-parcours22 .idp-page-header.idp-unit-header25-same-title>h1{width:1px!important;max-width:1px!important;min-width:0!important}}
body .idp-nav .idp-institut26-groups{width:min(720px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
/* Agrandissement demandé du nom et de la signature, sans toucher à l'étoile. */
.idp-brand-valide25 .idp-logo25-horizontal svg>g[data-idp-wording-font]{transform-box:fill-box;transform-origin:left center;transform:translateY(84.6406078338623px) scale(1.25)}




/* IDP — Finition de déploiement, 25 octobre 2026. */
/* Finition IDP — prêt à intégrer au thème brouillon uniquement. */
html body.idp-parcours22 :is(a.idp-button,button.idp-button,input.idp-button){background:#B2985F!important;border-color:#B2985F!important;color:#10162F!important}
html body.idp-parcours22 :is(a.idp-button,button.idp-button,input.idp-button):hover{background:#E8E2D1!important;border-color:#B2985F!important;color:#10162F!important}
html body.idp-parcours22 :is(.idp-ux25-unit,.idp-project-card,.idp-visual22,.idp-ux25-details,.idp-rv25-fold>summary){background:#F9F7F3!important}
html body.idp-parcours22 :is(.idp-orientation-teaser,.idp-ux25-contact-address){background:#E8E2D1!important}
html body.idp-parcours22 :is(.idp-navigation24 select,.idp-rv25-related select){background:#F9F7F3!important;color:#10162F}
html body.idp-parcours22 :is(.idp-ux25-menu-title,.idp-unit-activities25-label,.idp-rv25-eyebrow,.idp-program-meta,.idp-catalogue-format25){color:#746137!important}
/* Emblème agrandi de 270 à 310 unités, toujours centré en (170,170).
   Texte à partir de x=350 : la réserve demeure positive, sans collision. */
.idp-brand-valide25 :is(.idp-logo25-horizontal,.idp-logo25-compact) svg>g:first-child{transform-box:view-box;transform-origin:0 0;transform:translate(15px,15px) scale(.6739130434782609)}
html body .idp-page-bar{top:var(--idp-admin-offset,0px)}
html body .idp-eight-reader-nav.idp-navigation24{position:sticky!important;top:calc(var(--idp-admin-offset,0px) + var(--idp-pagebar-height,41px))!important;z-index:25;background:#fff;min-width:0;padding:12px 0 15px;border-bottom:1px solid #E4DFD3;isolation:isolate}
html body .idp-eight-reader-nav.idp-navigation24 label{min-width:0}
html body .idp-eight-reader-nav.idp-navigation24 select{max-width:100%;min-width:0;min-height:44px;font-family:Inter,Arial,sans-serif;background:#F9F7F3;color:#10162F}
.idp-reader-progress26{position:absolute;bottom:0;left:0;right:0;height:3px;background:#E8E2D1;pointer-events:none}
.idp-reader-progress26::before{content:'';display:block;width:calc(var(--idp-reader-progress,0)*100%);height:100%;background:#B2985F}
html body main :is(h2,h3,[id]){scroll-margin-top:calc(var(--idp-admin-offset,0px) + var(--idp-pagebar-height,41px) + var(--idp-reader-height,78px) + 20px)}
@media(max-width:760px){
 html body .idp-eight-reader-nav.idp-navigation24{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:10px 0 13px}
 html body .idp-eight-reader-nav.idp-navigation24 label{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;font-size:13px}
 html body .idp-eight-reader-nav.idp-navigation24 select{width:100%;font-size:14px}
 html body .idp-eight-reader-nav.idp-navigation24 .idp-rubric-count22{justify-self:end;font-size:12px}
}

/* La marge des ancres inclut deja toutes les barres fixes. */
html{scroll-padding-top:0!important}

/* Priorite sur les anciennes marges propres aux pages de formations. */
html body.idp-parcours22 main :is(h2,h3,[id]){scroll-margin-top:calc(var(--idp-admin-offset,0px) + var(--idp-pagebar-height,41px) + var(--idp-reader-height,78px) + 20px)!important}

html body[class] main [id][id]{scroll-margin-top:calc(var(--idp-admin-offset,0px) + var(--idp-pagebar-height,41px) + var(--idp-reader-height,78px) + 20px)!important}

:root body.idp-finition24 .idp-content :is(h2,h3,[id])[id]{scroll-margin-top:calc(var(--idp-admin-offset,0px) + var(--idp-pagebar-height,41px) + var(--idp-reader-height,78px) + 20px)!important}

/* Revue exhaustive des 98 pages — 25 octobre 2026. */
:root body[class] :is(.idp-ux25-menu-title,.idp-ux25-unit>strong,.idp-rv25-program-meta,.idp-eight-link-note,.idp-toc>strong){color:#746137!important}
html body :is(.idp-pillar,.idp-domain-feature){border-top-color:#B2985F!important}
:root body[class] :is(.idp-orientation-teaser,.idp-orientation,.idp-toc,.idp-bachelor23-tools button){border-color:#B2985F!important}
:root body[class] .idp-footer .idp-footer-cta{background:#B2985F!important;border-color:#B2985F!important;color:#10162F!important}
:root body[class] .idp-footer .idp-footer-cta:hover{background:#E8E2D1!important}
html body nav[aria-label="Lecture de la preproduction"]{font-family:Inter,Arial,sans-serif!important;border-color:#B2985F!important}

html body .idp-domain-links>a span{color:#B2985F!important}
html body .idp-results>a{border-top-color:#B2985F!important}

/* Reserver la place de l’embleme vectoriel aux titres longs. */
@media(min-width:761px){:root body.idp-finition24 .idp-page-header:has(.idp-page-symbol)>h1{max-width:calc(100% - 160px)!important;text-wrap:balance}}

/* Logo complet plus lisible dans l’en-tete — 25 octobre 2026. */
@media(min-width:1051px){:root body .idp-header .idp-brand-valide25{width:clamp(330px,calc(100vw - 720px),540px)}}
@media(min-width:761px) and (max-width:1050px){:root body .idp-header .idp-brand-valide25{width:420px}}

/* Centrer l’embleme sur le titre et les paragraphes, hors boutons. */
@media(min-width:761px){html body .idp-hero>.idp-hero-symbol{transform:translateY(var(--idp-hero-emblem-shift,0px))}}

/* Accroche validée le 27 octobre : trois phrases, trois lignes sur ordinateur. */
@media(min-width:1000px){
 html body.home .idp-hero,html body.page-id-678 .idp-i18n-hero{grid-template-columns:minmax(0,1fr) clamp(180px,17vw,230px)!important;column-gap:36px!important;row-gap:0!important;align-items:start!important}
 html body.home .idp-hero>div:first-child,html body.page-id-678 .idp-i18n-hero>.idp-i18n-copy{display:contents!important}
 html body.home .idp-hero>div:first-child>*,html body.page-id-678 .idp-i18n-hero>.idp-i18n-copy>*{grid-column:1!important}
 html body.home .idp-hero h1,html body.page-id-678 .idp-i18n-hero h1{grid-row:1!important;align-self:center!important;max-width:none!important;width:auto!important;font-size:clamp(34px,3.8vw,54px)!important;line-height:1.12!important;letter-spacing:-.025em!important;white-space:nowrap!important;margin:0!important}
 html body.home .idp-hero>.idp-hero-symbol,html body.page-id-678 .idp-i18n-hero>.idp-i18n-symbol{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:clamp(180px,17vw,230px)!important;height:auto!important;max-width:100%!important;margin:0!important;transform:none!important}
 html body.home .idp-hero .idp-peace-signature,html body.page-id-678 .idp-i18n-hero .idp-peace-signature{margin-top:22px!important}
}
