/* The blog home (/blog/, Elementor page 27415): tighter spacing between its sections and lighter category tiles. Added by
   scripts/clean_pages.mjs (cleanHome). The values are the site's own: navy #2F327D (--e-global-color-585c903), periwinkle
   #849BFF (--e-global-color-a07b781), DM Sans / Nunito Sans, the 48px radius of the tiles. */

/* --- 1. the hero: its full-screen height is kept (user, 2026-11-03); only its intro is a little wider ------------- */
.elementor-27415 .elementor-element.elementor-element-5c479cc { padding-top: 1.75rem !important; max-width: 60rem; margin-inline: auto !important; }

/* --- 2. the categories: less space above, a smaller gap under the title ----------------------------------------------- */
.elementor-27415 .elementor-element.elementor-element-580d0dfd { --padding-top: 1rem !important; }
.elementor-27415 .elementor-element.elementor-element-f2f0041 { margin-bottom: 1.25rem !important; }
.elementor-27415 .elementor-element.elementor-element-966b7e7 { padding-bottom: 2.5rem !important; font-size: 1.375rem !important; line-height: 1.6 !important; max-width: 46rem; }
.elementor-27415 .elementor-element.elementor-element-966b7e7-a { font-size: 1.375rem !important; line-height: 1.6 !important; max-width: 46rem; }

/* the category tiles: as tall as their text (no fixed height), the name, a short line in navy, the detail in grey, the
   « N thèmes » at the foot — the whole tile lifts on hover */
.elementor-27415 .matiere { --e-con-grid-template-rows: auto !important; align-items: stretch; }
.elementor-27415 .e-con.matiere-box {
  --min-height: 0 !important;
  --justify-content: flex-start !important;
  --align-items: stretch !important;
  --gap: .75rem !important;
  --padding-top: 2rem !important;
  --padding-bottom: 1.75rem !important;
  --padding-left: 2rem !important;
  --padding-right: 2rem !important;
  border: 1px solid rgb(132 155 255 / .18);
  box-shadow: 0 10px 30px rgb(132 155 255 / .10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.elementor-27415 .e-con.matiere-box:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgb(132 155 255 / .20); }
.elementor-27415 .matiere-box .overlay { --gap: 0.45rem !important; --padding-top: 0 !important; --padding-bottom: 0 !important; --padding-left: 0 !important; --padding-right: 0 !important; }
.elementor-27415 .matiere-box .elementor-widget-heading h3,
.elementor-27415 .matiere-box .elementor-widget-heading h3 a { font-size: 1.25rem !important; line-height: 1.3 !important; }
.elementor-27415 .matiere-box .elementor-widget-text-editor { font-size: 1rem !important; line-height: 1.6 !important; }
.elementor-27415 .matiere-box .elementor-widget-text-editor p { margin: 0 !important; }
.elementor-27415 .matiere-box .elementor-widget-text-editor p:first-child { color: var(--e-global-color-585c903, #2F327D); font-weight: 700; font-size: 1.0625rem; }
.elementor-27415 .matiere-box .elementor-widget-text-editor p + p { margin-top: .3rem !important; }
.elementor-27415 .matiere-box > .e-con:last-child { margin-top: auto; padding-top: 0.25rem; }

/* --- 3. the articles: the same rhythm as the categories ------------------------------------------------------------- */
.elementor-27415 .elementor-element.elementor-element-cc0f047 { --padding-top: 4.5rem !important; --padding-bottom: 1rem !important; }
.elementor-27415 .elementor-element.elementor-element-6d74651e { margin-bottom: 1.25rem !important; }

@media (prefers-reduced-motion: reduce) {
  .elementor-27415 .e-con.matiere-box { transition: none; }
  .elementor-27415 .e-con.matiere-box:hover { transform: none; }
}
@media (max-width: 1100px) {
  .elementor-27415 .elementor-element.elementor-element-580d0dfd { --padding-top: 2rem !important; }
  .elementor-27415 .elementor-element.elementor-element-cc0f047 { --padding-top: 3rem !important; }
}
@media (max-width: 767px) {
  .elementor-27415 .elementor-element.elementor-element-966b7e7,
  .elementor-27415 .elementor-element.elementor-element-966b7e7-a { font-size: 1.0625rem !important; padding-bottom: 1.5rem !important; }
  .elementor-27415 .e-con.matiere-box { --padding-top: 0.55rem !important; --padding-bottom: 0.25rem !important; --padding-left: 1.25rem !important; --padding-right: 1.25rem !important; }
  .elementor-27415 .matiere { --e-con-grid-template-columns: 1fr !important; }
}

/* the article cards: the text block hugs its content (Elementor left ~4rem empty under the buttons) */
.elementor-27415 .e-con:has(> .pp-card-actions) {
  --gap: .275rem !important;
  --padding-top: 0rem !important;
  --padding-bottom: 0.75rem !important;
  --justify-content: flex-start !important;
  --min-height: 0 !important;
}
.elementor-27415 .pp-card-actions { margin-top: 0.75rem; }

/* --- the article of the moment, pinned under the hero ------------------------------------------------------------- */
.e-con.pp-featured { --padding-top: 0rem; --padding-bottom: 1rem; --padding-left: 1.5rem; --padding-right: 1.5rem; margin-top: -4rem; position: relative; z-index: 1; }
.pp-featured .elementor-widget-text-editor { width: 100%; max-width: 80rem; margin-inline: auto; }
.pp-featured-card { display: block; box-sizing: border-box; width: min(100% - 3rem, 80rem); margin-inline: auto; overflow: hidden; border-radius: 2.25rem; background: #F3F5FF; text-decoration: none; box-shadow: 0 18px 40px rgb(132 155 255 / .18); transition: transform .25s ease, box-shadow .25s ease; }
.pp-featured-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgb(132 155 255 / .26); }
.pp-featured-img { position: relative; display: block; aspect-ratio: 16 / 4.5; background: linear-gradient(135deg, #849BFF, #2F327D) center / cover no-repeat; }
.pp-featured-badge { position: absolute; top: 1.5rem; left: 1.75rem; padding: .375rem .875rem; border-radius: 96rem; background: var(--e-global-color-a07b781, #849BFF); color: #fff; font: 700 .8125rem/1.2 "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.pp-featured-arrow { position: absolute; top: 1.25rem; right: 1.5rem; color: #fff; }
.pp-featured-arrow svg { width: 2.5rem; height: 2.5rem; }
.pp-featured-body { display: block; padding: 1.5rem 1.75rem 1.75rem; }
.pp-featured-title { display: block; font: 700 clamp(1.25rem, 2.2vw, 2rem)/1.25 "DM Sans", sans-serif; color: var(--e-global-color-585c903, #2F327D); }
.pp-featured-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem; font: 500 1rem/1.4 "Nunito Sans", sans-serif; color: var(--e-global-color-a07b781, #849BFF); }
.pp-featured-card:focus-visible { outline: 2px solid var(--e-global-color-585c903, #2F327D); outline-offset: 4px; }
@media (max-width: 767px) {
  .e-con.pp-featured { margin-top: -2rem; --padding-left: 1rem; --padding-right: 1rem; }
  .pp-featured-card { border-radius: 1.5rem; }
  .pp-featured-img { aspect-ratio: 16 / 8; }
  .pp-featured-body { padding: 1.125rem 1.25rem 1.25rem; }
}


/* --- the Prime Profs band (user, 2026-11-03): the site's own look (periwinkle gradient, navy uppercase title,
   periwinkle text, the teacher on the right) kept simple: one short sentence, a low panel, the picture inside it. -- */
.e-con.pp-band > .e-con-inner > .e-con:first-child,
.e-con.pp-band > .e-con:first-child { --padding-top: 1.5rem !important; --padding-bottom: 0.5rem !important; --gap: 0.5rem !important; }
.pp-band .elementor-widget-text-editor { --container-widget-width: 36rem !important; width: 100% !important; max-width: 36rem !important; }
.pp-band .elementor-widget-image { align-self: flex-end !important; }
.pp-band .elementor-widget-image img { max-height: 25rem; width: auto; object-fit: contain; display: block; }
@media (max-width: 1100px) {
  .e-con.pp-band > .e-con-inner > .e-con:first-child,
  .e-con.pp-band > .e-con:first-child { --padding-top: 2rem !important; --padding-bottom: 2rem !important; }
}

/* « Nos conseils et guides à découvrir » on a phone (user, 2026-11-03): side margins, a space between the title's two
   parts, and room between the title and the text */
@media (max-width: 767px) {
  .elementor-27415 .elementor-element.elementor-element-cc0f047 { --padding-left: 1rem !important; --padding-right: 1rem !important; }
  .elementor-27415 .elementor-element-cc0f047 .elementor-widget-heading { margin-bottom: 1.25rem !important; }
  .elementor-27415 .elementor-element-cc0f047 h2 span { margin-left: .3em; }
  .elementor-27415 .elementor-element.elementor-element-966b7e7-a { padding-bottom: 1.75rem !important; }
}

/* the category tiles without a border (user, 2026-11-03) */
.elementor-27415 .e-con.matiere-box { border: 0 !important; }
