/* Polices hébergées localement (Inter et Source Serif 4, licence OFL) */
@font-face{font-family:'XP Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('inter-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'XP Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('inter-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'XP Source Serif';font-style:italic;font-weight:400 700;font-display:swap;src:url('source-serif-4-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'XP Source Serif';font-style:italic;font-weight:400 700;font-display:swap;src:url('source-serif-4-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'XP Source Serif';font-style:normal;font-weight:400 700;font-display:swap;src:url('source-serif-4-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'XP Source Serif';font-style:normal;font-weight:400 700;font-display:swap;src:url('source-serif-4-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ==========================================================================
   X-PRESSION MÉDIA — Typographie éditoriale
   Inter : titres, menus, chapôs, catégories, interface.
   Source Serif 4 : corps des articles.
   Helvetica Neue reste la police de marque : logo, signature, pied de page,
   bandeau newsletter, encarts Academy et pop-ups ne sont pas visés ici.
   Tailles fluides : valeur mobile à 390 px, valeur ordinateur à 1200 px.
   ========================================================================== */
:root{
  --xpt-ui:"XP Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --xpt-read:"XP Source Serif",Georgia,"Times New Roman",serif;
  --xpt-ink:#0a0a0a;
  --xpt-text:#222222;
  --xpt-meta:#5c6066;          /* gris AA sur blanc et gris clair */
  --xpt-gold-text:#855f00;     /* jaune foncé AA pour le texte sur fond clair */

  --xpt-hero:clamp(24px,20.15px + .988vw,32px);
  --xpt-hero-rub:clamp(21px,17.6px + .86vw,28px);
  --xpt-card:clamp(16px,15.5px + .124vw,17px);
  --xpt-section:clamp(24px,22.1px + .494vw,28px);
  --xpt-h1:clamp(30px,24.2px + 1.482vw,42px);
  --xpt-chapo:clamp(19px,18px + .247vw,21px);
  --xpt-body:clamp(18px,17.5px + .124vw,19px);
  --xpt-h2:clamp(23px,21.55px + .371vw,26px);
  --xpt-h3:clamp(20px,19px + .247vw,22px);
}

/* ---------- 1. Interface : menu, fil « À la minute », boutons d'en-tête ---------- */
html body .hfe-nav-menu a.hfe-menu-item,
html body .hfe-nav-menu a.hfe-sub-menu-item{
  font-family:var(--xpt-ui)!important; font-weight:600!important; line-height:1.3!important; letter-spacing:0!important;
}
@media (min-width:1025px){
  html body .hfe-nav-menu a.hfe-menu-item,
  html body .hfe-nav-menu a.hfe-sub-menu-item{ font-size:15px!important; }
}
html body .elementor-element-00799b6 .elementor-button,
html body .xp-breves-cta .elementor-button{
  font-family:var(--xpt-ui)!important; font-weight:600!important; letter-spacing:.02em!important;
}
html body.home .xp-telex-label{ font-family:var(--xpt-ui); font-weight:700; }
html body.home .xp-telex-item{ font-family:var(--xpt-ui); font-weight:500; }
html body.home .xp-telex-item .xp-telex-cat{ font-family:var(--xpt-ui); font-weight:600; font-size:12px; }

/* ---------- 2. Accueil : titres de rubrique ---------- */
html body.home .xp-wrap a.xp-hero-sectitle,
html body.home .elementor-15917 .elementor-widget-heading .elementor-heading-title{
  font-family:var(--xpt-ui)!important; font-size:var(--xpt-section)!important; font-weight:700!important;
  line-height:1.2!important; letter-spacing:0!important;
}
/* signature de marque : reste en Helvetica Neue */
html body.home .elementor-15917 #xp-intro .elementor-heading-title{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important; font-size:clamp(3.2rem,7vw,6.2rem)!important; font-weight:800!important; line-height:1!important;
}

/* ---------- 3. Titres sur image ---------- */
html body.home .xp-hero-lead::after,
html body .xpr-rubrique .xpr-hero-media::after{
  background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.15) 30%,rgba(0,0,0,.45) 60%,rgba(0,0,0,.85) 100%);
}
html body.home #xp-hero a.xp-hero-lead h2,
html body.home .xp-alaune-rubric a.xp-hero-lead h2,
html body .xpr-rubrique .xpr-hero-title{
  font-family:var(--xpt-ui); font-weight:600; line-height:1.25; letter-spacing:0;
  text-shadow:0 2px 5px rgba(0,0,0,.6);
}
html body.home #xp-hero a.xp-hero-lead h2{ font-size:var(--xpt-hero); -webkit-line-clamp:6; }
html body .xpr-rubrique .xpr-hero-title{ font-size:var(--xpt-hero); }
html body.home .xp-alaune-rubric a.xp-hero-lead h2{ font-size:var(--xpt-hero-rub); -webkit-line-clamp:3; }
html body.home .xp-hero-lead p,
html body .xpr-rubrique .xpr-hero-excerpt{
  font-family:var(--xpt-ui); font-size:15px; line-height:1.5; color:#f2f2f0!important;
  text-shadow:0 1px 3px rgba(0,0,0,.7);
}
html body.home .xp-hero-lead .xp-kicker{ text-shadow:0 1px 3px rgba(0,0,0,.8); }
html body.home .xp-hero-lead .xp-meta{ color:#e0e0dd!important; text-shadow:0 1px 3px rgba(0,0,0,.7); }
html body .xpr-rubrique .xpr-hero .xpr-meta{ color:#e0e0dd; }
/* renfort doux derrière le texte seul, pour les photos très claires (aucun bord visible) */
html body.home .xp-hero-lead-body, html body .xpr-rubrique .xpr-hero-body{
  left:0; right:0; padding-top:56px;
  background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.35) 76px,rgba(0,0,0,.35) 100%);
}
@media (max-width:1024px){
  html body.home .xp-hero-lead-body, html body .xpr-rubrique .xpr-hero-body{
    background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.5) 76px,rgba(0,0,0,.5) 100%);
  }
}
/* petits écrans : le texte monte haut dans la photo, le dégradé commence donc plus tôt */
@media (max-width:767px){
  html body.home .xp-hero-lead::after,
  html body .xpr-rubrique .xpr-hero-media::after{
    background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 25%,rgba(0,0,0,.62) 50%,rgba(0,0,0,.88) 100%);
  }
  /* à valider : sans le résumé, la photo reste visible sur mobile */
  html body.home .xp-hero-lead p, html body .xpr-rubrique .xpr-hero-excerpt{ display:none; }
  html body .xpr-rubrique .xpr-hero-media{ aspect-ratio:auto; min-height:360px; height:360px; }
  html body .xpr-rubrique .xpr-hero-media img{ height:100%!important; max-width:none; object-fit:cover; }
  html body .xpr-rubrique .xpr-hero-body{ padding-bottom:18px; }
}

@media (max-width:380px){ html body.home #xp-hero a.xp-hero-lead h2{ font-size:22px; -webkit-line-clamp:7; } }

@media (max-width:1024px){ html body.home #xp-hero a.xp-hero-lead{ min-height:420px; } }

/* ---------- 4. Cartes secondaires ---------- */
html body.home .xp-hero-item h3,
html body.home .xp-alaune-rubric .xp-hero-item h3,
html body .xpr-rubrique .xpr-medium-title,
html body .xpr-rubrique .xpr-list-title,
html body .xp-breve-title,
html body.single-post .xp-card__title,
html body .blog-entry-title, html body .blog-entry-title a,
html body .search-entry-title, html body .search-entry-title a{
  font-family:var(--xpt-ui); font-size:var(--xpt-card)!important; font-weight:600!important;
  line-height:1.3!important; letter-spacing:0!important;
}
html body.home .xp-alaune-rubric .xp-hero-item h3{ -webkit-line-clamp:3; }
html body .xpr-rubrique .xpr-list-title{ -webkit-line-clamp:3; }
@media (max-width:1024px){
  html body.home .xp-hero-item h3,
  html body.home .xp-alaune-rubric .xp-hero-item h3{ -webkit-line-clamp:4; }
}
@media (max-width:767px){
  html body .xpr-rubrique .xpr-list-title{ -webkit-line-clamp:5; }
  html body.home .xp-alaune-rubric a.xp-hero-lead h2{ -webkit-line-clamp:5; }
}

/* ---------- 5. Pages de rubrique, brèves, archives ---------- */
html body .xpr-rubrique, html body .xp-breve-excerpt, html body .xp-breves-intro, html body .xp-breves-empty,
html body .blog-entry-summary, html body .search-entry-summary{ font-family:var(--xpt-ui); }
html body .xpr-rubrique .xpr-title, html body .page-header .page-header-title{
  font-family:var(--xpt-ui); font-size:var(--xpt-section); font-weight:700; line-height:1.2; letter-spacing:0;
}
html body .xpr-rubrique .xpr-desc, html body .xpr-rubrique .xpr-empty{ font-family:var(--xpt-ui); }
html body .xpr-rubrique .xpr-pagination .page-numbers{ font-family:var(--xpt-ui); font-weight:600; }
html body .xp-breve-excerpt{ font-size:15px; line-height:1.55; color:var(--xpt-text); }

/* ---------- 6. Dates, auteurs, catégories ---------- */
html body.home .xp-meta, html body.home .xp-meta span,
html body.home .xp-alaune-rubric .xp-hero-item .xp-meta,
html body .xpr-rubrique .xpr-meta,
html body .xp-breve-meta, html body .xp-breve-meta time,
html body.single-post .xp-meta, html body.single-post .xp-meta .xp-item, html body.single-post .xp-meta .xp-author,
html body ul.meta li, html body ul.meta li a{
  font-family:var(--xpt-ui)!important; font-size:13px!important; font-weight:400!important; line-height:1.4!important; letter-spacing:0!important;
}
html body.home .xp-hero-item .xp-meta, html body.home .xp-hero-item .xp-meta span,
html body .xpr-rubrique .xpr-medium .xpr-meta, html body .xpr-rubrique .xpr-list .xpr-meta{ color:var(--xpt-meta)!important; }
html body .xp-breve-meta, html body .xp-breve-meta time{ color:var(--xpt-meta); }
html body.home .xp-kicker, html body .xpr-rubrique .xpr-kicker,
html body.single-post .xp-meta .xp-cat, html body.single-post .xp-card__cat{
  font-family:var(--xpt-ui)!important; font-size:12px!important; font-weight:600!important; line-height:1.3!important;
}
html body.home .xp-hero-item .xp-kicker,
html body .xpr-rubrique .xpr-kicker{ color:var(--xpt-gold-text)!important; }
/* survols : jaune foncé lisible sur fond clair */
html body.home .xp-hero-item:hover h3,
html body.home .wpr-grid-item-title .inner-block a:hover,
html body.home .xp-wrap a.xp-hero-sectitle:hover{ color:var(--xpt-gold-text)!important; }

/* ---------- 7. Article ---------- */
html body.single-post{ --xp-read:744px; --xp-text:#222222; }
html body.single-post .elementor-widget-theme-post-title h1.elementor-heading-title{
  font-family:var(--xpt-ui); font-size:var(--xpt-h1); font-weight:700; line-height:1.2; letter-spacing:0;
}
html body.single-post .elementor-widget-theme-post-content > .elementor-widget-container{
  font-family:var(--xpt-read); color:var(--xpt-text); font-optical-sizing:auto;
}
html body.single-post .elementor-widget-theme-post-content p,
html body.single-post .elementor-widget-theme-post-content li{
  font-family:var(--xpt-read); font-size:var(--xpt-body)!important; line-height:1.7!important; color:var(--xpt-text);
}
html body.single-post .elementor-widget-theme-post-content p.wp-block-paragraph,
html body.single-post .elementor-widget-theme-post-content > .elementor-widget-container > p{ margin:0 0 1.35em; }
/* titre resserré pour ne plus passer sous le sommaire latéral */
@media (min-width:1025px){ html body.single-post .elementor-widget-theme-post-title h1.elementor-heading-title{ max-width:780px; margin-inline:auto; text-wrap:balance; } }
/* chapô */
html body.single-post .elementor-widget-theme-post-content > .elementor-widget-container > p:first-of-type{
  font-family:var(--xpt-ui); font-size:var(--xpt-chapo)!important; font-weight:500; line-height:1.5!important;
  color:var(--xpt-ink); margin-bottom:1.6em;
}
html body.single-post .elementor-widget-theme-post-content > .elementor-widget-container > p:first-of-type strong{ font-weight:600; }
html body.single-post .elementor-widget-theme-post-content h2,
html body.single-post .elementor-widget-theme-post-content h3,
html body.single-post .elementor-widget-theme-post-content h4{ font-family:var(--xpt-ui); letter-spacing:0; }
html body.single-post .elementor-widget-theme-post-content h2{ font-size:var(--xpt-h2); font-weight:700; line-height:1.3; }
html body.single-post .elementor-widget-theme-post-content h3{ font-size:var(--xpt-h3); font-weight:600; line-height:1.3; }
html body.single-post .elementor-widget-theme-post-content :is(h2,h3,h4) strong{ font-weight:inherit; }
/* citations et listes */
html body.single-post .elementor-widget-theme-post-content blockquote{
  font-family:var(--xpt-read); font-size:calc(var(--xpt-body) * 1.1); font-style:italic; line-height:1.6; color:var(--xpt-text);
}
html body.single-post .elementor-widget-theme-post-content blockquote p{ font-size:inherit!important; line-height:1.6!important; margin-bottom:.6em; }
html body.single-post .elementor-widget-theme-post-content blockquote cite{ font:400 13px/1.5 var(--xpt-ui); font-style:normal; color:var(--xpt-meta); }
html body.single-post .elementor-widget-theme-post-content ul > li::before{ top:.68em; }
/* légendes */
html body.single-post .xp-caption,
html body.single-post .elementor-widget-theme-post-content figcaption,
html body .wp-caption-text, html body .xpr-rubrique .xpr-hero-caption{
  font-family:var(--xpt-ui); font-size:13px!important; font-weight:400; line-height:1.5!important; color:var(--xpt-meta);
}
/* sommaire et articles liés */
html body .xp-toc{ font-family:var(--xpt-ui); }
html body .xp-toc__item a{ font-size:15px; line-height:1.4; }
/* sommaire latéral : tailles d'origine, plus discret et plus facile à glisser sous l'en-tête */
html body .xp-toc--rail .xp-toc__title{ font-size:11.5px; }
html body .xp-toc--rail .xp-toc__item a{ font-size:14.5px; line-height:1.35; }
html body .xp-toc--rail .xp-toc__item--h3 a{ font-size:13.5px; }
html body.single-post .elementor-widget-theme-post-content .xp-toc__item{ font-family:var(--xpt-ui); font-size:15px!important; line-height:1.4!important; }
html body.single-post .xp-related__head h2{ font-family:var(--xpt-ui); font-weight:700; letter-spacing:0; }

/* ---------- 8. Contraste (WCAG AA) ---------- */
/* bandeau newsletter : le texte blanc sur jaune (1,6:1) passe en noir (12:1) */
html body .elementor .elementor-element.xpf-nl-desc.elementor-widget,
html body .elementor .elementor-element.xpf-nl-desc.elementor-widget p{ color:#0a0a0a!important; }
