/* ===== Groupe Egaé Theme — Custom CSS ===== */

/* Design tokens inherited from theme.json */
:root {
  --section-gap: 80px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --shadow-card: 0 4px 24px rgba(26, 46, 34, 0.06);
  --shadow-large: 0 8px 40px rgba(26, 46, 34, 0.08);
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-md);
}

/* ===== Navigation ===== */
.egae-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp--preset--color--border-light);
  transition: background 0.2s, box-shadow 0.2s;
}

.admin-bar .egae-nav {
  top: 32px;
}



@media screen and (max-width: 782px) {
  .admin-bar .egae-nav {
    top: 46px;
  }
  .admin-bar .egae-nav-inner {
  padding-top: 25px;
    padding-top: 6px;
    min-height: 64px;
  }
}

.egae-nav.scrolled {
}
.egae-nav.scrolled {
  background: rgba(247, 248, 244, 0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.egae-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px var(--space-lg);
}
.egae-nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}
.egae-nav-logo img {
  height: 43px;
  width: auto;
  transition: height 0.2s;
}
.egae-nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  list-style: none;
}
.egae-nav-links a {
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.egae-nav-links a:hover,
.egae-nav-links a.active {
  color: var(--wp--preset--color--accent);
}
.egae-nav-cta {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  font-weight: 600 !important;
  white-space: nowrap;
}
.egae-nav-cta:hover {
  background: var(--wp--preset--color--accent-hover) !important;
}

/* Hamburger */
.egae-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px 10px;
  z-index: 200;
  position: relative;
}
.egae-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wp--preset--color--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.egae-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.egae-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.egae-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.egae-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--wp--preset--color--surface-light);
  border-left: 1px solid var(--wp--preset--color--border-light);
  padding: 100px var(--space-xl) var(--space-xl);
  transition: right 0.3s ease;
  z-index: 150;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.egae-mobile-nav.open {
  right: 0;
  display: flex;
  flex-direction: column;
}
.egae-mobile-nav a {
  display: block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 18px;
  font-weight: 500;
  color: var(--wp--preset--color--text-primary);
  text-decoration: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--wp--preset--color--border-light);
}
.egae-mobile-nav a:hover {
  color: var(--wp--preset--color--accent);
}
.egae-mobile-nav .egae-nav-cta {
  display: inline-block;
  margin-top: var(--space-lg);
  text-align: center;
}
.egae-nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 140;
  opacity: 0;
  transition: opacity 0.3s;
}
.egae-nav-backdrop.show {
  display: block;
  opacity: 1;
}

/* ===== Hero ===== */
.egae-hero {
  padding-top: 130px;
  padding-bottom: var(--space-xxxl);
  background: linear-gradient(160deg, var(--wp--preset--color--surface) 0%, #EEF2EC 50%, var(--wp--preset--color--surface-light) 100%);
  position: relative;
  overflow: hidden;
}
.egae-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 140, 106, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.egae-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 140, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.egae-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.egae-hero-content {
  animation: fadeUp 0.8s ease 0.2s both;
}
.egae-hero-tagline {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--wp--preset--color--contrast);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.egae-hero-content h1 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-lg);
}
.egae-hero-content h1 em {
  font-style: normal;
  color: var(--wp--preset--color--accent);
}
.egae-hero-content p {
  font-family: var(--wp--preset--font-family--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}
.egae-hero-ctas {
  display: flex;
  gap: var(--space-md);
}
.egae-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s ease 0.4s both;
}

/* ===== Hero Carousel ===== */
.egae-carousel-card {
  position: relative;
  border-radius: var(--radius-xxl);
  overflow: hidden;
  box-shadow: var(--shadow-large);
  max-width: 484px;
  width: 100%;
  background: var(--wp--preset--color--surface-light);
  border: 1px solid var(--wp--preset--color--border-light);
}
.egae-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.egae-carousel-slide {
  min-width: 100%;
  position: relative;
}
.egae-carousel-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.egae-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xxl) var(--space-xl) var(--space-lg);
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.7) 60%);
}
.egae-carousel-overlay h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--wp--preset--color--white);
  margin-bottom: 4px;
}
.egae-carousel-overlay p {
  font-size: 13px;
  color: var(--wp--preset--color--accent-light);
}
.egae-carousel-dots {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-lg);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.egae-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.egae-carousel-dots button.active {
  background: var(--wp--preset--color--white);
  width: 24px;
  border-radius: 4px;
}

/* ===== Stats Bar ===== */
.egae-stats-bar {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xxl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-card);
}
.egae-stat-item {
  text-align: center;
}
.egae-stat-item:not(:last-child) {
  border-right: 1px solid var(--wp--preset--color--border-light);
}
.egae-stat-number {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--wp--preset--color--accent);
  line-height: 1.1;
  display: inline-block;
}
.egae-stat-number.animated {
  animation: countUp 0.6s ease forwards;
}
.egae-stat-label {
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  margin-top: var(--space-xs);
}

/* ===== Section Headers ===== */
.egae-section-label {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: var(--space-md);
}
.egae-section-title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.20;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-md);
}
.egae-section-subtitle {
  font-size: 18px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: var(--space-xxl);
}

/* ===== Services Grid ===== */
.egae-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.egae-service-card {
  background: var(--wp--preset--color--surface-light);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: transform 0.25s, box-shadow 0.25s;
}
.egae-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.egae-service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(74, 140, 106, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.egae-service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--wp--preset--color--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.egae-service-card h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.30;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-sm);
}
.egae-service-card p {
  font-size: 15px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.55;
}

/* ===== Approach (Dark) ===== */
.egae-approach {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--text-on-dark-primary);
}
.egae-approach .egae-section-label {
  color: var(--wp--preset--color--accent-light);
}
.egae-approach .egae-section-title {
  color: var(--wp--preset--color--text-on-dark-primary);
}
.egae-approach .egae-section-subtitle {
  color: var(--wp--preset--color--text-on-dark);
}
.egae-approach-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xxl);
}
.egae-approach-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: var(--space-xl);
}
.egae-approach-sidebar a {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--wp--preset--color--text-on-dark);
  text-decoration: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.2s;
  cursor: pointer;
}
.egae-approach-sidebar a:hover,
.egae-approach-sidebar a.active {
  color: var(--wp--preset--color--contrast);
  padding-left: var(--space-sm);
}
.egae-approach-sidebar a.active {
  font-weight: 600;
  border-bottom-color: var(--wp--preset--color--contrast);
}
.egae-approach-panel {
  display: none;
}
.egae-approach-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
.egae-approach-panel h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--wp--preset--color--text-on-dark-primary);
  margin-bottom: var(--space-lg);
}
.egae-approach-panel p {
  font-size: 16px;
  color: var(--wp--preset--color--text-on-dark);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* ===== Clients / Logos ===== */
.egae-logos-row {
  display: flex;
  gap: var(--space-xxl);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.55;
}
.egae-logo-placeholder {
  height: 32px;
  padding: 0 var(--space-lg);
  border-right: 1px solid var(--wp--preset--color--border-light);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--wp--preset--color--text-tertiary);
  white-space: nowrap;
}
.egae-logo-placeholder:last-child {
  border-right: none;
}

/* ===== Contact ===== */
.egae-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: start;
}
.egae-contact-info h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-md);
}
.egae-contact-info p {
  font-size: 16px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.egae-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.egae-contact-cta:hover {
  background: var(--wp--preset--color--accent-hover);
}
.egae-social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.egae-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--wp--preset--color--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.egae-social-link:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}

/* Contact form */
.egae-contact-form {
  background: var(--wp--preset--color--surface-light);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}
.egae-input,
.egae-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--wp--preset--color--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.egae-input:focus,
.egae-textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 3px rgba(74, 140, 106, 0.12);
}
.egae-textarea {
  min-height: 120px;
  resize: vertical;
}
.egae-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.egae-submit-btn:hover {
  background: var(--wp--preset--color--accent-hover);
}

/* ===== Blog / Actualités ===== */
.egae-blog-hero {
  padding-top: 130px;
  padding-bottom: var(--space-xxxl);
  background: linear-gradient(160deg, var(--wp--preset--color--surface-dark) 0%, #1F382A 50%, #182A1E 100%);
  position: relative;
  overflow: hidden;
}
.egae-blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 168, 131, 0.08) 0%, transparent 65%);
  pointer-events: none;
}
.egae-blog-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}
.egae-blog-hero-label {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-light);
  margin-bottom: var(--space-md);
}
.egae-blog-hero h1 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--text-on-dark-primary);
  margin-bottom: var(--space-md);
}
.egae-blog-hero p {
  font-size: 18px;
  color: var(--wp--preset--color--text-on-dark);
  max-width: 560px;
  line-height: 1.6;
}
.egae-blog-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xxxl);
}

/* Featured articles grid */
.egae-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}
.egae-featured-main {
  grid-column: 1 / -1;
}
.egae-featured-card {
  background: var(--wp--preset--color--surface-light);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.egae-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.egae-featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.egae-featured-main img {
  height: 320px;
}
.egae-featured-card-body {
  padding: var(--space-lg);
}
.egae-featured-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: var(--space-sm);
}
.egae-featured-card-body h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-sm);
}
.egae-featured-main .egae-featured-card-body h3 {
  font-size: 22px;
}
.egae-featured-card-body p {
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}
.egae-featured-card-meta {
  font-size: 12px;
  color: var(--wp--preset--color--text-tertiary);
}
.egae-featured-card-meta a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  font-weight: 500;
}

/* Article list */
.egae-articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.egae-article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  background: var(--wp--preset--color--surface-light);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.egae-article-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.egae-article-row img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.egae-article-row-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Promo card */
.egae-promo-card {
  background: var(--wp--preset--color--surface-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}
.egae-promo-card h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--wp--preset--color--text-on-dark-primary);
  margin-bottom: var(--space-xs);
}
.egae-promo-card p {
  font-size: 14px;
  color: var(--wp--preset--color--text-on-dark);
}
.egae-promo-card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.egae-promo-card a:hover {
  background: var(--wp--preset--color--contrast-hover);
}

/* Pagination */
.egae-pagination {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xxl);
}
.egae-pagination a,
.egae-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--wp--preset--color--border-light);
  color: var(--wp--preset--color--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.egae-pagination a:hover,
.egae-pagination .current {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
  background: rgba(74, 140, 106, 0.06);
}

/* Sidebar */
.egae-sidebar-card {
  background: var(--wp--preset--color--surface-light);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.egae-sidebar-card h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--wp--preset--color--accent);
}
.egae-sidebar-card p {
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.egae-sidebar-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
}
.egae-sidebar-cta:hover {
  text-decoration: underline;
}
.egae-cat-list {
  list-style: none;
}
.egae-cat-list li {
  border-bottom: 1px solid var(--wp--preset--color--border-light);
}
.egae-cat-list li:last-child {
  border-bottom: none;
}
.egae-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.egae-cat-list a:hover {
  color: var(--wp--preset--color--accent);
}

/* Newsletter */
.egae-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.egae-newsletter-form input {
  padding: 12px 16px;
  border: 2px solid var(--wp--preset--color--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  background: var(--wp--preset--color--white);
  transition: border-color 0.2s;
}
.egae-newsletter-form input:focus {
  outline: none;
  border-color: var(--wp--preset--color--accent);
}
.egae-newsletter-form button {
  padding: 12px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.egae-newsletter-form button:hover {
  background: var(--wp--preset--color--accent-hover);
}

/* ===== Footer ===== */
.egae-footer {
  background: var(--wp--preset--color--surface-dark);
  padding: var(--space-xxl) var(--space-lg);
  color: var(--wp--preset--color--text-on-dark);
}
.egae-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xxl);
}
.egae-footer-brand p {
  font-size: 14px;
  color: var(--wp--preset--color--text-on-dark);
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.6;
}
.egae-footer h4 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--wp--preset--color--text-on-dark-primary);
  margin-bottom: var(--space-md);
}
.egae-footer a {
  display: block;
  font-size: 14px;
  color: var(--wp--preset--color--text-on-dark);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color 0.2s;
}
.egae-footer a:hover {
  color: var(--wp--preset--color--accent-light);
}
.egae-footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: var(--wp--preset--color--text-tertiary);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.egae-animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.egae-animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.egae-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.egae-animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.egae-animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.egae-animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.egae-animate-scale {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.egae-animate-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===== Photo section ===== */
.egae-photo-section {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-xxl);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .egae-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .egae-hero-content p {
    margin: 0 auto var(--space-xl);
  }
  .egae-hero-ctas {
    justify-content: center;
  }
  .egae-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: var(--space-lg);
  }
  .egae-stat-item:nth-child(2) {
    border-right: none;
  }
  .egae-services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .egae-contact-grid {
    grid-template-columns: 1fr;
  }
  .egae-approach-layout {
    grid-template-columns: 1fr;
  }
  .egae-approach-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-right: 0;
    padding-bottom: var(--space-md);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  .egae-approach-sidebar a {
    padding: var(--space-sm) var(--space-md);
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .egae-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .egae-blog-layout {
    grid-template-columns: 1fr;
  }
  .egae-featured-grid {
    grid-template-columns: 1fr;
  }
  .egae-article-row {
    grid-template-columns: 1fr;
  }
  .egae-article-row img {
    height: 180px;
  }
  .egae-promo-card {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .egae-nav-links { display: none; }
  .egae-hamburger { display: flex; }
  .egae-hero-content h1 { font-size: 40px; }
  .egae-hero-grid { gap: var(--space-xl); }
  .egae-carousel-slide img { height: 280px; }
}
@media (max-width: 600px) {
  .egae-hero-content h1 { font-size: 32px; }
  .egae-hero-tagline { font-size: 14px; }
  .egae-hero-ctas {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .egae-hero-ctas a { width: 100%; text-align: center; }
  .egae-section-title { font-size: 26px; }
  .egae-services-grid { grid-template-columns: 1fr; }
  .egae-stats-bar { grid-template-columns: 1fr; }
  .egae-stat-item { border-right: none !important; padding: var(--space-sm) 0; }
  .egae-footer-inner { grid-template-columns: 1fr; }
  .egae-carousel-slide img { height: 260px; }
  .egae-nav-links { display: none; }
  .egae-hamburger { display: flex; }
  .egae-blog-hero h1 { font-size: 32px; }
}

/* ===== Section container (max-width + padding) ===== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Fix full-width sections that need full-bleed */
.egae-hero,
.egae-photo-section {
  padding-left: 0;
  padding-right: 0;
}
.egae-photo-section .section-inner {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Blog hero inner already had its own max-width, keep consistency */
.egae-blog-hero-inner {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ===== Menu rollover souligné animé ===== */
.egae-nav-links li a:not(.egae-nav-cta)::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--accent);
  transition: width 0.3s ease;
  margin-top: 2px;
}
.egae-nav-links li a:not(.egae-nav-cta):hover::after,
.egae-nav-links li a:not(.egae-nav-cta).active::after {
  width: 100%;
}

/* ===== Surcharges WP FSE pour correspondre à la maquette statique ===== */

/* Forcer la couleur du H1 (Nouvelle identité 2025 -> #D4A843 or)
   Dans la maquette: tagline = or, H1 = vert foncé */
.egae-hero-tagline {
  color: var(--wp--preset--color--contrast) !important;
}
.egae-hero-content h1 {
  color: var(--wp--preset--color--text-primary) !important;
}

/* Annuler les margin-block-start de WP FSE qui ajoutent 24px partout */
.egae-hero-content > *:first-child,
.wp-block-group.egae-hero > *:first-child,
.wp-block-group.section-inner > *:first-child {
  margin-block-start: 0 !important;
}

/* Blog layout - forcer la même largeur que la maquette statique */
.egae-blog-layout {
  max-width: 1140px !important;
  width: 100% !important;
}

/* Forcer les featured cards à prendre la largeur de leur grille */
.egae-featured-card {
  width: 100% !important;
}

/* Supprimer tout max-width superflu sur les posts dans le blog */
.egae-article-row {
  width: 100% !important;
}

/* Page single article - même layout que la maquette */
.page-template .section-inner,
.single .section-inner {
  max-width: 720px;
}
/* ===== Fixes demande client ===== */

/* Plus d'espace haut/bas sur la section approche (fond fonce) */
.egae-approach {
  padding-top: var(--space-xxxl) !important;
  padding-bottom: var(--space-xxxl) !important;
}

/* S'assurer que les sections .section-inner dans .egae-approach respectent le padding */
.egae-approach .section-inner {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Rollover souligne aussi sur les liens de navigation mobile */
.egae-mobile-nav a:not(.egae-nav-cta) {
  position: relative;
}
.egae-mobile-nav a:not(.egae-nav-cta)::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--accent);
  transition: width 0.3s ease;
  margin-top: 2px;
}
.egae-mobile-nav a:not(.egae-nav-cta):hover::after {
  width: 100%;
}

/* ===== Fixes logo + menu ===== */
/* More padding above logo when WP admin bar is present */
.admin-bar .egae-nav-inner {
  padding-top: 25px;
  padding-top: 20px;
}

/* More padding when no admin bar (visitor view) */
.egae-nav-inner {
  padding-top: 20px;
  padding-bottom: 14px;
}

/* Fix menu overflow on medium screens (768-1100px) */
@media (max-width: 1100px) and (min-width: 769px) {
  .egae-nav-links {
    gap: 18px;
  }
  .egae-nav-links a {
    font-size: 13px;
  }
  .egae-nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Ensure hero top padding compensates for taller nav */
.egae-hero {
  padding-top: 140px;
}

/* ===== Fix admin bar — logo padding ===== */
.admin-bar .egae-nav {
  padding-top: 5px;
}
.admin-bar .egae-nav-inner {
  padding-top: 25px;
  padding-top: 20px;
  padding-bottom: 15px;
}

@media screen and (max-width: 782px) {
  .admin-bar .egae-nav {
    top: 46px;
  }
}

/* ===== Blog layout fixes (plus large) ===== */
.egae-blog-layout {
  max-width: var(--max-width) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 var(--space-lg) !important;
}

.egae-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.egae-blog-grid .wp-block-group,
.egae-blog-grid article {
  width: 100% !important;
  max-width: 100% !important;
}

.egae-featured-card,
.egae-article-row {
  width: 100% !important;
  max-width: 100% !important;
}

/* Blog category titles */
.wp-block-group > h2,
.wp-block-group > h3 {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Fix narrow blocks in blog */
.wp-block-query,
.wp-block-post-template {
  max-width: var(--max-width) !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* ===== Fixes logo menu + blog ===== */

/* Logo padding - more space below WP admin bar */
.admin-bar .egae-nav {
  padding-top: 10px !important;
}
.admin-bar .egae-nav-inner {
  padding-top: 25px;
  padding-top: 24px !important;
  min-height: 80px !important;
}

/* Fix nav-inner for both admin bar and visitor */
.egae-nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
}

/* Force hero to compensate */
.egae-hero {
  padding-top: 150px !important;
}

/* Blog layout - force full width */
body.blog .egae-blog-layout,
body.archive .egae-blog-layout,
body.home .egae-blog-layout {
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: var(--space-xxl) var(--space-lg) !important;
}

/* Override WordPress FSE layout constraint on query blocks */
.wp-block-post-template {
  max-width: 100% !important;
  width: 100% !important;
  gap: var(--space-xl) !important;
}

/* Blog cards full width */
.egae-featured-card {
  width: 100% !important;
  max-width: 100% !important;
}

.egae-article-row {
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================
   BLOG LAYOUT FIXES — Override WP contraintes
   ========================================== */

/* Force blog layout to full width */
.egae-blog-layout,
.wp-block-query.egae-featured-grid,
.wp-block-query.egae-articles-list {
  width: 100% !important;
  max-width: 100% !important;
}

/* Grid des articles featured : 2 colonnes */
.wp-block-query.egae-featured-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--space-lg) !important;
}

/* Override WordPress container flex */
.wp-block-query.egae-featured-grid > .wp-block-post-template {
  display: contents !important;
}

/* Forcer chaque featured card à prendre sa place dans la grid */
.wp-block-query.egae-featured-grid .egae-featured-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Articles list en pleine largeur */
.wp-block-query.egae-articles-list {
  width: 100% !important;
}

/* Chaque article row */
.egae-article-row {
  width: 100% !important;
  max-width: 100% !important;
}

/* === FIX LOGO ADMIN BAR — dernière règle, override tout === */
.admin-bar .egae-nav-inner {
  padding-top: 25px;
  padding-top: 28px !important;
  min-height: 82px !important;
}
.egae-nav-inner {
  padding-top: 20px !important;
  padding-bottom: 14px !important;
  min-height: 76px !important;
}

/* === FIX BLOCS ARTICLES ACTUALITÉS — largeur === */
.wp-block-query.egae-featured-grid {
  width: 100% !important;
  max-width: 100% !important;
}
.wp-block-query.egae-featured-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--space-lg) !important;
  width: 100% !important;
}
.wp-block-query.egae-featured-grid .wp-block-post {
  width: 100% !important;
  min-width: 0 !important;
}

/* ===== Fix carte actualités trop étroites ===== */
.wp-block-post-template {
  max-width: none !important;
  width: 100% !important;
}
.wp-block-post-template .wp-block-group {
  max-width: none !important;
  width: 100% !important;
}
.egae-featured-grid .wp-block-post {
  max-width: none !important;
  width: 100% !important;
}
.egae-featured-card {
  max-width: none !important;
  width: 100% !important;
}
.egae-featured-card-body {
  max-width: none !important;
  width: 100% !important;
}
.egae-article-row {
  max-width: none !important;
  width: 100% !important;
}
