/*
Theme Name: RPE Edgard Veau
Theme URI: https://rpe-mardie.fr
Description: Thème WordPress pour les Représentants de Parents d'Élèves de l'école Edgard Veau à Mardié (45430)
Version: 3.7.0
Author: RPE Mardié
Text Domain: rpe-edgard-veau
*/

:root {
  --primary: #1E1746;
  --primary-light: #2E256E;
  --primary-bg: #EFEDFF;
  --accent: #E2553A;
  --accent-dark: #C4442C;
  --accent-light: #FFE9E3;
  --navy: #1E1746;
  --coral: #E2553A;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --off-white: #F4F2FF;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(74, 29, 150, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img, picture {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  padding: 1rem 0;
}
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.site-header.scrolled .site-logo {
  color: var(--primary);
}
.main-navigation ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}
.main-navigation a {
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
}
.site-header.scrolled .main-navigation a {
  color: var(--text);
}
.main-navigation a:hover {
  color: var(--accent);
}
.btn-login {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.site-header.scrolled .btn-login {
  background-color: var(--primary);
}
.btn-login:hover {
  background-color: var(--white);
  color: var(--primary) !important;
}
.site-header.scrolled .btn-login:hover {
  background-color: var(--accent);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 16rem 0 14rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero-section::before {
  width: 400px;
  height: 400px;
  background-color: var(--accent);
  top: -150px;
  right: -100px;
  filter: blur(100px);
  opacity: 0.6;
}
.hero-section::after {
  width: 600px;
  height: 600px;
  background-color: rgba(255,255,255,0.15);
  bottom: -200px;
  left: -150px;
  filter: blur(80px);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-solid {
  background-color: var(--accent);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}
.btn-solid:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(255, 107, 107, 0.4);
}

/* Feature Cards Section */
.features-section {
  padding: 0 0 6rem 0;
  position: relative;
  z-index: 10;
  margin-top: -120px;
}
.feature-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(74, 29, 150, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(74, 29, 150, 0.12);
}
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Events Section */
.events-section {
  padding: 8rem 0;
  background-color: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  display: inline-block;
  position: relative;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20%;
  width: 60%;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}
.event-card {
  display: flex;
  gap: 1.5rem;
  background-color: var(--off-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.event-card:hover {
  transform: translateY(-4px);
}
.event-date {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  min-width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.event-date .day {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.event-date .month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.event-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.event-details p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* News Section */
.news-section {
  padding: 8rem 0;
}
.news-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
}
.news-thumb {
  position: relative;
}
.news-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.news-content {
  padding: 1.5rem;
}
.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.news-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.read-more:hover {
  color: var(--primary-light);
}

/* FAQ Accordion */
.faq-section {
  padding: 8rem 0;
  background-color: var(--white);
}
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background-color: var(--white);
  padding: 1.25rem 1.5rem;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.faq-question.active {
  background-color: #fff;
  color: var(--navy);
}
.faq-icon {
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.faq-question.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background-color: var(--white);
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  margin: 0;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
}

/* Newsletter/CTA */
.cta-section {
  background-color: var(--accent);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 {
  color: var(--white);
}
.cta-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
  gap: 0.5rem;
}
.cta-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
}
.cta-form button {
  background-color: var(--text);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}
.cta-form button:hover {
  background-color: var(--primary);
}

/* Footer */
.site-footer {
  position: relative;
  background-color: var(--text);
  color: var(--white);
  padding: 6rem 0 2rem;
  margin-top: 6rem;
}
/* Pas de vague : le footer c_original est navy à coins hauts arrondis. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 0.5rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}
.fcpe-badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Forms Styling */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}
input[type="submit"],
button[type="submit"] {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--accent-dark);
}

/* Page Specific */
.page-header {
  padding: 8rem 0 4rem;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  margin: 0;
}
.site-content {
  padding: 4rem 0;
}
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose p {
  margin-bottom: 1.5rem;
}
.prose h2, .prose h3 {
  margin-top: 2rem;
}

/* Block Editor Compatibility */
.alignwide {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
@media (min-width: 1200px) {
  .alignwide {
    margin-left: -100px;
    margin-right: -100px;
    max-width: calc(100% + 200px);
    width: auto;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  
  .menu-toggle {
    display: block;
    color: var(--white);
  }
  .site-header.scrolled .menu-toggle {
    color: var(--text);
  }
  
  .main-navigation ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }
  .main-navigation.is-open ul {
    right: 0;
  }
  .main-navigation ul a {
    color: var(--text) !important;
    font-size: 1.25rem;
  }
  
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .cta-form { flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .event-card { flex-direction: column; text-align: center; }
  .event-date { margin: 0 auto; }
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Generic Link Buttons */
.btn-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  transition: all 0.3s ease;
}
.btn-link:hover {
  color: var(--accent);
}

/* ===== Correctifs v1.1 — analyse navigateur 06/09/2026 ===== */

/* Utilitaires manquants (utilises dans front-page.php) */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Titres de sections (front-page utilise .section-title) */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Logo header */
.site-logo img {
  max-height: 56px;
  width: auto;
}
.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Burger : spans invisibles avant correctif */
.menu-toggle {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay mobile */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
body.menu-open { overflow: hidden; }

/* Events : compat noms de classes PHP (.event-day/.event-month/.event-info) */
.event-date .day,
.event-date .event-day {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.event-date .month,
.event-date .event-month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.event-details h3,
.event-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.event-details p,
.event-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* News : placeholder quand pas d'image */
.placeholder-gradient {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light) 60%, var(--accent));
}
.news-thumb img {
  height: 200px;
}

/* CTA box */
.cta-box {
  max-width: 640px;
  margin: 0 auto;
}
.cta-box p { margin-bottom: 1.5rem; }
.btn-solid-primary {
  display: inline-block;
  background-color: var(--white);
  color: var(--accent-dark);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.btn-solid-primary:hover { transform: translateY(-2px); }

/* Footer : badge FCPE + menus */
.fcpe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--white);
}
a.fcpe-badge:hover { color: var(--white); }
a.fcpe-badge:hover .fcpe-text { text-decoration: underline; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.5rem; }

/* ShareMyPost flottant : eviter recouvrement (vu capture desktop) */
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
}

/* ===== Prototype c_original_desktop v1.3-OpenCode =====
   Inspire : hero navy arrondi + blob corail, nav pill flottante,
   4 cartes glass en chevauchement, pastilles corail, footer navy arrondi. */

body { background-color: var(--off-white); }

/* Header pill flottante facon prototype */
.site-header {
  padding: 0.9rem 0;
  background: transparent;
}
.header-inner {
  background: rgba(30, 23, 70, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  box-shadow: 0 12px 32px rgba(30,23,70,0.28);
  gap: 1rem;
}
.site-logo img {
  max-height: 46px !important;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  width: auto;
}
.main-navigation ul { gap: 1.4rem; }
.main-navigation a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--accent);
}
.site-header.scrolled .header-inner {
  background: rgba(255,255,255,0.92);
  border-color: var(--border);
}
.site-header.scrolled .main-navigation a { color: var(--navy); }
.menu-toggle { color: #fff; }
.site-header.scrolled .menu-toggle { color: var(--navy); }
.btn-login {
  border-radius: 999px;
  background: var(--accent);
  padding: 0.55rem 1.3rem;
}

/* Hero navy arrondi + blob corail */
.hero-section {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M13 0 L16 10 L26 13 L16 16 L13 26 L10 16 L0 13 L10 10 Z' fill='%23E2553A'/%3E%3C/svg%3E") 9% 32% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M9 0 L11 7 L18 9 L11 11 L9 18 L7 11 L0 9 L7 7 Z' fill='%23FFFFFF' fill-opacity='0.5'/%3E%3C/svg%3E") 16% 72% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M10 0 L12 8 L20 10 L12 12 L10 20 L8 12 L0 10 L8 8 Z' fill='%23E2553A'/%3E%3C/svg%3E") 88% 28% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 0 L10 6 L16 8 L10 10 L8 16 L6 10 L0 8 L6 6 Z' fill='%23FFFFFF' fill-opacity='0.4'/%3E%3C/svg%3E") 79% 70% no-repeat,
    linear-gradient(160deg, #221A54 0%, var(--navy) 55%, #2E256E 100%);
  border-radius: 0 0 64px 64px;
  padding: 9rem 0 8rem;
}
.hero-section::before {
  width: 520px;
  height: 520px;
  background-color: var(--accent);
  top: auto;
  bottom: -260px;
  right: -140px;
  filter: none;
  opacity: 1;
  border-radius: 50%;
}
.hero-section::after {
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,0.08);
  top: 90px;
  left: 6%;
  bottom: auto;
  filter: none;
}
.hero-title {
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  overflow-wrap: break-word;
}
.hero-subtitle { color: #fff; }
.hero-subtitle strong, .hero-subtitle em { color: var(--accent); font-style: normal; }
.hero-buttons .btn-outline,
.hero-buttons .btn-solid {
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
}
.hero-buttons .btn-outline {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}
.hero-buttons .btn-solid,
.btn-solid {
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(255,126,103,0.4);
}
.hero-buttons .btn-solid:hover { background: var(--accent-dark); }

/* Ordre accueil (ma copie) : hero → raccourcis → événements → actus.
   Desktop : les 4 cartes chevauchent le hero. Mobile : pas de chevauchement. */
.features-section {
  margin-top: -7rem;
  padding-top: 0;
}
.events-section {
  margin-top: 0;
  padding: 4rem 0;
  position: relative;
}
@media (max-width: 768px) {
  .features-section { margin-top: 0; padding: 3rem 0; }
  .events-section { margin-top: 0; padding: 3.5rem 0; }
}
.features-section {
  padding: 4rem 0 5rem;
  position: relative;
}
.feature-card {
  border-radius: 22px;
  border: 1px solid rgba(30,23,70,0.08);
  background: #fff;
  box-shadow: 0 18px 44px rgba(30,23,70,0.14);
  padding: 1.8rem 1.4rem;
}
.feature-card:hover { transform: translateY(-8px); }
.feature-icon {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  background: linear-gradient(180deg, #fff, var(--accent-light));
  border: 1px solid rgba(255,126,103,0.3);
}
.feature-card h3 { color: var(--navy); font-size: 1.15rem; }
.feature-card p { color: var(--text-light); }
.feature-pill {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
}

/* Sections : titres navy centrés */
.section-title { color: var(--navy); }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -1.8rem;
  margin-bottom: 2.2rem;
  font-size: 0.95rem;
}

/* Events / News facon prototype */
.events-section { background: transparent; }
.event-card,
.news-card {
  border-radius: 22px;
  border: 1px solid rgba(30,23,70,0.07);
  background: #fff;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
}
.event-date { background: var(--accent-light); color: var(--accent-dark); border-radius: 16px; }
.news-thumb img, .placeholder-gradient { border-radius: 16px 16px 0 0; }
.placeholder-gradient { background: linear-gradient(135deg, var(--navy), #3B2E8A 55%, var(--accent)); }
.news-cat {
  background: var(--accent);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.read-more, .btn-link { color: var(--accent-dark); }
.pill-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
}
.pill-btn:hover { background: var(--accent-dark); }

/* FAQ : lignes arrondies + pastille + */
.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(30,23,70,0.08);
  background: #fff;
  box-shadow: 0 8px 22px rgba(30,23,70,0.07);
}
.faq-question { border-radius: 18px; font-weight: 600; color: var(--navy); }
.faq-icon {
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faq-question.active .faq-icon {
  transform: rotate(45deg);
}
.faq-item.active .faq-answer {
  background-color: #fff;
  border-radius: 0 0 18px 18px;
  border-top: 1px solid var(--border);
}
.faq-item.active .faq-answer p,
.faq-item.active .faq-answer-inner {
  color: var(--text);
}

/* CTA + Footer navy arrondi */
.cta-section {
  background: transparent;
  padding: 3rem 0 4rem;
}
.cta-box {
  background: linear-gradient(135deg, var(--navy), #332686);
  color: #fff;
  border-radius: 28px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--accent);
  border-radius: 50%;
  right: -90px;
  bottom: -120px;
}
.cta-box h2, .cta-box p { color: #fff; position: relative; z-index: 1; }
.cta-box .btn-outline {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
}
.site-footer {
  background: var(--navy);
  border-radius: 48px 48px 0 0;
  padding-top: 2rem;
}
.site-footer h3 { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,0.14); }

/* Responsive Overrides (1024px, 768px, 480px) */
@media (max-width: 1024px) {
  .hero-section {
    padding: 12rem 0 10rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner { border-radius: 22px; }
  .hero-section {
    padding: 9rem 0 8rem;
    border-radius: 0 0 40px 40px;
  }
  .hero-section::before { width: 250px; height: 250px; top: -100px; right: -80px; }
  .hero-section::after { width: 350px; height: 350px; bottom: -150px; left: -100px; }
  
  .hero-title {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  .hero-buttons .btn-outline,
  .hero-buttons .btn-solid {
    width: 100%;
  }

  .events-section {
    padding: 3.5rem 0;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .menu-toggle {
    display: flex; /* Burger visible sur mobile */
  }
  /* Le menu mobile coulisse via .main-navigation.is-open (voir media query 768px ci-dessus) */
}

@media (max-width: 480px) {
  .hero-section {
    padding: 7rem 0 6rem;
  }
  .events-section {
    padding: 3rem 0;
  }
  .events-section, .news-section, .faq-section {
    padding: 5rem 0;
  }
}

/* ===== v1.4-OpenCode : alignement site_content.md + pages internes ===== */

/* Accessibilité : skip-link visible au focus clavier */
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

/* En-têtes de pages internes : même langage que le hero */
.page-header {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M11 0 L13 9 L22 11 L13 13 L11 22 L9 13 L0 11 L9 9 Z' fill='%23E2553A'/%3E%3C/svg%3E") 12% 30% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 0 L10 6 L16 8 L10 10 L8 16 L6 10 L0 8 L6 6 Z' fill='%23FFFFFF' fill-opacity='0.4'/%3E%3C/svg%3E") 86% 32% no-repeat,
    linear-gradient(160deg, #221A54 0%, var(--navy) 60%, #2E256E 100%);
  border-radius: 0 0 48px 48px;
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent);
  border-radius: 50%;
  right: -100px;
  bottom: -170px;
}
.page-header h1, .page-header p { position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.85); }

/* Contenus pages / articles / archives */
.page-content, .blog-content, .single-content {
  padding: 3.5rem 0 4.5rem;
}
.content-area, .single-content article, .blog-content .posts-grid {
  max-width: 1200px;
}
.single-content article {
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  padding: 2.2rem;
}
.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.6rem;
}
.post-thumbnail { margin-bottom: 1.5rem; }
.post-thumbnail img { border-radius: 16px; }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; }

/* Cartes actus (index.php) : titres, dates, extraits */
.news-card-title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.news-card-title a { color: var(--navy); }
.news-card-meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0.6rem; }
.news-card-excerpt { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.news-cat-static { position: static; display: inline-block; margin-bottom: 0.8rem; }

/* Pagination */
.pagination, .nav-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination .page-numbers, .nav-links a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Navigation article suivant/précédent */
.post-navigation { margin-top: 2rem; }
.nav-links-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nav-subtitle { display: block; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; }
.nav-title { color: var(--navy); font-weight: 700; }

/* Recherche (searchform.php sans styles inline) */
.search-form { max-width: 480px; margin: 0 auto; }
.search-input-wrapper { display: flex; align-items: stretch; }
.search-field {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px 0 0 999px;
  font-family: inherit;
}
.search-submit {
  padding: 0 1.3rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.search-submit:hover { background: var(--accent-dark); }

/* Page 404 (sans styles inline) */
.error-404 .container { text-align: center; padding: 9rem 0 5rem; }
.error-title {
  font-size: clamp(5rem, 18vw, 8rem);
  margin: 0;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-404 .btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 700;
}
.error-404 .search-container { max-width: 420px; margin: 2rem auto 0; }

/* Logo FCPE (footer) */
.fcpe-logo { background: #fff; border-radius: 8px; padding: 4px; }

/* Liens footer bas */
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

/* ===== v1.6-OpenCode : retour au corail c_original (#FF7E67) ===== */
/* v3.6-audit (INTRA-2) : corail assombri #E2553A (blanc dessus = 4,6:1 ✓ AA).
   Ne jamais remettre du blanc sur #FF7E67 (≈ 2,4:1). */
/* Blanc sur pastilles/boutons corail d'origine, comme la maquette. */
.feature-pill,
.pill-btn,
.search-submit,
.faq-icon,
.news-cat,
.btn-solid,
.hero-buttons .btn-solid,
.cta-box .btn-outline { background-color: var(--accent); }
.hero-buttons .btn-solid { box-shadow: 0 10px 24px rgba(255,126,103,0.4); }
.feature-pill:hover,
.pill-btn:hover,
.search-submit:hover,
.hero-buttons .btn-solid:hover,
.cta-box .btn-outline:hover { background-color: var(--accent-dark); }
.faq-icon { background: var(--accent); }
.faq-question.active .faq-icon { background: var(--accent); }

/* Shortcode FAQ : même rythme que les sections */
.rpe-faq-shortcode { max-width: 800px; margin: 0 auto; }
/* ===== v3.0-OpenCode : bandeau newsletter fin (Page 12) ===== */
.newsletter-band { padding: 0 0 4rem; }
.newsletter-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--navy), #332686);
  border-radius: 24px;
  padding: 1.6rem 2rem;
  position: relative;
  overflow: hidden;
}
.newsletter-band-inner::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: var(--accent);
  border-radius: 50%;
  right: -80px;
  bottom: -100px;
}
.newsletter-band-text h2 { color: #fff; font-size: 1.4rem; margin-bottom: 0.2rem; }
.newsletter-band-text p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }
.newsletter-band-text, .newsletter-band-btn { position: relative; z-index: 1; }
.newsletter-band-btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .newsletter-band-inner { flex-direction: column; text-align: center; }
}

/* ===== v3.1-OpenCode : header chargé, Espace à droite, sans partage ===== */
/* Le logo ne s'écrase ni ne se rogne, même pill chargée.
   Dimensions explicites : le SVG fait 100% x 100% et s'effondrerait sinon. */
.site-logo { flex-shrink: 0; }
.site-logo img {
  width: 220px;
  height: auto;
  max-height: 46px;
}
@media (max-width: 480px) {
  .site-logo img { width: 170px; }
}

/* La nav occupe l'espace : liens sur une ligne, Espace RPE tout à droite. */
.main-navigation { flex: 1; min-width: 0; }
.main-navigation ul { width: 100%; }
.main-navigation ul a { white-space: nowrap; }
.main-navigation ul > li:last-child { margin-left: auto; }

/* Burger dès 1024px : 9 liens ne tiennent plus dans la pill en dessous. */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; color: #fff; }
  .site-header.scrolled .menu-toggle { color: var(--navy); }
  .main-navigation ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 5.5rem 1.6rem 2.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }
  .main-navigation.is-open ul { right: 0; }
  .main-navigation ul a { color: var(--text) !important; }
  .main-navigation ul > li:last-child { margin-left: 0; }
}

/* Retrait des blocs de partage ShareMyPost (barre flottante + modale).
   Mieux : désactiver l'extension (1 clic, 4 requêtes en moins). */
.sharemypost-share-bar.sharemypost-floating-bar,
.sharemypost-modal-overlay,
#sharemypost-modal-overlay { display: none !important; }/* Titres fluides + retour à la ligne équilibré : pas de rognage. */
.hero-title { font-size: clamp(1.5rem, 6vw, 4.2rem); text-wrap: balance; }
.section-title { font-size: clamp(1.45rem, 5vw, 2.25rem); text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 5.5vw, 2.25rem); }
@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .hero-section { padding: 6.5rem 0 5.5rem; }
  .feature-card { padding: 1.5rem 1.1rem; }
  /* Tableaux (contenus site_content) : défilement horizontal propre */
  .page-content table, .entry-content table, .blog-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }
  .page-content th, .page-content td,
  .entry-content th, .entry-content td { padding: 0.5rem 0.6rem; }
}

/* ===== v2.9-OpenCode : drawer mobile soigné et scrollable ===== */
@media (max-width: 768px) {
  /* Le panneau défile : on ne reste plus coincé en bas de liste. */
  .main-navigation.is-open ul {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    align-items: stretch;
    padding: 5.5rem 1.6rem 2.5rem;
    gap: 0;
  }
  .main-navigation.is-open ul li { width: 100%; }
  .main-navigation.is-open ul li a {
    display: block;
    font-size: 1.05rem !important;
    font-weight: 600;
    padding: 0.8rem 0.3rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .main-navigation.is-open ul li a:hover { color: var(--accent-dark); }
  /* Espace RPE en pastille corail pleine largeur */
  .main-navigation.is-open .menu-espace { margin-top: 1.2rem; }
  .main-navigation.is-open .menu-espace a,
  .main-navigation.is-open li:has(a[href*="intra"]) a {
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    text-align: center;
    padding: 0.8rem 1.2rem;
  }
}

/* Footer compact */
.site-footer { padding-top: 2rem; }
.footer-grid { gap: 2rem; margin-bottom: 1.4rem; }
.site-footer h3 { margin-bottom: 0.9rem; }
/* Liens utiles sur 2 colonnes (10 liens) pour un footer moins haut */
.footer-menu { column-count: 2; column-gap: 2rem; }
.footer-menu li { break-inside: avoid; }
.footer-desc { margin-bottom: 0.5rem; }
.fcpe-badge { margin-top: 0.7rem; }
.footer-bottom { padding-top: 1.2rem; }

/* ===== v2.0-OpenCode : layout contenu 2/3 + latéral 1/3, équipe ===== */
/* Page Conseils d'école : texte à gauche, téléchargements en colonne sticky à droite. */
.rpe-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.rpe-sidebar {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  padding: 1.6rem;
}
.rpe-sidebar h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 1rem; }
.rpe-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.rpe-sidebar a { color: var(--accent-dark); font-weight: 600; }
@media (max-width: 767px) {
  .rpe-cols { grid-template-columns: 1fr; }
  .rpe-sidebar { position: static; }
}

/* Page Conseils d'école + Commissions (contenu Gutenberg) : documents à gauche
   sur desktop, en premier sur mobile — quel que soit l'ordre enregistré. */
.page-conseils-ecole .wp-block-columns,
.page-commissions .wp-block-columns {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.page-conseils-ecole .wp-block-column.rpe-sidebar,
.page-commissions .wp-block-column.rpe-sidebar {
  order: -1;
  flex-basis: 33.33% !important;
}
.page-conseils-ecole .wp-block-columns > .wp-block-column:not(.rpe-sidebar),
.page-commissions .wp-block-columns > .wp-block-column:not(.rpe-sidebar) {
  flex-basis: 66.66% !important;
}
@media (max-width: 781px) {
  .page-conseils-ecole .wp-block-columns,
  .page-commissions .wp-block-columns {
    flex-direction: column;
  }
  .page-conseils-ecole .wp-block-column.rpe-sidebar,
  .page-conseils-ecole .wp-block-columns > .wp-block-column:not(.rpe-sidebar),
  .page-commissions .wp-block-column.rpe-sidebar,
  .page-commissions .wp-block-columns > .wp-block-column:not(.rpe-sidebar) {
    flex-basis: 100% !important;
  }
}

/* Trombinoscope [rpe_equipe] : cartes + initiales en attendant les photos */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3B2E8A 60%, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}
.team-photo {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
}
.team-name { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.3rem; }
.team-classes { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0.6rem; }
.team-role {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== v1.8-OpenCode : zone centrale actus (2/3) + événements (1/3) ===== */
/* Côte à côte sur PC et tablette, empilés (actus d'abord) sur mobile. */
.home-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.home-columns .news-section,
.home-columns .events-section { padding: 0; margin-top: 0; }
.home-columns .section-title { font-size: 1.6rem; }
.events-list { display: grid; gap: 1.25rem; }
.events-list .event-card { padding: 1.1rem; gap: 1rem; }
@media (max-width: 1100px) {
  /* Tablette : actus à la suite, en ligne horizontale défilante */
  .home-main .grid-3 {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
  }
  .home-main .news-card {
    min-width: 240px;
    max-width: 240px;
    scroll-snap-align: start;
  }
}
@media (max-width: 767px) {
  .home-columns { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Mobile : actus empilées verticalement */
  .home-main .grid-3 { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .home-main .news-card { min-width: 0; max-width: none; }
}

/* ===== v3.2-OpenCode : header stable 7 items, logo centré, Espace à droite ===== */
/* Cause du bug : 9 liens forçaient le débordement de la pill — le logo sortait
   à gauche et « Espace RPE » était rogné à droite (vu captures 1280px).
   Correctif : menu ramené à 7 items (Boîte à questions + Nos projets restent
   joignables via accueil + footer), pill cadrée, logo centré verticalement. */
.site-header .container {
  max-width: 1240px;
}
.header-inner {
  align-items: center;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.site-logo {
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 0;
}
.site-logo a {
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  display: block;
}
/* 8 liens : resserrés pour tenir sur une ligne à 1280px, Espace poussé à droite. */
.main-navigation ul {
  gap: 0.95rem;
  justify-content: flex-end;
}
.main-navigation ul a {
  font-size: 0.88rem;
}
.main-navigation ul > li:last-child {
  margin-left: auto;
  flex-shrink: 0;
}
/* Burger dès 1200px : la pill ne peut plus accueillir 8 liens en dessous. */
@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; color: #fff; }
  .site-header.scrolled .menu-toggle { color: var(--navy); }
  /* Sans ceci, le backdrop-filter fait de la pill le bloc de référence du
     panneau fixed + overflow:hidden le rogne : le menu ne s'ouvre pas. */
  .header-inner,
  .site-header.scrolled .header-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-navigation ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5.5rem 1.6rem 2.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }
  .main-navigation.is-open ul { right: 0; }
  .main-navigation ul a { color: var(--text) !important; font-size: 1.05rem; }
  .main-navigation ul > li:last-child { margin-left: 0; }
}

/* ===== v3.3-OpenCode : The Events Calendar (/events) aux couleurs du site ===== */
/* L'archive /events est native TEC (modèle « Default Events Template »).
   Ne PAS créer de page WP « events ». Ancienne page « calendrier » : 301 via functions.php. */
.tribe-common.tribe-events {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: transparent;
  padding: 7.5rem 0 4rem;
}
.tribe-common.tribe-events h1,
.tribe-common.tribe-events h2,
.tribe-common.tribe-events h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
}
/* Bandeau titre façon hero */
.tribe-events .tribe-events-header {
  background: linear-gradient(160deg, #221A54 0%, var(--navy) 55%, #2E256E 100%);
  border-radius: 0 0 40px 40px;
  padding: 2.5rem 1.5rem 3.5rem;
  margin-bottom: -2rem;
  text-align: center;
}
.tribe-events .tribe-events-header__title h1 {
  color: var(--accent) !important;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
}
.tribe-events .tribe-events-header__description {
  color: rgba(255,255,255,0.85);
}
/* Barre recherche / vues : carte blanche DANS le bandeau navy.
   Tout ce qui est SUR le navy est blanc ; tout ce qui est SUR la carte est navy. */
.tribe-events .tribe-events-c-events-bar {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  padding: 0.6rem 1rem;
}
.tribe-events .tribe-events-c-search__input {
  border-radius: 999px;
  border-color: var(--border);
  color: var(--text);
}
.tribe-events .tribe-events-c-search__input::placeholder {
  color: var(--text-light);
  opacity: 1;
}
.tribe-events .tribe-events-c-search__input:focus {
  border-color: var(--accent);
  outline: none;
}
.tribe-events .tribe-events-c-search__input-group-icon-svg {
  color: var(--navy);
}
/* Bouton « Chercher » : spécificité renforcée (le bleu TEC charge après le thème). */
.tribe-events .tribe-events-c-search__button.tribe-common-c-btn {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
}
.tribe-events .tribe-events-c-search__button.tribe-common-c-btn:hover,
.tribe-events .tribe-events-c-search__button.tribe-common-c-btn:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
/* Onglets Liste / Mois / Jour (sur carte blanche) : navy, actif souligné corail. */
.tribe-events .tribe-events-c-view-selector__list-item-link {
  color: var(--navy);
  font-weight: 600;
  padding: 0.6rem 0.2rem;
}
.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
  color: var(--accent-dark);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.tribe-events .tribe-events-c-view-selector__button {
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
}
/* Barre haute SUR le navy : tout en blanc, lisible (correctif textes illisibles).
   Note : le CSS TEC charge APRÈS le thème avec des sélecteurs en (0,2,1)+ —
   les surcharges ci-dessous sont volontairement plus spécifiques. */
.tribe-events .tribe-events-c-top-bar {
  margin: 1.5rem 0 1rem;
}
.tribe-events .tribe-events-header button.tribe-events-c-top-bar__datepicker-button {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: transparent;
  border: none;
}
.tribe-events .tribe-events-header button.tribe-events-c-top-bar__datepicker-button:hover,
.tribe-events .tribe-events-header button.tribe-events-c-top-bar__datepicker-button:focus {
  color: var(--accent);
  opacity: 1;
}
.tribe-events .tribe-events-header button.tribe-events-c-top-bar__datepicker-button .tribe-events-c-top-bar__datepicker-button-icon-svg {
  color: currentColor;
}
.tribe-events .tribe-events-c-top-bar__today-button.tribe-common-c-btn {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  border-radius: 999px;
  font-weight: 700;
  min-height: 44px;
}
.tribe-events .tribe-events-c-top-bar__today-button.tribe-common-c-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* Flèches ‹ › : pastilles cerclées blanches sur navy.
   La couleur vient du `fill` du path SVG (pas de `color`) — d'où cette surcharge. */
.tribe-events .tribe-events-c-top-bar a.tribe-events-c-top-bar__nav-link,
.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link .tribe-common-c-btn-icon__icon-svg path {
  fill: #fff;
}
.tribe-events .tribe-events-c-top-bar a.tribe-events-c-top-bar__nav-link:hover,
.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link:hover {
  border-color: var(--accent);
  opacity: 1;
}
.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link:hover .tribe-common-c-btn-icon__icon-svg path {
  fill: var(--accent);
}
.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link:disabled {
  opacity: 0.35;
}
.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link:disabled .tribe-common-c-btn-icon__icon-svg path {
  fill: rgba(255, 255, 255, 0.5);
}
/* --- Vue mois --- */
.tribe-events .tribe-events-calendar-month {
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  /* Pas de overflow:hidden : les tooltips d'événements dépassent des cases. */
}
.tribe-events .tribe-events-calendar-month__header-column-title {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.tribe-events .tribe-events-calendar-month__day {
  border-color: rgba(30,23,70,0.07);
}
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-weight: 800;
}
.tribe-events .tribe-events-calendar-month__day--other-month {
  background: var(--off-white);
  opacity: 0.75;
}
.tribe-events .tribe-events-calendar-month__event-title {
  font-weight: 600;
}
.tribe-events .tribe-events-calendar-month__event-title a {
  color: var(--navy);
  border-left: 3px solid var(--accent);
  padding-left: 0.4rem;
  display: inline-block;
}
.tribe-events .tribe-events-calendar-month__event-title a:hover {
  color: var(--accent-dark);
}
.tribe-events .tribe-events-calendar-month__multiday-event-bar-inner {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 999px;
}
.tribe-events .tribe-events-calendar-month__event-tooltip {
  border-radius: 18px;
  border: 1px solid rgba(30,23,70,0.08);
  box-shadow: 0 18px 44px rgba(30,23,70,0.18);
}
.tribe-events .tribe-events-calendar-month__event-tooltip-title a {
  color: var(--navy);
}
/* --- Vue liste : textes bien contrastés sur cartes blanches --- */
.tribe-events .tribe-events-calendar-list__month-separator-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 1.4rem;
  font-size: 1rem;
  text-transform: capitalize;
}
.tribe-events .tribe-events-calendar-list__month-separator::after {
  display: none;
}
.tribe-events .tribe-events-calendar-list__event-row {
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.tribe-events .tribe-events-calendar-list__event-row--featured {
  border: 2px solid var(--accent);
}
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
}
.tribe-events .tribe-events-calendar-list__event-title {
  font-size: 1.25rem;
}
.tribe-events .tribe-events-calendar-list__event-title a {
  color: var(--navy);
}
.tribe-events .tribe-events-calendar-list__event-title a:hover {
  color: var(--accent-dark);
}
.tribe-events .tribe-events-calendar-list__event-datetime {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.tribe-events .tribe-events-calendar-list__event-venue {
  color: var(--text-light);
}
.tribe-events .tribe-events-calendar-list__event-description {
  color: var(--text);
}
.tribe-events .tribe-events-calendar-list__event-cost {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 0.82rem;
}
/* --- Boutons, export, messages --- */
.tribe-events .tribe-common-c-btn,
.tribe-events a.tribe-events-c-ical__link,
.tribe-events .tribe-events-c-small-cta__link {
  display: inline-block;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.tribe-events .tribe-common-c-btn:hover,
.tribe-events a.tribe-events-c-ical__link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.tribe-events .tribe-events-c-messages__message {
  border-radius: 16px;
  background: var(--primary-bg);
  border: 1px solid rgba(30,23,70,0.1);
}
.tribe-events .tribe-events-c-subscribe-dropdown__button {
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
}
/* --- Événement seul (single) --- */
.tribe-events-single .tribe-events-schedule {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  margin: 1rem 0;
}
.tribe-events-single .tribe-events-event-meta {
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
}
.tribe-events-single .tribe-events-meta-group__title {
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
}
.tribe-events-single .tribe-events-venue-map > div {
  border-radius: 16px;
  overflow: hidden;
}
.tribe-events-single .tribe-events-event-image img {
  border-radius: 22px;
}
.tribe-events .tribe-events-back a {
  color: var(--accent-dark);
  font-weight: 700;
}
/* --- Mobile --- */
@media (max-width: 768px) {
  .tribe-common.tribe-events { padding-top: 6.5rem; }
  .tribe-events .tribe-events-header { border-radius: 0 0 28px 28px; }
  .tribe-events .tribe-events-calendar-month { overflow-x: auto; }
  .tribe-events .tribe-events-calendar-list__event-row { padding: 1rem; }
  /* Recherche empilée, bouton pleine largeur (cible 44px). */
  .tribe-events .tribe-events-c-events-bar {
    padding: 1rem;
  }
  .tribe-events .tribe-events-c-search__button.tribe-common-c-btn {
    width: 100%;
    margin-top: 0.6rem;
  }
  .tribe-events .tribe-events-c-top-bar__datepicker-button { font-size: 1.1rem; }
}

/* --- Template événement seul du thème (single-tribe_events.php) --- */
.event-back {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.event-back:hover { color: #fff; }
.event-schedule {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  margin-top: 1rem;
  font-weight: 600;
}
.event-meta-card {
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(30,23,70,0.1);
  padding: 1.6rem;
  margin-top: 2.5rem;
}
.event-meta-card h2 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.event-meta-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.event-meta-card a { color: var(--accent-dark); font-weight: 600; }
.event-nav { margin-top: 0; }
.event-nav .nav-previous a,
.event-nav .nav-next a {
  display: block;
  background: #fff;
  border: 1px solid rgba(30,23,70,0.08);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  color: var(--navy);
  font-weight: 700;
}
.event-nav .nav-previous a:hover,
.event-nav .nav-next a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ===== v3.6 : 4 visuels d'accueil + accessibilité E1 =====
   Illustrations PNG palettisées (cercle crème intégré à l'image) :
   le conteneur ne dessine AUCUN fond (cf. LISEZ-MOI-integration.md).
   E1 : titres des cartes passés de H3 à H2 — même rendu visuel. */
.bloc-illustration {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 16px;
  /* Ne PAS ajouter de background ni de border-radius :
     le cercle de fond est intégré à l'image. */
}
.feature-card .feature-title {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== v3.6-audit : focus clavier visible (E7) =====
   Ne jamais faire outline:none sans remplacement visible. */
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

/* ===== v3.6.7 : le backdrop-filter du header SCROLLÉ faisait du header
   le bloc de référence du tiroir mobile (position:fixed) : dès qu'on
   scrollait, le menu s'ouvrait « dans » le header au lieu de l'écran.
   Sur mobile, la pastille porte déjà le fond — le header reste neutre. */
@media (max-width: 1200px) {
  .site-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}
@media (max-width: 640px) {
  .header-inner { gap: 0.5rem; padding: 0.5rem 0.55rem 0.5rem 0.9rem; }
  .main-navigation { flex: 0 0 auto; min-width: 0; }
  .site-logo img { width: 132px !important; max-height: 40px !important; }
  .header-actions { gap: 0.5rem; flex-shrink: 0; margin-left: auto; }
  .header-actions .btn-login { padding: 0.5rem 0.95rem; font-size: 0.85rem; white-space: nowrap; }
  .menu-toggle { display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; }
  .hero-title, .hero-subtitle { position: relative; z-index: 2; }
  .hero-title { font-size: 1.45rem; }
  /* Le blob corail ne doit jamais passer sous le titre (ton sur ton illisible). */
  .hero-section::before { width: 170px; height: 170px; top: -115px; right: -115px; bottom: auto; }
}
