/* ============================================================
   RECUP'AIR — Thème WordPress
   Police : Manrope — Design médical élégant et moderne
   ============================================================ */

/* === 1. VARIABLES ========================================== */
:root {
  --primary:        #0c7a96;  /* bleu médical teal */
  --primary-dark:   #0a6079;
  --primary-deeper: #084e63;
  --primary-light:  #e0f3f8;
  --primary-bg:     #f4fbfd;  /* fond global très pâle */

  --orange:         #e85d04;  /* orange logo */
  --orange-dark:    #c44d00;
  --orange-light:   #fff4ee;

  --green:          #15803d;
  --green-light:    #f0fdf4;

  --text:           #17293a;  /* bleu-gris profond */
  --text-muted:     #4a6275;
  --text-light:     #7a9aad;
  --border:         #d8e8ef;
  --border-light:   #eaf3f7;
  --white:          #ffffff;

  --sidebar-w:      230px;
  --content-max:    740px;
  --header-h:       96px;
  --radius:         8px;
  --radius-lg:      14px;
  --radius-xl:      20px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(12,122,150,0.10), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 36px rgba(12,122,150,0.14);

  --transition: 0.22s ease;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:  'Manrope', sans-serif;
}

/* === 2. RESET & BASE ======================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--primary-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

/* === 3. TYPOGRAPHY ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
  letter-spacing: -0.025em;
}
h1 { font-size: 1.875rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.375rem; margin-bottom: 0.875rem; margin-top: 2rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.6rem;   margin-top: 1.5rem; }
h4 { font-size: 1rem;     margin-bottom: 0.5rem; }
h2:first-child, h3:first-child { margin-top: 0; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover  { color: var(--primary-dark); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
img { max-width: 100%; height: auto; display: block; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
strong { font-weight: 700; }
em { font-style: italic; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 0.9rem;
  text-align: left;
  border: 1px solid var(--border);
}
td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
tr:nth-child(even) td { background: var(--primary-bg); }

/* === 4. ACCESSIBILITY ====================================== */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--primary-dark); color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999; font-size: 0.875rem; font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === 5. HEADER ============================================= */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(12,122,150,0.08);
  position: sticky; top: 0; z-index: 400;
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center;
  gap: 1.5rem;
  max-width: 1440px; margin: 0 auto;
  padding: 0 1.75rem; height: 100%;
}

/* Logo et branding */
.site-branding {
  display: flex; align-items: center; gap: 1.5rem; flex: 1; min-width: 0;
}
.site-branding-link {
  display: flex; align-items: center; flex-shrink: 0;
  text-decoration: none;
}
.site-logo {
  height: 80px; width: auto;
  image-rendering: -webkit-optimize-contrast;
}
.footer-logo-img {
  height: 65px; width: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Logo inline SVG */
.site-logo-wrap {
  display: flex; align-items: center;
  line-height: 0;
}
.site-logo-wrap svg,
.site-logo-svg {
  height: 80px; width: auto;
}
.logo-brand-text {
  font-family: 'Dancing Script', 'Brush Script MT', 'Segoe Script', cursive;
}
.logo-sub-text {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

/* Tagline (à droite du logo, cohérente avec le sous-titre du logo) */
.site-tagline {
  flex: 1;
  display: flex; align-items: center;
  padding-left: 2rem;
  position: relative;
}
.site-tagline::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 44px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--orange) 0%, #007695 100%);
}
.tagline-text {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: #007695;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}

/* === 6. BOUTON MENU MOBILE ================================= */
.sidebar-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 1.5px solid var(--border);
  cursor: pointer; padding: 0.55rem 0.65rem;
  border-radius: var(--radius); transition: all var(--transition);
  flex-shrink: 0; height: 42px;
}
.sidebar-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.hamburger {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.sidebar-toggle.open .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.open .hamburger:nth-child(2) { opacity: 0; }
.sidebar-toggle.open .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop mobile */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(8, 30, 45, 0.5); z-index: 498;
  backdrop-filter: blur(3px);
}
.sidebar-backdrop.is-visible { display: block; }

/* === 7. LAYOUT 2 COLONNES ================================= */
.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-areas: "left main";
  max-width: 1440px; margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 220px);
}
.sidebar-left { grid-area: left; }
.site-main    { grid-area: main; }

/* === 8. SIDEBAR-LEFT ====================================== */
.sidebar-left {
  background: var(--white);
  border-right: 1px solid var(--border);
  min-height: 100%;
}
.sidebar-inner {
  position: sticky; top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto; padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* En-tête interne */
.sidebar-nav-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.4rem 1rem;
  background: linear-gradient(135deg, #f4fbfd 0%, #e8f6fb 100%);
  border-bottom: 2px solid var(--primary-light);
}
.sidebar-nav-label {
  font-family: var(--font-head);
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--primary-dark);
  position: relative; padding-left: 0.85rem;
}
.sidebar-nav-label::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--orange);
}
.sidebar-close {
  display: none;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: none; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  color: var(--text-muted); font-size: 0.875rem;
  transition: all var(--transition);
}
.sidebar-close:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Règle partagée : item de premier niveau ──────────────── */
/* Cible à la fois les <a> directs ET ceux wrappés dans .menu-item-inner par l'accordéon JS */
.sidebar-left nav > ul { list-style: none; padding: 0.5rem 0; margin: 0; }
.sidebar-left nav > ul > li { margin: 0; }

.sidebar-left nav > ul > li > a,
.sidebar-left nav > ul > li > .menu-item-inner > a {
  display: flex; align-items: center;
  padding: 0.78rem 1.4rem;
  font-family: var(--font-head);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1.35;
}

/* Survol */
.sidebar-left nav > ul > li > a:hover,
.sidebar-left nav > ul > li > .menu-item-inner > a:hover {
  background: var(--primary-light);
  border-left-color: var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
}

/* Item actif */
.sidebar-left nav > ul > li.current-menu-item > a,
.sidebar-left nav > ul > li.current_page_item > a,
.sidebar-left nav > ul > li.current-menu-item > .menu-item-inner > a,
.sidebar-left nav > ul > li.current_page_item > .menu-item-inner > a {
  background: linear-gradient(90deg, rgba(12,122,150,0.10) 0%, rgba(12,122,150,0.04) 100%);
  border-left-color: var(--orange);
  color: var(--primary-dark); font-weight: 700;
}

/* Ancêtre actif (parent ouvert d'une page courante) */
.sidebar-left nav > ul > li.current-menu-ancestor > .menu-item-inner > a,
.sidebar-left nav > ul > li.current-page-ancestor > .menu-item-inner > a,
.sidebar-left nav > ul > li.current-menu-ancestor > a,
.sidebar-left nav > ul > li.current-page-ancestor > a {
  color: var(--primary-dark); font-weight: 600;
  border-left-color: var(--primary);
}

/* Séparateur subtil entre items */
.sidebar-left nav > ul > li + li {
  border-top: 1px solid rgba(216,232,239,0.5);
}

/* ── Sous-menu ─────────────────────────────────────────────── */
.sidebar-left nav .sub-menu {
  list-style: none; margin: 0;
  padding: 0.3rem 0 0.5rem 0;
  background: linear-gradient(90deg, rgba(12,122,150,0.04) 0%, transparent 100%);
  border-left: 3px solid var(--primary-light);
  margin-left: 1.4rem;
}
.sidebar-left nav .sub-menu li a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.48rem 1rem 0.48rem 0.9rem;
  font-size: 0.82rem; font-weight: 400;
  color: var(--text-muted); text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
/* Petit point indicateur */
.sidebar-left nav .sub-menu li a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.sidebar-left nav .sub-menu li a:hover { color: var(--primary-dark); text-decoration: none; }
.sidebar-left nav .sub-menu li a:hover::before { background: var(--primary); }
.sidebar-left nav .sub-menu li.current-menu-item a {
  color: var(--primary-dark); font-weight: 600;
}
.sidebar-left nav .sub-menu li.current-menu-item a::before {
  background: var(--orange);
}

/* Widgets dans la sidebar */
.sidebar-widgets {
  margin-top: 0.5rem; padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
}
.sidebar .widget {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.sidebar .widget-title {
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--primary-dark); margin: 0 1rem 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
}
.sidebar-right .widget-title { color: var(--green); border-bottom-color: #bbf7d0; }

.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget ul li { margin: 0; }
.sidebar .widget ul li a {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.45rem 1rem;
  color: var(--text); font-size: 0.82rem; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition); line-height: 1.45;
  text-decoration: none;
}
.sidebar .widget ul li a:hover {
  background: rgba(12,122,150,0.07);
  border-left-color: var(--primary);
  color: var(--primary-dark);
}
.sidebar-right .widget ul li a:hover {
  background: rgba(21,128,61,0.07);
  border-left-color: var(--green);
  color: var(--green);
}

/* Formulaire de recherche sidebar */
.sidebar .widget_search { padding: 0 1rem; }
.sidebar .widget_search .search-form {
  margin: 0; display: flex; gap: 0; align-items: stretch;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--white); overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sidebar .widget_search .search-form:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(12,122,150,0.12);
}
.sidebar .widget_search .search-form label { flex: 1; display: flex; align-items: center; }
.sidebar .widget_search .search-form .search-field,
.sidebar .widget_search .search-form input[type="search"] {
  flex: 1; width: 100%; padding: 0.5rem 0.6rem 0.5rem 1rem;
  font-size: 0.82rem; font-family: var(--font-sans);
  border: none; background: transparent; outline: none; color: var(--text);
}
.sidebar .widget_search .search-form .search-submit,
.sidebar .widget_search .search-form button {
  width: auto; padding: 0.45rem 0.9rem; flex-shrink: 0;
  background: var(--primary); color: white; border: none;
  font-size: 0.95rem; line-height: 1; cursor: pointer;
  font-family: var(--font-sans); transition: background var(--transition);
}
.sidebar .widget_search .search-form .search-submit:hover { background: var(--primary-dark); }
.sidebar .widget_recent_comments { display: none !important; }

/* === 9. MAIN CONTENT ======================================= */
.site-main {
  background: var(--white);
  border-left: 1px solid var(--border);
  min-height: 100%;
  padding: 2.5rem 2.75rem;
}
.entry-header { margin-bottom: 1.75rem; }
.entry-title {
  font-size: 1.75rem; font-weight: 800;
  color: var(--primary-dark);
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--orange);
  margin-bottom: 0.5rem; margin-top: 0;
  letter-spacing: -0.03em;
}
.entry-meta {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.6rem;
}
.entry-meta a { color: var(--primary); }
.entry-content { max-width: var(--content-max); }
.entry-content h2 {
  font-size: 1.25rem; color: var(--primary-dark);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
  margin-top: 2rem;
}
.entry-content h3 { font-size: 1.05rem; color: var(--primary); }
.entry-content a { color: var(--primary); font-weight: 500; }
.entry-content a:hover { color: var(--orange); }

/* === 10. BREADCRUMB ======================================== */
.breadcrumb {
  font-size: 0.775rem; color: var(--text-light);
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 1.75rem;
  font-weight: 500;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb .sep { color: var(--border); font-size: 0.9rem; }
.breadcrumb .current { color: var(--text); }

/* === 11. HOMEPAGE HERO ===================================== */
.hero-section {
  background: linear-gradient(140deg, var(--primary-deeper) 0%, var(--primary) 50%, #0fa3c7 100%);
  color: white;
  padding: 3rem 2.75rem;
  margin: -2.5rem -2.75rem 2.75rem;
  position: relative; overflow: hidden;
  border-bottom: 4px solid var(--orange);
}
.hero-section::before {
  content: '';
  position: absolute; top: -50%; right: -5%;
  width: 440px; height: 440px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -60%; left: -8%;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.85rem;
  position: relative; z-index: 1;
}
.hero-tagline {
  font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 800;
  margin-bottom: 0.85rem; line-height: 1.2; color: white;
  position: relative; z-index: 1;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 0.975rem; opacity: 0.88; max-width: 540px;
  margin-bottom: 2rem; position: relative; z-index: 1;
  line-height: 1.65; font-weight: 400;
}
.hero-actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* === 12. BUTTONS =========================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.875rem;
  transition: all var(--transition); cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  line-height: 1.3;
}
.btn-orange {
  background: var(--orange); color: white; border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-dark); border-color: var(--orange-dark);
  text-decoration: none; color: white; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232,93,4,0.35);
}
.btn-outline-white {
  background: transparent; color: white; border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.14); border-color: white;
  color: white; text-decoration: none;
}
.btn-primary,
.entry-content a.btn-primary {
  background: var(--primary); color: white; border-color: var(--primary);
}
.btn-primary:hover,
.entry-content a.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  text-decoration: none; color: white; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12,122,150,0.3);
}

/* === 12b. BLOC ALERTE ====================================== */
.alert-block {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--orange-light) 0%, #ffe8d8 100%);
  border: 1px solid #fac8a0;
  border-left: 4px solid var(--orange);
  overflow: hidden;
}
.alert-inner {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.4rem;
}
.alert-icon {
  flex-shrink: 0; color: var(--orange-dark);
  display: flex; align-items: center;
}
.alert-content { flex: 1; min-width: 0; }
.alert-title {
  display: block; font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 700;
  color: var(--orange-dark); margin-bottom: 0.15rem;
}
.alert-excerpt { font-size: 0.85rem; color: #7c3413; line-height: 1.5; }
.alert-link {
  flex-shrink: 0; padding: 0.45rem 0.95rem;
  background: var(--orange); color: white;
  font-size: 0.82rem; font-weight: 700; font-family: var(--font-head);
  border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  transition: background var(--transition);
}
.alert-link:hover { background: var(--orange-dark); color: white; text-decoration: none; }

/* === 13. CARDS ============================================= */
.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem; margin: 1.75rem 0;
}
.card {
  background: var(--primary-bg); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.4rem;
  transition: all var(--transition); text-decoration: none;
  color: var(--text); display: block;
}
.card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-md);
  transform: translateY(-2px); text-decoration: none; color: var(--text);
}
.card-icon { font-size: 1.875rem; margin-bottom: 0.75rem; }
.card-title {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* Section titre + lien */
.section-title-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary-light);
}
.section-title-bar h2 {
  margin: 0; border: none; padding: 0;
  font-size: 1.1rem; font-weight: 800;
}
.section-title-bar a {
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
}

/* Bloc "Qui sommes-nous" homepage */
.about-block {
  background: var(--primary-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 0.5rem;
}
.about-block p {
  font-size: 0.95rem; color: var(--text); line-height: 1.75;
}
.about-block .about-headline {
  font-size: 1.05rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
}
.about-cta {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* === 14. NOTICE / CALLOUT ================================== */
.notice {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border-left: 4px solid; margin: 1.5rem 0;
  font-size: 0.9rem; line-height: 1.65;
}
.notice-info    { background: var(--primary-light);  border-color: var(--primary);   color: var(--primary-deeper); }
.notice-warning { background: var(--orange-light);   border-color: var(--orange);    color: #7a2e00; }
.notice-success { background: var(--green-light);    border-color: var(--green);     color: #14532d; }
.notice p:last-child { margin-bottom: 0; }

/* === 15. PDF VIEWER ======================================== */
.pdf-viewer-wrapper {
  width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin: 1.5rem 0; background: #525659;
}
.pdf-viewer-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #3d4043; padding: 0.5rem 0.875rem; gap: 0.5rem; flex-wrap: wrap;
}
.pdf-viewer-toolbar .toolbar-group { display: flex; align-items: center; gap: 0.35rem; }
.pdf-toolbar-btn {
  background: rgba(255,255,255,0.1); border: none; color: white;
  padding: 0.3rem 0.65rem; border-radius: 4px; cursor: pointer;
  font-size: 0.78rem; transition: background var(--transition);
  font-family: var(--font-sans);
}
.pdf-toolbar-btn:hover { background: rgba(255,255,255,0.2); }
.pdf-toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pdf-page-info { color: rgba(255,255,255,0.8); font-size: 0.78rem; min-width: 5rem; text-align: center; }
.pdf-canvas-container {
  display: flex; justify-content: center;
  padding: 1rem; overflow-y: auto; max-height: 640px;
}
.pdf-canvas { max-width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.pdf-loading {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: rgba(255,255,255,0.7); font-size: 0.9rem; gap: 0.5rem;
}
.pdf-open-link {
  display: block; text-align: center;
  padding: 0.5rem; background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.7); font-size: 0.78rem;
  transition: color var(--transition);
}
.pdf-open-link:hover { color: white; }

/* === 16. BLOG / POSTS ====================================== */
.posts-grid { display: grid; gap: 1.1rem; }
.post-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem; transition: all var(--transition);
  background: var(--white);
}
.post-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.post-card-title {
  font-family: var(--font-head); font-size: 0.975rem;
  font-weight: 700; color: var(--primary-dark); margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--primary); }
.post-card-meta {
  font-size: 0.77rem; color: var(--text-muted); margin-bottom: 0.55rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.post-card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Badges catégorie */
.category-badge {
  display: inline-block; padding: 0.18rem 0.7rem;
  border-radius: 20px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
}
.cat-actualites   { background: var(--primary-light);  color: var(--primary-deeper); }
.cat-formations   { background: var(--green-light);    color: #15803d; }
.cat-ateliers     { background: var(--orange-light);   color: var(--orange-dark); }
.cat-temoignages  { background: #fdf4ff;               color: #7c3aed; }
.cat-encyclopedie { background: #f1f5f9;               color: #475569; }
.cat-alerte       { background: var(--orange-light);   color: var(--orange-dark); }
.cat-default      { background: var(--primary-light);  color: var(--primary-deep); }

/* Pagination */
.pagination {
  display: flex; align-items: center; gap: 0.4rem;
  justify-content: center; margin-top: 2rem; flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  border: 1.5px solid var(--border); transition: all var(--transition);
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); color: white; border-color: var(--primary); }

/* === 17. CONTACT FORM ====================================== */
.contact-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-bottom: 2.25rem;
}
.contact-info-block {
  background: var(--primary-bg); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.35rem;
}
.contact-info-block h3 { font-size: 0.95rem; margin-top: 0; }
.contact-info-block p  { font-size: 0.9rem; margin-bottom: 0.4rem; }

.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.45rem;
}
.contact-form label .required { color: var(--orange); margin-left: 2px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 0.65rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 400;
  color: var(--text); transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12,122,150,0.12);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-notice { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-success {
  padding: 1.25rem; background: var(--green-light); border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg); color: #14532d; margin-bottom: 1.5rem;
}
.form-error {
  padding: 1.25rem; background: #fef2f2; border: 1.5px solid #fecaca;
  border-radius: var(--radius-lg); color: #7f1d1d; margin-bottom: 1.5rem;
}

/* === 18. FOOTER ============================================ */
#site-footer {
  background: linear-gradient(140deg, #062a3a 0%, var(--primary-dark) 55%, #0a7d9c 100%);
  color: rgba(255,255,255,0.82);
}
.footer-top {
  max-width: 1440px; margin: 0 auto;
  padding: 2.75rem 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem; align-items: start;
}
.footer-logo img {
  filter: brightness(0) invert(1); opacity: 0.88;
  height: 55px; width: auto;
}
.footer-nav-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  list-style: none; padding: 0; margin: 0;
}
.footer-nav-list li a {
  color: rgba(255,255,255,0.68); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: color var(--transition);
}
.footer-nav-list li a:hover { color: white; text-decoration: none; }
.footer-contact {
  font-size: 0.82rem; line-height: 2; opacity: 0.78; text-align: right;
}
.footer-contact a { color: rgba(255,255,255,0.82); }
.footer-contact a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.1rem 1.75rem; text-align: center;
  font-size: 0.78rem; opacity: 0.5; font-weight: 500;
  max-width: 1440px; margin: 0 auto;
}

/* === 19. SEARCH FORM ======================================= */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.search-form input[type="search"] {
  flex: 1; padding: 0.65rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem;
  font-family: var(--font-sans); color: var(--text);
}
.search-form input[type="search"]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12,122,150,0.12);
}
.search-form button {
  background: var(--primary); color: white; border: none;
  padding: 0.65rem 1.35rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-sans); transition: background var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* === 20. 404 PAGE ========================================== */
.error-404 { text-align: center; padding: 3.5rem 0; }
.error-404 .error-code {
  font-size: 7rem; font-weight: 800; color: var(--primary-light);
  line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.05em;
}
.error-404 h1 { font-size: 1.5rem; margin-bottom: 1rem; }

/* === 21. PRINT ============================================= */
@media print {
  .sidebar, #site-header, #site-footer, .hero-section,
  .sidebar-toggle, .sidebar-backdrop, .pagination, .breadcrumb { display: none !important; }
  .site-layout { display: block !important; }
  .site-main { padding: 0; border: none; }
  * { background: white !important; color: black !important; }
  a { color: black !important; text-decoration: underline !important; }
}

/* === 22. RESPONSIVE ======================================== */
@media (max-width: 1200px) {
  :root { --sidebar-w: 200px; }
  .site-main { padding: 2rem 2rem; }
}

@media (max-width: 960px) {
  .site-layout { display: block; }
  .site-main {
    padding: 1.75rem 1.5rem;
    border-left: none;
  }
  /* Sidebar-left : drawer coulissant */
  .sidebar-left {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 290px; z-index: 499;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow: hidden;
  }
  .sidebar-left.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 36px rgba(0, 0, 0, 0.18);
  }
  .sidebar-inner {
    max-height: 100vh;
    position: static;
    padding-bottom: 2rem;
    overflow-y: auto;
  }
  .sidebar-close { display: flex; }
  .sidebar-toggle { display: flex; }

  /* Header responsive */
  .tagline-text { font-size: 0.82rem; max-width: 280px; }

  /* Contenu divers */
  .hero-section { margin: -1.75rem -1.5rem 2rem; padding: 2.25rem 1.5rem; }
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-contact { text-align: left; }
}

@media (max-width: 640px) {
  :root { --header-h: 80px; }
  .header-inner { padding: 0 1rem; gap: 0.75rem; }
  .site-logo { height: 54px; }
  .entry-title { font-size: 1.5rem; }
  .hero-tagline { font-size: 1.3rem; }
  .hero-section { padding: 2rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .alert-inner { flex-wrap: wrap; }
  .alert-link { width: 100%; text-align: center; }
  .site-main { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  .site-tagline { display: none; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
}

/* === 23. SIDEBAR ACCORDION ================================= */
.sidebar-left nav .menu-item-has-children { position: relative; }

/* Sous-menu : caché par défaut — déclaré ici pour l'override */
.sidebar-left nav .menu-item-has-children > .sub-menu { display: none; }
.sidebar-left nav .menu-item-has-children.is-open > .sub-menu { display: block; }

/* Conteneur flex du parent (lien + bouton toggle) */
.sidebar-left nav .menu-item-inner {
  display: flex; align-items: stretch;
}
.sidebar-left nav .menu-item-inner > a { flex: 1; }

/* Bouton toggle accordéon */
.submenu-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  width: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), background var(--transition);
  border-left: 1px solid var(--border-light);
  flex-shrink: 0;
}
.submenu-toggle:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.submenu-toggle svg {
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.menu-item-has-children.is-open > .menu-item-inner > .submenu-toggle {
  color: var(--primary);
}
.menu-item-has-children.is-open > .menu-item-inner > .submenu-toggle svg {
  transform: rotate(180deg);
}

/* === 24. ESPACE PATIENT — EP CARDS (front-page) ============ */
.ep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.ep-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.25rem 1.3rem 0;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  /* Accent vertical coloré à gauche */
  border-left: 5px solid var(--ep-color, var(--primary));
  padding-left: 1.1rem;
}
.ep-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateX(4px) translateY(-1px);
  border-color: var(--ep-color, var(--primary));
  text-decoration: none;
  color: var(--text);
}

/* Couleurs par carte */
.ep-card--teal   { --ep-color: #0c7a96; }
.ep-card--green  { --ep-color: #15803d; }
.ep-card--orange { --ep-color: #e85d04; }
.ep-card--purple { --ep-color: #7c3aed; }

/* Pastille icône */
.ep-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.ep-card--teal   .ep-card__icon { background: #e0f3f8; }
.ep-card--green  .ep-card__icon { background: #f0fdf4; }
.ep-card--orange .ep-card__icon { background: #fff4ee; }
.ep-card--purple .ep-card__icon { background: #f5f3ff; }

.ep-card:hover .ep-card__icon { transform: scale(1.08); }

/* Corps texte */
.ep-card__body { flex: 1; min-width: 0; }
.ep-card__heading {
  font-family: var(--font-head);
  font-size: 0.9rem; font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem; line-height: 1.3;
}
.ep-card__sub {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.45;
}

/* Flèche indicateur */
.ep-card__chevron {
  flex-shrink: 0; margin-left: 0.25rem;
  color: var(--ep-color, var(--primary));
  opacity: 0.45;
  transition: opacity var(--transition), transform var(--transition);
  font-size: 1.1rem; font-weight: 700;
}
.ep-card:hover .ep-card__chevron { opacity: 1; transform: translateX(3px); }

/* Responsive EP cards */
@media (max-width: 640px) {
  .ep-grid { grid-template-columns: 1fr; }
}

/* === 25. UTILITIES ========================================= */

.text-center { text-align: center; }
.text-orange  { color: var(--orange); }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.font-bold    { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }

/* WordPress alignment classes */
.aligncenter { display: block; margin: 1.5rem auto; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.clearfix::after { content: ''; display: table; clear: both; }

/* WordPress core */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1.5rem 0; }
.gallery-item img { border-radius: var(--radius); }
