/* ==========================================================================
   CDI TECH MEDIA — Tech Magazine Modern (v1.3)
   Sober editorial design : white bg + zinc text + electric blue accent.
   Inter (Google Fonts, enqueued in functions.php).
   Header : VISIBLE NAV with category icons on desktop, burger on mobile.
   Footer : dark zinc with brand pitch >= 20 words next to logo.
   v5 : SEO section + maillage interne styling.
   ========================================================================== */

:root{
  --rp-primary:      #18181B;
  --rp-accent:       #2563EB;
  --rp-accent-soft:  #DBEAFE;
  --rp-accent-hover: #1D4ED8;
  --rp-text:         #18181B;
  --rp-text-soft:    #71717A;
  --rp-text-strong:  #09090B;
  --rp-bg:           #FFFFFF;
  --rp-surface:      #F4F4F5;
  --rp-surface-2:    #FAFAFA;
  --rp-line:         #E4E4E7;
  --rp-line-soft:    #F4F4F5;
  --rp-footer-bg:    #18181B;

  --rp-radius:       6px;
  --rp-radius-lg:    10px;
  --rp-shadow-sm:    0 1px 2px rgba(24,24,27,.06);
  --rp-shadow-md:    0 6px 18px rgba(24,24,27,.08);
  --rp-shadow-lg:    0 18px 48px rgba(24,24,27,.12);

  --rp-font-h:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rp-font-b:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --rp-container:    1200px;
  --rp-gap:          24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.rp-body{
  margin: 0;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: var(--rp-font-b);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rp-accent); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--rp-accent-hover); }
a:focus-visible { outline: 2px solid var(--rp-accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5 {
  font-family: var(--rp-font-h);
  color: var(--rp-text-strong);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 2.8vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 1em; color: var(--rp-text); }
strong { color: var(--rp-text-strong); font-weight: 600; }

::selection { background: var(--rp-accent); color: #fff; }

.rp-container, .rp-header__inner, .rp-footer__grid, .rp-main > .container {
  max-width: var(--rp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.rp-main { min-height: 60vh; padding: 0 0 64px; }
.rp-main > .container { padding-top: 32px; }

/* === BUTTONS ============================================================ */
.rp-btn, .rp-btn--cta, .rp-btn--ghost, .rp-btn--ctr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--rp-font-h);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--rp-accent);
  color: #fff;
  cursor: pointer;
  border-radius: var(--rp-radius);
  transition: background .15s, transform .15s, box-shadow .15s;
  line-height: 1.2;
  white-space: nowrap;
}
.rp-btn:hover, .rp-btn--cta:hover, .rp-btn--ctr:hover {
  background: var(--rp-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--rp-shadow-md);
}
.rp-btn--ghost {
  background: transparent;
  border-color: var(--rp-line);
  color: var(--rp-text-strong);
}
.rp-btn--ghost:hover {
  border-color: var(--rp-text-strong);
  background: var(--rp-surface);
  color: var(--rp-text-strong);
}

/* === HEADER (visible nav desktop, burger <=960px, ICONS per category) === */
.rp-header{
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--rp-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rp-header.is-scrolled{ box-shadow: var(--rp-shadow-sm); }
.rp-header__inner{
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.rp-brand{
  display: flex; align-items: center; gap: 12px;
  color: var(--rp-text-strong);
  text-decoration: none;
  flex: 0 0 auto;
}
.rp-brand:hover{ color: var(--rp-accent); }
.rp-brand__logo{ width: 36px; height: 36px; }
.rp-brand__name{
  font-family: var(--rp-font-h);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: inherit;
}

.rp-nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.rp-nav-list{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: row;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.rp-nav-list li a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-family: var(--rp-font-h);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rp-text-strong);
  text-decoration: none;
  border-radius: var(--rp-radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.rp-nav-list li a:hover,
.rp-nav-list li.current-cat > a,
.rp-nav-list li.current-menu-item > a{
  color: var(--rp-accent);
  background: var(--rp-accent-soft);
}
.rp-nav-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  flex: 0 0 16px;
  color: currentColor;
  opacity: .85;
}
.rp-nav-icon svg{ width: 16px; height: 16px; display: block; }
.rp-nav-list li a:hover .rp-nav-icon{ opacity: 1; }

.rp-header__cta{
  margin-left: auto;
  padding: 9px 16px;
  font-size: 13px;
  flex: 0 0 auto;
}

.rp-burger{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--rp-line);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
  border-radius: var(--rp-radius);
  transition: border-color .15s, background .15s;
}
.rp-burger:hover{ border-color: var(--rp-text-strong); background: var(--rp-surface); }
.rp-burger span{
  display: block; width: 18px; height: 2px; margin: 0 auto;
  background: var(--rp-text-strong);
  transition: transform .25s, opacity .25s;
}
.rp-header.is-menu-open .rp-burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.rp-header.is-menu-open .rp-burger span:nth-child(2){ opacity: 0; }
.rp-header.is-menu-open .rp-burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* === HERO (featured-article) ============================================ */
.rp-hero{
  position: relative;
  margin-bottom: 56px;
  background: var(--rp-surface-2);
  border-bottom: 1px solid var(--rp-line);
}
.rp-hero__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--rp-container);
  margin: 0 auto;
  padding: 56px 24px 64px;
}
.rp-hero__eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rp-font-h);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rp-accent);
  padding: 4px 12px;
  border: 1px solid var(--rp-accent);
  background: var(--rp-accent-soft);
  border-radius: 999px;
  margin-bottom: 20px;
}
.rp-hero__title{
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.06;
  margin: 0 0 20px;
  color: var(--rp-text-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rp-hero__title a{ color: inherit; text-decoration: none; }
.rp-hero__title a:hover{ color: var(--rp-accent); }
.rp-hero__excerpt{
  font-size: 18px;
  color: var(--rp-text-soft);
  margin-bottom: 24px;
  max-width: 56ch;
  line-height: 1.6;
}
.rp-hero__meta{
  display: flex; align-items: center; gap: 16px;
  font-family: var(--rp-font-h);
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-text-soft);
  margin-bottom: 28px;
}
.rp-hero__meta span + span::before{
  content: '·'; margin-right: 16px; color: var(--rp-line);
}
.rp-hero__media{
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--rp-radius-lg);
  box-shadow: var(--rp-shadow-md);
  overflow: hidden;
  background: var(--rp-surface);
}
.rp-hero__media img{ width: 100%; height: 100%; object-fit: cover; }

/* === SECTION HEADINGS =================================================== */
.rp-section{ margin: 56px auto; max-width: var(--rp-container); padding: 0 24px; }
.rp-section__head{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rp-line);
}
.rp-section__title{
  margin: 0;
  font-size: 24px;
  color: var(--rp-text-strong);
  font-weight: 700;
}
.rp-section__link{
  font-family: var(--rp-font-h);
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-accent);
}
.rp-section__link:hover{ color: var(--rp-accent-hover); }

/* === CATEGORIES GRID ==================================================== */
.rp-categories__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--rp-gap);
}
.rp-cat-card{
  position: relative;
  display: block;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  color: var(--rp-text-strong);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-height: 170px;
}
.rp-cat-card:hover{
  transform: translateY(-3px);
  border-color: var(--rp-accent);
  box-shadow: var(--rp-shadow-md);
}
.rp-cat-card__num{
  font-family: var(--rp-font-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--rp-accent);
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
}
.rp-cat-card__title{
  font-family: var(--rp-font-h);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rp-text-strong);
  margin: 0 0 12px;
  line-height: 1.25;
}
.rp-cat-card__count{
  font-family: var(--rp-font-h);
  font-size: 12px;
  color: var(--rp-text-soft);
  position: absolute;
  bottom: 16px; left: 22px;
  font-weight: 500;
}

/* === ARTICLE CARDS ====================================================== */
.rp-latest__grid, .rp-article-grid, .rp-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--rp-gap);
}
.rp-card{
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.rp-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--rp-shadow-md);
}
.rp-card__media, .rp-card a > div:first-child:not(.rp-card-body){
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rp-surface);
}
.rp-card__media img, .rp-card img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.rp-card:hover .rp-card__media img,
.rp-card:hover img{ transform: scale(1.04); }
.rp-card__body, .rp-card-body{
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.rp-card__cat, .rp-card-cats{
  display: inline-block;
  font-family: var(--rp-font-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--rp-accent);
  margin-bottom: 4px;
  text-decoration: none;
}
.rp-card__title, .rp-card h3, .rp-card-title{
  font-family: var(--rp-font-h);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
.rp-card__title a, .rp-card h3 a{
  color: var(--rp-text-strong);
  text-decoration: none;
}
.rp-card__title a:hover, .rp-card h3 a:hover{ color: var(--rp-accent); }
.rp-card__excerpt, .rp-card-excerpt, .rp-card p{
  color: var(--rp-text-soft);
  font-size: 15px;
  margin: 4px 0 0;
  line-height: 1.55;
}
.rp-card__meta{
  font-family: var(--rp-font-h);
  font-size: 12.5px;
  color: var(--rp-text-soft);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rp-line-soft);
  font-weight: 500;
}

/* === CATEGORY PAGE ====================================================== */
.rp-cat-page{ padding: 32px 0 64px; }
.rp-cat-head{
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  padding: 32px 32px 28px;
  margin-bottom: 40px;
  background: var(--rp-surface-2);
}
.rp-breadcrumb, .rp-breadcrumb a {
  font-family: var(--rp-font-h);
  font-size: 13px;
  color: var(--rp-text-soft);
  text-decoration: none;
}
.rp-breadcrumb { margin-bottom: 14px; }
.rp-breadcrumb a:hover{ color: var(--rp-accent); }
.rp-breadcrumb__sep, .rp-sep{ color: var(--rp-line); margin: 0 8px; }
.rp-cat-head__title{
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 8px;
  color: var(--rp-text-strong);
  letter-spacing: -0.02em;
}
.rp-cat-head__tag{
  display: inline-block;
  font-family: var(--rp-font-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rp-accent);
  margin-bottom: 16px;
}
.rp-cat-head__desc{
  color: var(--rp-text);
  font-size: 16px;
  line-height: 1.7;
}
.rp-cat-articles, .rp-grid-cats{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--rp-gap);
  margin-bottom: 48px;
}
.rp-pagination{
  display: flex; justify-content: center; align-items: center; gap: 6px;
  font-family: var(--rp-font-h);
  font-size: 13px;
  margin: 32px 0 48px;
}
.rp-pagination .page-numbers{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rp-line);
  color: var(--rp-text);
  background: #fff;
  text-decoration: none;
  border-radius: var(--rp-radius);
  font-weight: 500;
}
.rp-pagination .page-numbers.current,
.rp-pagination .page-numbers:hover{
  background: var(--rp-accent);
  color: #fff;
  border-color: var(--rp-accent);
}
.rp-cat-related, .rp-other-cats, .rp-related, .rp-other-tools{
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--rp-line);
}
.rp-cat-related h2, .rp-other-tools h2, .rp-related h2{
  margin-bottom: 24px; font-size: 22px;
}
.rp-cat-related__grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.rp-cat-related__item{
  display: block; padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  font-family: var(--rp-font-h);
  font-size: 14px;
  font-weight: 500;
  color: var(--rp-text-strong);
  text-decoration: none;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.rp-cat-related__item:hover{
  border-color: var(--rp-accent);
  color: var(--rp-accent);
  box-shadow: var(--rp-shadow-sm);
}

/* === PAGES (single/page/contact) ========================================= */
.rp-single, .rp-page{ padding: 32px 0 64px; }
.rp-single .entry-content, .rp-page .entry-content,
.rp-page-body { max-width: 760px; margin: 0 auto; font-size: 17px; }
.rp-page-head { max-width: 760px; margin: 0 auto 24px; }
.rp-page-foot { max-width: 760px; margin: 32px auto; }
.rp-page__intro{
  font-size: 19px;
  color: var(--rp-text-strong);
  border-left: 3px solid var(--rp-accent);
  padding: 4px 0 4px 20px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.rp-persona-figure{
  float: right;
  max-width: 280px;
  margin: 0 0 20px 28px;
  padding: 0;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  box-shadow: var(--rp-shadow-md);
  background: #fff;
  overflow: hidden;
}
.rp-persona-figure img.rp-persona-photo{ width: 100%; height: auto; display: block; }
.rp-persona-figure figcaption{
  padding: 10px 14px;
  font-family: var(--rp-font-h);
  font-size: 13px;
  text-align: center;
  color: var(--rp-text-strong);
  background: var(--rp-surface);
  border-top: 1px solid var(--rp-line);
}

/* JotForm embed wrapper */
.rp-jotform-wrap{ max-width: 760px; margin: 28px auto 48px; }
.rp-jotform-wrap iframe{
  width: 100% !important;
  min-height: 600px;
  border: 1px solid var(--rp-line) !important;
  border-radius: var(--rp-radius-lg);
}

/* === TOOL PAGES ========================================================= */
.rp-tool { padding: 24px 0 48px; }
.rp-tool-head{ max-width: 860px; margin: 0 auto 24px; }
.rp-tool-head h1{ font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.rp-tool-chapo{ font-size: 17px; color: var(--rp-text-soft); }
.rp-tool-body{ max-width: 860px; margin: 0 auto; }
.rp-tool-foot{ max-width: 860px; margin: 32px auto; text-align: center; }
.rp-tool-quiz, .rp-tool-form, .rp-tool-calc{
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  padding: 28px 28px 32px;
  margin: 24px 0 32px;
}
.rp-tool-quiz h2, .rp-tool-form h2, .rp-tool-calc h2{
  font-size: 22px;
  margin-top: 0;
  color: var(--rp-text-strong);
  font-weight: 700;
}
.rp-tool-quiz p, .rp-tool-form p, .rp-tool-calc p{
  color: var(--rp-text-soft);
  font-size: 15px;
}
.rp-tool-quiz label, .rp-tool-form label, .rp-tool-calc label{
  display: block;
  font-family: var(--rp-font-h);
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-text-strong);
  margin: 14px 0 6px;
}
.rp-tool-option{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  margin: 6px 0;
  font-family: var(--rp-font-b);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  color: var(--rp-text);
  transition: border-color .15s, background .15s;
}
.rp-tool-option:hover{
  border-color: var(--rp-accent);
  background: var(--rp-accent-soft);
}
.rp-tool-option input{ accent-color: var(--rp-accent); }
.rp-tool-form input[type=text],
.rp-tool-form input[type=number],
.rp-tool-calc input[type=number],
.rp-tool-form select,
.rp-tool-calc select{
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  color: var(--rp-text-strong);
  font-family: var(--rp-font-b);
  font-size: 15px;
}
.rp-tool-form input:focus, .rp-tool-form select:focus,
.rp-tool-calc input:focus, .rp-tool-calc select:focus{
  outline: none;
  border-color: var(--rp-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.rp-tool-result{
  margin-top: 22px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--rp-accent);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-sm);
  color: var(--rp-text);
  font-size: 15.5px;
}
.rp-tool-result strong{
  display: block;
  font-family: var(--rp-font-h);
  font-size: 17px;
  color: var(--rp-text-strong);
  margin-bottom: 8px;
  font-weight: 700;
}

/* === FOOTER ============================================================= */
.rp-footer{
  background: var(--rp-footer-bg);
  color: #D4D4D8;
  margin-top: 72px;
  padding: 56px 0 0;
}
.rp-footer__grid, .rp-footer__inner{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  max-width: var(--rp-container);
  margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
}
.rp-footer__col h4, .footer-col h4{
  font-family: var(--rp-font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rp-footer__brand{
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.rp-footer__brand img{ width: 36px; height: 36px; }
.rp-footer__brand-name{
  font-family: var(--rp-font-h);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.rp-footer__pitch, .rp-footer-pitch{
  color: #A1A1AA;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.rp-footer__cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-family: var(--rp-font-h);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  border-radius: var(--rp-radius);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.rp-footer__cta:hover{
  background: var(--rp-accent);
  border-color: var(--rp-accent);
  color: #FFFFFF;
}
.rp-footer__socials, .rp-social-col ul, .social-list{
  margin-top: 18px;
  display: flex; gap: 10px;
  list-style: none; padding: 0;
}
.rp-footer__socials a, .social-list a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  color: #D4D4D8;
  border-radius: var(--rp-radius);
  transition: all .15s;
  text-decoration: none;
}
.rp-footer__socials a:hover, .social-list a:hover{
  border-color: var(--rp-accent);
  background: var(--rp-accent);
  color: #fff;
}
.rp-footer__socials svg, .social-list svg{ width: 16px; height: 16px; }
.rp-footer__list, .rp-footer-col ul, .footer-col ul{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.rp-footer__list li, .rp-footer-col li, .footer-col li{ padding: 6px 0; }
.rp-footer__list a, .rp-footer-col a, .footer-col a{
  font-family: var(--rp-font-b);
  font-size: 14.5px;
  font-weight: 400;
  color: #D4D4D8;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
  display: inline-block;
}
.rp-footer__list a:hover, .rp-footer-col a:hover, .footer-col a:hover{
  color: #FFFFFF;
  padding-left: 4px;
}
.rp-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 24px;
  max-width: var(--rp-container);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--rp-font-h);
  font-size: 12.5px;
  color: #A1A1AA;
  flex-wrap: wrap; gap: 12px;
}
.rp-footer__bottom span:first-child{ color: #FFFFFF; }

/* === HOME PERSONA RIBBON =============================================== */
.rp-persona-ribbon{
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  padding: 32px 28px;
}
.rp-persona-ribbon__photo{
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: var(--rp-shadow-sm);
}
.rp-persona-ribbon__photo img{ border-radius: 0; }
.rp-persona-ribbon__eyebrow{
  display: inline-block;
  font-family: var(--rp-font-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rp-accent);
  margin-bottom: 6px;
}
.rp-persona-ribbon__title{
  margin: 6px 0 10px;
  font-size: 22px;
  color: var(--rp-text-strong);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rp-persona-ribbon__bio{
  color: var(--rp-text);
  font-size: 15.5px;
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
}

/* === HOME SEO LONG-FORM SECTION (v5) =================================== */
.rp-home-seo{
  max-width: 880px;
  margin: 64px auto;
  padding: 0 24px;
  color: var(--rp-text);
  font-size: 16.5px;
  line-height: 1.75;
}
.rp-home-seo h2{
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  color: var(--rp-text-strong);
}
.rp-home-seo h3{
  font-size: 20px;
  margin: 32px 0 10px;
  color: var(--rp-text-strong);
  font-weight: 700;
}
.rp-home-seo p{ margin: 0 0 16px; }
.rp-home-seo ul{
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--rp-text);
}
.rp-home-seo ul li{ margin-bottom: 6px; }
.rp-home-seo a{
  color: var(--rp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.rp-home-seo a:hover{ color: var(--rp-accent-hover); text-decoration-thickness: 2px; }

/* === MAILLAGE INTERNE (related links block, reused per page) ========== */
.rp-maillage{
  max-width: 880px;
  margin: 40px auto 24px;
  padding: 22px 26px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  border-left: 3px solid var(--rp-accent);
  border-radius: var(--rp-radius-lg);
}
.rp-maillage h2, .rp-maillage h3{
  font-family: var(--rp-font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--rp-accent);
  margin: 0 0 12px;
}
.rp-maillage ul{
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.rp-maillage li{
  font-size: 15.5px;
  line-height: 1.5;
}
.rp-maillage li a{
  color: var(--rp-text-strong);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.rp-maillage li a:hover{
  color: var(--rp-accent);
  border-bottom-color: var(--rp-accent);
}

/* === RESPONSIVE ========================================================== */
@media (max-width: 1100px){
  .rp-nav-list li a{ font-size: 12.5px; padding: 6px 9px; }
  .rp-nav-label{ display: none; }  /* keep just icons when nav is tight */
}
@media (max-width: 960px){
  .rp-burger{ display: flex; }
  .rp-nav{
    position: fixed; top: 0; right: -100%;
    width: min(380px, 92vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--rp-line);
    box-shadow: -8px 0 24px rgba(24,24,27,.15);
    padding: 84px 28px 28px;
    transition: right .35s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
    z-index: 999;
    display: block;
    flex: none;
  }
  .rp-header.is-menu-open .rp-nav{ right: 0; }
  .rp-nav-list{
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }
  .rp-nav-list li a{
    display: flex;
    gap: 12px;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--rp-line);
    border-radius: 0;
  }
  .rp-nav-label{ display: inline; }
  .rp-nav-list li a:hover{
    background: transparent;
    padding-left: 8px;
  }
  .rp-header.is-menu-open::after{
    content: ''; position: fixed; inset: 0;
    background: rgba(24,24,27,.55); z-index: 998;
  }

  .rp-hero__grid{ grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 48px; }
  .rp-hero__media{ max-width: 540px; margin: 0 auto; aspect-ratio: 16/10; }
  .rp-footer__grid, .rp-footer__inner{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .rp-persona-ribbon__grid{ grid-template-columns: 1fr !important; text-align: center; }
  .rp-persona-ribbon__photo{ max-width: 160px; margin: 0 auto; }
  .rp-persona-ribbon__bio{ margin: 0 auto; }
}

@media (max-width: 640px){
  body.rp-body{ font-size: 16px; }
  .rp-header__inner{ padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .rp-brand__name{ font-size: 15px; }
  .rp-header__cta span:not(.rp-cta-icon){ display: none; }
  .rp-header__cta{ padding: 8px 12px; }
  .rp-section{ margin: 40px auto; }
  .rp-hero__title{ font-size: 30px; }
  .rp-footer__grid, .rp-footer__inner{ grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .rp-footer__bottom{ flex-direction: column; text-align: center; }
  .rp-persona-figure{ float: none; max-width: 240px; margin: 0 auto 24px; }
  .rp-cat-head{ padding: 24px 18px; }
  .rp-home-seo{ font-size: 16px; }
}

@media (hover: none){
  .rp-card:hover, .rp-cat-card:hover{ transform: none; }
}

.ast-site-identity, .site-branding, .site-title, .site-description,
.custom-logo-link[class*="site-logo"]:not(.rp-brand){
  display: none !important;
}
