/*
Theme Name: RobotIndus
Theme URI: https://www.robotindus.fr/
Author: RobotIndus
Description: Thème sur mesure du site RobotIndus — intégrateur de robots collaboratifs.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: robotindus
*/
/* RobotIndus — refonte 2026
   Palette reprise du site actuel : fond anthracite + accent cyan */
:root {
  --bg: #0d1317;          /* fond principal (site actuel) */
  --bg-2: #141b21;        /* sections alternées */
  --surface: #1c242b;     /* cartes */
  --line: #2b2f35;        /* bordures (site actuel) */
  --text: #e8eef2;
  --muted: #9aa8b3;
  --accent: #3cbfeb;      /* cyan du logo */
  --accent-2: #00b7ff;    /* cyan vif (liens / survol) */
  --light-bg: #f4f7f9;
  --light-text: #0d1317;
  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(13, 19, 23, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header .logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; opacity: .85; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.nav .btn { opacity: 1; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 28px; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  background: var(--accent); color: var(--bg) !important;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(60, 191, 235, .3); }
.btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid rgba(255,255,255,.25); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent) !important; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(60, 191, 235, .18), transparent 55%),
    linear-gradient(90deg, rgba(13,19,23,.96) 0%, rgba(13,19,23,.82) 38%, rgba(13,19,23,.25) 75%, rgba(13,19,23,.45) 100%),
    linear-gradient(180deg, transparent 75%, var(--bg)),
    url("img/tk/tk-03.webp") 70% center / cover no-repeat var(--bg);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 640px); padding-top: 76px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); padding: 6px 14px; border: 1px solid rgba(60,191,235,.35); border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 22px 0 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin-top: 54px; }
.hero-stats span { display: block; max-width: 160px; line-height: 1.4; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-stats strong { display: block; font-size: 26px; color: var(--text); font-weight: 700; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
section.alt { background: var(--bg-2); }
section.light { background: var(--light-bg); color: var(--light-text); }
section.light .section-head p { color: #4a5864; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Zone piliers + vidéo : halos et trame de points cyan pour casser l'aplat sombre */
.glow-zone { position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 8% 12%, rgba(60,191,235,.16), transparent 70%),
    radial-gradient(ellipse 45% 35% at 95% 45%, rgba(0,183,255,.12), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(60,191,235,.10), transparent 70%),
    var(--bg); }
.glow-zone::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(60,191,235,.22) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }

/* Variante : halos placés en miroir pour ne pas répéter la même composition */
.glow-zone.glow-alt { background:
    radial-gradient(ellipse 50% 35% at 92% 8%, rgba(60,191,235,.16), transparent 70%),
    radial-gradient(ellipse 45% 35% at 5% 55%, rgba(0,183,255,.12), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(60,191,235,.10), transparent 70%),
    var(--bg); }
.case.glow-zone { padding-top: 110px; }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(60,191,235,.08), transparent 45%), rgba(28,36,43,.85);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s, border-color .25s, box-shadow .25s;
  backdrop-filter: blur(4px);
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 80%); }
.card:hover { box-shadow: 0 20px 50px rgba(60,191,235,.12); }
.card:hover { transform: translateY(-4px); border-color: rgba(60,191,235,.5); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(60,191,235,.12); color: var(--accent); margin-bottom: 22px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Vidéo */
.video-section { padding-top: 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
  border-color: rgba(60,191,235,.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(60,191,235,.18);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bénéfices : repris du site d'origine (fond blanc, icônes cyan, texte centré) */
section.light { background: #fff; }
section.light .eyebrow { border-color: rgba(60,191,235,.5); color: #1593c2; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 40px; }
.benefit { text-align: center; padding: 0 10px; }
.benefit-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  color: var(--accent); background: rgba(60,191,235,.08); margin-bottom: 18px; transition: transform .3s, background .3s; }
.benefit-icon svg { width: 38px; height: 38px; }
.benefit:hover .benefit-icon { transform: translateY(-4px); background: rgba(60,191,235,.16); }
.benefit h3 { font-size: 21px; font-weight: 700; color: var(--light-text); margin-bottom: 8px; }
.benefit p { font-size: 15px; color: #5b6872; font-weight: 300; max-width: 300px; margin: 0 auto; }

/* Entreprise */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; position: relative; }
.split .media > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.badge-ur {
  position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 12px; padding: 10px;
  display: flex; align-items: center; gap: 10px; color: var(--light-text); font-size: 13px; font-weight: 600;
}
.badge-ur img { width: 52px; height: 52px; }
.assets { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 30px 0 26px; }
.assets li { padding-left: 16px; border-left: 2px solid var(--accent); }
.assets b { display: block; font-size: 15px; }
.assets span { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: rgba(60,191,235,.1); color: var(--accent); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.service { padding: 28px 24px; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.service h3 { font-size: 18px; margin-bottom: 14px; }
.service ul { list-style: none; }
.service li { color: var(--muted); font-size: 14px; padding: 5px 0 5px 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 2px; background: var(--accent); }

/* Réalisations */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; isolation: isolate; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; z-index: -2;
  filter: brightness(1.12) contrast(1.05) saturate(.95); }
.project:hover img { filter: brightness(1.18) contrast(1.05); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(13,19,23,.55) 70%, rgba(13,19,23,.92) 100%); }
.project:hover img { transform: scale(1.06); }
.project .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.project .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 22px; margin: 4px 0 6px; }
.project p { font-size: 14px; color: #d6dee4; }
.project h3, .project p { text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* Domaines d'application */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.app { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15px; transition: border-color .25s, transform .25s; }
.app:hover { border-color: rgba(60,191,235,.5); transform: translateY(-2px); }
.app-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(60,191,235,.12); color: var(--accent); }
.app-icon svg { width: 22px; height: 22px; }

/* Bannière d'appel à l'action */
.cta-band { padding: 0 0 110px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 50px; border-radius: 24px;
  background: linear-gradient(120deg, #0f7fae 0%, var(--accent) 100%); color: var(--bg); }
.cta-inner h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 8px; }
.cta-inner p { color: rgba(13,19,23,.8); max-width: 620px; }
.cta-inner .btn { background: var(--bg); color: var(--text) !important; flex: none; }
.cta-inner .btn:hover { background: #000; box-shadow: none; }

/* Projet à la une */
.featured { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-bottom: 22px; }
.featured img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.featured-main { aspect-ratio: 3 / 2; }
.featured-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.featured-side img { min-height: 0; }
.featured-text { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 40px; align-items: baseline;
  padding: 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.featured-text .tag { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.featured-text h3 { font-size: 22px; max-width: 380px; line-height: 1.3; }
.featured-text p { color: var(--muted); font-size: 15px; }

/* Étude de cas */
.case { padding-top: 0; }
.case-grid + .case-grid { margin-top: 28px; }
.case-grid.reverse .case-media { order: 2; }
.case-body .tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 50px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 0%, rgba(60,191,235,.12), transparent 55%), var(--surface); }
.case-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.case-body h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-bottom: 14px; }
.case-body > p { color: var(--muted); font-size: 15px; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.case-stats div { padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.case-stats strong { display: block; font-size: 26px; color: var(--accent); line-height: 1.1; }
.case-stats span { font-size: 13px; color: var(--muted); }
.case-gains { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -10px 0 26px; }
.case-gains li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px;
  background: rgba(60,191,235,.08); border: 1px solid rgba(60,191,235,.3); font-size: 13px; color: var(--muted); line-height: 1.5; }
.case-gains b { display: block; color: var(--text); font-size: 15px; }
.gain-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); }
.gain-icon svg { width: 18px; height: 18px; }
.case blockquote { font-size: 17px; font-style: italic; border-left: 3px solid var(--accent); padding-left: 18px; margin-bottom: 26px; }
.case cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Formations */
.training { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.training .media img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.training .body { padding: 56px 50px; display: flex; flex-direction: column; justify-content: center; }
.training h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; line-height: 1.2; }
.training p { color: var(--muted); margin-bottom: 26px; }
.training .labels { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.training .labels img { height: 56px; border-radius: 8px; background: #fff; padding: 4px; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s; }
.post:hover { transform: translateY(-4px); }
.post img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post .body { padding: 24px; }
.post time { font-size: 13px; color: var(--accent); font-weight: 500; }
.post h3 { font-size: 18px; line-height: 1.35; margin: 8px 0 10px; color: var(--text); }
.post p { font-size: 14px; color: var(--muted); }


/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-item .icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(60,191,235,.12); color: var(--accent); display: grid; place-items: center; }
.info-item .icon svg { width: 22px; height: 22px; }
.info-item small { display: block; color: var(--muted); font-size: 13px; }
.info-item strong { font-weight: 600; font-size: 16px; color: var(--text); }
form.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
form.contact input, form.contact textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px; transition: border-color .2s;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .consent { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
form.contact .consent input { width: auto; margin-top: 3px; }
form.contact button { border: 0; cursor: pointer; justify-self: start; font-family: inherit; }

/* Page mentions légales */
.legal { padding: 140px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 30px; }
.legal h2 { font-size: 19px; color: var(--accent); margin: 34px 0 10px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal strong { color: var(--text); }
.footer .bottom:only-child { border-top: 0; padding-top: 0; }

/* Pied de page */
.footer { background: #090d10; padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer img.logo { height: 32px; margin-bottom: 18px; }
.footer p, .footer li { color: var(--muted); font-size: 14px; }
.footer h4 { font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); transition: .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer .bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects, .news { grid-template-columns: repeat(2, 1fr); }
  .featured-text { grid-template-columns: 1fr; }
  .benefits, .apps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 34px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 10px 0 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; text-align: center; }
  .nav a.btn { width: auto; margin-top: 10px; justify-content: center; }
  .burger { display: block; }
  .hero .container, .split, .training, .contact-grid, .case-grid { grid-template-columns: 1fr; }
  .case-grid { padding: 26px; gap: 28px; }
  .case-grid.reverse .case-media { order: 0; }
  .hero { background-position: 75% center; }
  .pillars { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .training .body { padding: 36px 26px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .projects, .news, .benefits, .services, .assets, .case-gains { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  form.contact { grid-template-columns: 1fr; padding: 26px; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 22px; }
}

/* ================================================================== */
/* Pages WordPress (articles, actualités, mentions légales)            */
/* ================================================================== */

/* En-tête opaque sur les pages intérieures */
.header.solid { background: rgba(13, 19, 23, .96); box-shadow: 0 1px 0 var(--line); }
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

.container.narrow { max-width: 860px; }

/* Bandeau titre des pages intérieures */
.page-hero {
  padding: 150px 0 60px;
  background:
    radial-gradient(ellipse 50% 60% at 10% 0%, rgba(60,191,235,.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 100%, rgba(0,183,255,.10), transparent 70%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 6px 0 12px; }
.page-hero time { color: var(--accent); font-weight: 500; font-size: 15px; }
.page-hero .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.page-hero .back:hover { color: var(--accent); }
.page-hero p { color: var(--muted); margin-bottom: 26px; }
.not-found { min-height: 70vh; display: flex; align-items: center; }

/* Corps d'article : fond clair pour la lecture */
.entry-wrap { background: #fff; color: var(--light-text); padding: 60px 0 80px; }
.entry-cover { margin: -110px 0 40px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(13,19,23,.25); }
.entry-cover img { width: 100%; height: auto; display: block; }
.entry { font-size: 17px; line-height: 1.75; color: #2b3640; }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3, .entry h4 { color: var(--light-text); line-height: 1.25; margin-top: 1.8em; }
.entry h2 { font-size: 26px; }
.entry h3 { font-size: 21px; }
.entry a { color: #1593c2; text-decoration: underline; text-underline-offset: 2px; }
.entry img { height: auto; border-radius: 10px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .4em; }
.entry blockquote { border-left: 3px solid var(--accent); padding-left: 18px; font-style: italic; color: #4a5864; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 14px; color: #6b7883; text-align: center; margin-top: 8px; }
.entry iframe { max-width: 100%; border-radius: 10px; }
.entry .wp-block-columns { gap: 24px; }
.entry .alignfull { margin-left: 0; margin-right: 0; border-radius: var(--radius); overflow: hidden; }

.entry-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 26px; border-top: 1px solid #e3e8ec; font-size: 15px; }
.entry-nav a { color: var(--light-text); font-weight: 500; }
.entry-nav a:hover { color: #1593c2; }
.entry-nav span:last-child { text-align: right; }

/* Liste des actualités */
.news-archive { padding: 20px 0 110px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pager .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.pager .page-numbers.current, .pager a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pager .nav-links { display: flex; gap: 8px; }

/* Messages du formulaire de contact */
.form-note { font-size: 14px; padding: 12px 16px; border-radius: 10px; }
.form-note.ok { background: rgba(60,191,235,.12); color: var(--accent); }
.form-note.err { background: rgba(235,87,87,.12); color: #ff8a8a; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .page-hero { padding: 120px 0 44px; }
  .entry-cover { margin-top: -70px; }
  .entry { font-size: 16px; }
  .entry-nav { flex-direction: column; }
  .entry-nav span:last-child { text-align: left; }
}

/* Anciennes fiches 2020 : le bloc « Contactez-nous » de l'ancien thème fait doublon avec le pied de page */
.entry .wp-block-nk-awb { display: none; }

.news-more { margin-top: 34px; text-align: center; }
