/* Reset & Base */
:root {
  --color-dark-blue: #1F3B42;
  --color-teal: #3B6671; /* For gradient */
  --color-cyan: #1F9FC0;
  --color-red: #ED222B;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray-text: #333333;
  --font-main: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-black);
  overflow-x: hidden;
}

.container {
  max-width: 1400px; /* Increased for more distributed layout */
  margin: 0 auto;
  padding: 0 40px; /* Increased padding */
  position: relative;
}

/* Header Base (Desktop) */
.header {
  padding: 20px 0;
  background: var(--color-white);
  position: relative;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Menu Toggle */
.menu-toggle {
  position: absolute;
  top: 50%;
  left: 40px; /* Adjust as needed */
  transform: translateY(-50%);
  font-size: 24px;
  cursor: pointer;
  z-index: 101;
  color: var(--color-black);
}

.menu-toggle:hover {
  color: var(--color-cyan);
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 20px;
  margin-bottom: 100px;
}

.nav-close {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--color-black);
  cursor: pointer;
}

.nav-logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.nav-logo-symbol {
  width: 200px;
  height: 100px;
  position: relative;
}

.nav-logo-text {
  text-align: center;
  background-color: white;
  z-index: 2;
  padding: 20px;
}

.nav-logo-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, -4rem + 16vw, 2rem);
  color: #000;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.nav-logo-slogan {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--color-dark-blue);
  text-transform: uppercase;
  margin-top: 5px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
  padding-left: 0;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark-blue);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-cyan);
}

.logo-main-group {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.logo-symbol {
  width: 189px;
  height: 189px;
  position: relative;
  flex-shrink: 0;
  z-index: 1; /* Behind text on desktop by default, but text margin pulls it over */
}

/* ... svg layer styles ... */
.logo-svg-layer {
  position: absolute;
  mix-blend-mode: multiply;
}

.logo-cyan {
  width: 189px;
  height: 189px;
  top: -5px;
  left: -2px;
  animation: rotate-layer 25s linear infinite normal;
}

.logo-red {
  width: 187px;
  height: 187px;
  top: 8px;
  left: 8px;
  animation: rotate-layer 30s linear infinite reverse;
}

.logo-gray {
  width: 136px;
  height: 137px;
  top: 32px;
  left: 19px;
  animation: rotate-layer 35s linear infinite normal;
}

@keyframes rotate-layer {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Desktop specific: Text to the right, slight overlap */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -100px; /* Strong overlap restored */
  position: relative;
  z-index: 10; /* Text on top */
  pointer-events: none;
  padding: 33px 10px 5px 0px; /* Restored padding */
}

.logo-main-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 42px;
  color: #000;
  line-height: 1;
  white-space: nowrap;
  background-color: white; /* Restored white background */
  padding: 8px; /* Restored padding */
}

.logo-slogan-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-dark-blue);
  text-transform: uppercase;
  margin-top: 5px;
  text-align: right; /* Aligned right relative to main text block */
  padding-right: 5px;
}

.logo-slogan-text a {
  text-decoration: none;
  color: var(--color-dark-blue);
  pointer-events: auto;
}

/* Dedicated mobile header hidden on desktop */
.header{
  padding: 20px 0 20px 0;
}
.logo-mobile-group {
  display: none;
}
.logo-mobile-slogan {
  display: none;
}
/* Tablet/Mobile header (< 920px): logo over text (single-column) */
@media (max-width: 920px) {
  .nav-overlay {
    padding: 0 40px;
  }
  
  .nav-header {
    margin-bottom: 60px;
  }
  
  .nav-close {
    left: 0;
  }

  .header{
    padding: 20px 0 70px 0;
  }

  .logo-main-group {
    display: none !important;
  }
  .logo-slogan-text {
    display: none;
  }
  .logo-text {
    display: none;
  }
  
  .logo-mobile-slogan {
    display: block;
  }
  .header-content {
    display: block;
    text-align: center;
  }

  .logo-mobile-group {
    display: block;
    position: relative;
    text-decoration: none;
    width: min(920px, 100%);
    margin: 0 auto;
  }

  .logo-mobile-symbol {
    width: 189px;
    height: 189px;
    position: relative;
    margin: 0 auto;
    z-index: 1;
  }

  .logo-mobile-symbol .logo-svg-layer {
    animation: none; /* keep a stable logo in responsive mockup */
  }

  .logo-mobile-text {
    display: block;
    position: absolute;
    left: 50%;
    top: 130px;
    padding: 20px 10px 5px 0px;
    transform: translateX(-50%);
    z-index: 3;
    width: max-content;
    max-width: 96vw;
    background: rgba(255, 255, 255, 1);
  }

  .logo-mobile-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(38px, 5.6vw, 56px);
    line-height: 1;
    color: #000;
    white-space: nowrap;
    text-align: center;
    margin: 0;
    background: rgba(255, 255, 255, 1);
    padding: 2px 10px;
    border-radius: 3px;
  }

  .logo-mobile-slogan {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 3.6vw, 20px);
    color: var(--color-dark-blue);
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 1);
    padding: 2px 8px;
    border-radius: 3px;
  }

  .logo-mobile-slogan a {
    text-decoration: none;
    color: var(--color-dark-blue);
    margin: 0 4px;
  }
  
  /* Adjust menu toggle position for mobile */
  .menu-toggle {
    left: 20px;
    top: 40px; /* Adjust based on header padding */
  }
}

/* Small mobile (<= 375px target): title on two lines */
@media (max-width: 600px) {
  .logo-mobile-text {
    top: 122px;
    width: 100%;
    max-width: 360px;
  }

  .logo-mobile-main {
    white-space: normal;
    max-width: 300px;
    margin: 0 auto;
    font-size: 43px;
    line-height: 0.96;
  }

  .logo-mobile-slogan {
    font-size: 17px;
    margin-top: 10px;
    white-space: nowrap;
    display: inline-block;
  }

  .logo-mobile-slogan a {
    margin: 0 2px;
  }
}

/* ... rest of styles ... */

.site-title, .site-subtitle {
    display: none; /* Hide old titles */
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 90px; /* Reduced top padding */
  padding-bottom: 40px; /* Enough space for text */
  margin-bottom: 0; /* No margin bottom, overlap handled by next section */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover the section */
  background: linear-gradient(90deg, var(--color-dark-blue) 0%, var(--color-teal) 100%);
  transform: skewY(-1deg); /* 1 degree as requested */
  transform-origin: top left;
  z-index: -1;
  /* Visual adjustment to start under header nicely */
  margin-top: 40px; 
}

.hero-background-temoigner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover the section */
  background: var(--gradient-tmoigner, linear-gradient(90deg, #13768F 0%, #1F9FC0 100%));
  transform: skewY(-1deg); /* 1 degree as requested */
  transform-origin: top left;
  z-index: -1;
  /* Visual adjustment to start under header nicely */
  margin-top: 40px; 
}

.hero-container {
  /* Just a container for centering */
  display: block;
}

.hero-text-wrapper {
  display: flex;
  justify-content: flex-end; /* Align to the right */
  width: 100%;
}

.hero-text {
  color: var(--color-white);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 0; 
  max-width: 60%; /* Occupy 2/3 right roughly, slightly less for margin */
  margin-right: 10%; /* Slight right margin */
  text-align: left;
}

.hero-text p {
  margin-bottom: 20px;
}

/* Main Content Section (Profile & CTAs) */
.main-content-section {
  position: relative;
  padding-top: 0;
  margin-top: 0; /* Overlap upwards into the hero area */
}

.main-grid-content-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 100px;
  margin-top: 0;
}

.main-content-container {
  display: flex;
  gap: 80px;
  justify-content: space-between;
  align-items: flex-start;
}

/* Left Content: Profile */
.content-left {
  flex: 0 0 auto;
  margin-top: -40px; /* Additional overlap for the image specifically */
  display: block; /* Ensure it's visible */
}

/* Right Content: CTAs */
.content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding-top: 160px; /* Push down CTAs to align below text roughly */
}

/* Profile Card - Updates for new structure */
.profile-card {
  /* Inherits previous styles but positioning is now handled by parents */
  display: flex;
  flex-direction: column; 
  width: 384px; 
  position: relative;
  z-index: 10;
  margin-left: 0;
  box-shadow: none; 
  background: transparent;
  visibility: visible !important;
}

.profile-image {
  width: 222px;
  height: 285px;
  position: relative;
  z-index: 1;
  border-radius: 5px 0 0 0;
  overflow: hidden;
  background-color: #e0e0e0;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background-image: url('images/elue_marie-laure_Brossier-2014_low.jpg');
  background-size: cover;
  background-position: center top;
}

.profile-content {
  width: 309px;
  align-self: flex-end;
  margin-top: -90px; /* Overlap image */
  z-index: 2;
  background-color: var(--color-white);
  padding: 0 20px 30px 27px;
  display: flex;
  flex-direction: column;
}

.profile-text-wrapper {
  padding: 17px 0;
}

.profile-content p {
  font-weight: 500;
  font-style: italic;
  font-size: 16px; /* 1rem */
  line-height: 1.625; /* 26px / 16px */
  color: #1F3B42;
  margin-bottom: 20px;
}

.btn-parcours {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 228px;
  height: 42px;
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.btn-parcours:hover {
  background-color: var(--color-teal);
}


/* CTA Card - Updates for new structure */
.cta-card {
  /* Styles remain mostly same */
  display: flex;
  align-items: stretch;
  color: var(--color-white);
  text-decoration: none;
  transition: transform 0.2s;
  padding: 30px 10px;
  box-shadow: none;
  border-radius: 0 0.3125rem 0.3125rem 0;
}

/* Clean up old Hero styles that are no longer used */
.hero-left, .hero-right {
  /* These classes are removed from HTML, CSS can be cleaned or ignored */
  display: none; 
}


.cta-card:hover {
  transform: translateX(5px);
}

.cta-content {
  /* Frame 2 */
  padding: 0 62px 0 17px; /* 0 3.875rem 0 1.0625rem */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px; /* 0.875rem */
}

.cta-content h3 {
  font-size: 18px; /* 1.375rem */
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  line-height: 1;
}

.cta-content p {
  font-size: 16px; /* 1rem */
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  opacity: 1;
}

.cta-icon {
  /* Frame 3 */
  width: 39px; /* 2.4375rem */
  background-color: transparent; /* Transparent as per design */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-temoigner {
  background-color: var(--color-cyan);
}

.cta-alerter {
  background-color: var(--color-red);
}

.cta-agir {
  background-color: var(--color-dark-blue);
}

/* Newsletter Section */
.newsletter-signup {
  position: relative;
  padding: 80px 0 40px 0;
  margin-top: 100px;
}

.newsletter-signup__background {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3a4d6d;
  transform: skewY(-1deg);
  transform-origin: top left;
  z-index: -1;
}

.newsletter-signup__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
}

.newsletter-signup__content h2 {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.newsletter-signup__content p,
.newsletter-signup__text,
.newsletter-signup__text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
}

.newsletter-signup__text {
  margin-bottom: 24px;
}

.newsletter-signup__text p {
  margin-bottom: 0.5em;
}

.newsletter-signup__text p:last-child {
  margin-bottom: 0;
}

.newsletter-form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form__row input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: none;
  font-family: var(--font-main);
  font-size: 14px;
}

.newsletter-form__row input[type="email"]:focus {
  outline: 2px solid var(--color-cyan);
}

.newsletter-form__row button {
  background-color: var(--color-cyan);
  color: var(--color-white);
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form__row button:hover {
  background-color: #1789a8;
}

.newsletter-form__message {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.newsletter-form__message--success {
  background: rgba(212, 237, 218, 0.95);
  color: #155724;
}

.newsletter-form__message--error {
  background: rgba(248, 215, 218, 0.95);
  color: #721c24;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .newsletter-signup {
    padding: 40px 0;
  }

  .newsletter-signup__background {
    top: 0;
    height: 100%;
    transform: none;
  }

  .newsletter-signup__inner {
    padding: 0 60px;
  }

  .newsletter-signup__content h2 {
    font-size: 22px;
  }

  .newsletter-form__row {
    flex-direction: column;
  }

  .newsletter-form__row input[type="email"] {
    min-width: 100%;
  }

  .newsletter-form__row button {
    width: 100%;
  }
}

/* Contact Section */
.contact-section {
  position: relative;
  padding-top: 0; /* Remove top padding to let card go to top */
  padding-bottom: 80px;
  margin-top: 20px; /* Adjusted margin */
}

.contact-background {
  position: absolute;
  top: 100px; /* Start background lower than the card top */
  left: 0;
  width: 100%;
  height: 100%; /* Cover bottom */
  background-color: #b11e1e; /* Specific blue requested */
  transform: skewY(-1deg); /* 1 degree rotation as requested */
  transform-origin: top left;
  z-index: -1;
}

.contact-container {
  display: flex;
  justify-content: center; /* Center the form horizontally */
  align-items: center;
  position: relative; /* Ensure z-index works if needed */
  z-index: 1;
}

.contact-card {
  background: var(--color-white);
  padding: 60px; /* Increased padding */
  width: 100%;
  max-width: 800px; /* Wider form */
}

.contact-card h2 {
  color: var(--color-dark-blue);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 1px solid var(--color-cyan);
}

.form-footer {
  display: flex;
  justify-content: flex-end;
}

.form-legal-notice {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  margin-top: -4px;
}

.form-legal-notice a {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

.btn-envoyer {
  background-color: var(--color-red);
  color: var(--color-white);
    border: none;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-envoyer:hover {
  background-color: #c41e25;
}

/* Responsive */
@media (max-width: 920px) {
  .container {
    padding: 0 20px;
  }

  /* Header - Already handled in base styles above via specific media query inside header block? No, it was separate. Let's clean up the override here. */
  .header-content {
    padding: 0;
  }
  
  /* The header styles are now consolidated in the main block above. 
     We should remove the duplicate/conflicting header styles from here 
     to avoid confusion and specificity wars. */
  
  /* Hero */
  .hero-section {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  
  .hero-background {
    transform: none; /* Remove skew for simpler mobile layout */
    margin-top: 0;
    height: 100%;
  }
  .hero-background-temoigner {
    transform: none; /* Remove skew for simpler mobile layout */
    margin-top: 0;
    height: 100%;
  }

  .hero-text-wrapper {
    justify-content: center;
  }
  
  .hero-text {
    max-width: 100%;
    margin-right: 0;
    text-align: center;
    padding: 0;
  }

  /* Main Content */
  .main-content-section {
    padding-top: 50px;
    margin-top: 0;
  }

  .main-grid-content-section {
    padding-top: 50px;
    padding-bottom: 100px;
    margin-top: 0;
  }

  .main-content-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  .content-left {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .profile-card {
    width: 100%;
    max-width: 700px; /* Allow wider card */
    flex-direction: row; /* Side by side */
    align-items: center; /* Center vertically */
    padding-top: 1rem;
  }

  .profile-image {
    width: 222px; /* Fixed width to match desktop proportion roughly */
    max-width: 45%;
    height: auto;
    aspect-ratio: 222/285;
    border-radius: 5px 0 0 5px; /* Adjust radius */
    flex-shrink: 0;
    overflow: hidden;
  }

  .img-placeholder {
    width: 100%;
    height: 100%;
  }

  .profile-content {
    width: auto;
    flex: 1;
    margin-top: 0; /* Remove vertical overlap */
    margin-left: -20px; /* Slight horizontal overlap */
    align-self: center;
    padding: 20px 20px 20px 30px; /* Add left padding to account for overlap */
    background: var(--color-white);
    border-radius: 0 5px 5px 0;
  }

  .content-right {
    width: 100%;
    padding-top: 0;
    gap: 20px;
  }

  .cta-card {
    width: 100%;
    border-radius: 5px; /* Reset border radius for full width look */
  }

  /* Contact */
  .contact-section {
    margin-top: 100px; /* Reduce margin */
    padding-bottom: 60px;
  }
  
  .contact-background {
    top: 0;
    height: 100%;
    transform: none;
  }
  
  .contact-card {
    padding: 30px;
    margin: 0;
    width: 100%;
  }
  
  .contact-card h2 {
    font-size: 24px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .form-group-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .profile-card {
    flex-direction: column; /* Revert to column for very small screens */
    max-width: 320px;
  }
  
  .profile-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
    border-radius: 5px 5px 0 0;
  }
  
  .profile-content {
    width: 100%;
    margin: -60px auto 0;

    margin-left: auto;
    align-self: center;
    padding: 10px 5px;
    border-radius: 0;
  }
  
  .profile-text-wrapper {
    padding: 10px 0;
  }
  
  .btn-parcours {
    width: 100%;
  }
}

/* --- PAGE TÉMOIGNER --- */

/* Hero specific for Temoigner page */
.hero-temoigner .hero-text-wrapper {
  justify-content: center; /* Center the content */
}

.hero-temoigner .hero-text-content {
  max-width: 800px;
  color: var(--color-white);
  text-align: left;
  margin: 0 auto;
}

.hero-temoigner .hero-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.hero-temoigner h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  line-height: 1;
}

.hero-chevron {
  height: 70px;
  width: auto;
  margin: 0 25px;
  cursor: pointer;
}

.hero-temoigner p {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

/* Grid Layout */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
  margin: -60px 90px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.temoignages-grid.podcast-grid {
  margin: 40px auto !important;
  gap: 30px !important;
  max-width: 100% !important;
}

@media (max-width: 920px) {
  .temoignages-grid.podcast-grid {
    margin: 20px auto !important;
    grid-template-columns: 1fr !important;
  }
}
.temoignages-grid a {
  text-decoration: none;
}

/* Card Style */
.temoignage-card {
  background: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.temoignage-card:hover {
  transform: translateY(-5px);
}

.tem-card-body {
  padding: 40px 40px 30px 40px;
  flex: 1;
}

.tem-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.2;
}

.tem-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  font-weight: 400;
}

.tem-card-footer {
  background-color: #1F9FC0; /* Cyan */
  color: var(--color-white);
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.tem-card-footer:hover {
  background-color: var(--color-dark-blue);
}

.tem-card-header {
  border-radius: 4px 4px 0 0;
}

.tem-card-header img {
  display: block;
}

@media (max-width: 1100px) {
  .temoignages-grid {
    gap: 40px;
    margin: -60px 30px;
  }
}


/* Responsive for Temoigner */
@media (max-width: 920px) {
  .hero-temoigner .hero-text-content {
    padding: 0 20px;
  }
  
  .temoignages-grid {
    grid-template-columns: 1fr;
    margin: 0 20px;
    gap: 40px;
  }

  .temoignage-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* --- MON PARCOURS PAGE --- */

.editorial-section {
  padding-top: 110px;
  padding-bottom: 80px;
  position: relative;
  margin-top: 0;
}

.editorial-container {
  max-width: 1000px;
  margin: 0 auto;
}

.editorial-wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.editorial-image {
  width: 30%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.editorial-image img {
  width: 100%;
  height: auto;
  display: block;
}

.editorial-content {
  background-color: var(--color-white);
  padding: 60px;
  z-index: 2;
  margin-left: -70px; /* Overlap the image */
  margin-top: 80px; /* Push down relative to image top */
  flex-grow: 1;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); Optional depth */
}

.editorial-title {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 30px;
}

.editorial-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  font-weight: 400;
  text-align: justify;
}

/* Responsive Editorial */
@media (max-width: 920px) {
  .editorial-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .editorial-image {
    width: 80%;
    max-width: 400px;
    margin-bottom: -50px; /* Overlap vertically */
    z-index: 1;
  }

  .editorial-content {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    padding: 80px 30px 40px; /* Top padding to account for overlap */
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 600px) {
  .editorial-image {
    width: 100%;
    margin-bottom: -30px;
  }
  
  .editorial-content {
    padding: 60px 20px 30px;
  }
  
  .editorial-title {
    font-size: 24px;
  }
}

/* --- ARTICLE PAGE --- */

.article-section {
  padding-top: 10px;
  padding-bottom: 60px;
  background-color: var(--color-white);
  position: relative;
  margin-top: 60px; /* Overlap hero */
  z-index: 10;
}

.article-container {
  max-width: 900px; /* Narrower container for reading */
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
}

.article-header {
  margin-bottom: 30px;
}

.article-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  display: block;
  margin-bottom: 35px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

a.article-category-link {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

a.article-category-link:hover {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

.article-episode {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-cyan);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 30px;
}
@media (max-width: 920px) {
  .article-episode {
    font-size: 20px;
  }
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark-blue);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 30px;
}

.article-context-box {
  background-color: #F5F5F5;
  padding: 30px;
  margin-bottom: 30px;
}

.context-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1F3B42;
  margin-bottom: 15px;
}

.article-context-box p {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: #000;
  margin-bottom: 15px;
}

.article-context-box p:last-child {
  margin-bottom: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #F5F5F5;
  padding: 10px 20px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 50px;
  transition: background 0.3s;
}

.btn-download:hover {
  background-color: #e0e0e0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-dark-blue);
}

.meta-source {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}

.article-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.article-intro {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.article-author {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin-top: 14px;
  padding-right: 55px;
  text-align: right;
}
.article-author a {
  color: #666;
  text-decoration: none;
}
.article-author a:hover {
  color: #000;
  text-decoration: underline;
}

.article-body {
  margin: 0px 56px;
  border-bottom: 1px solid #eee;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 25px;
}

.article-quote-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-top: 40px;
  margin-bottom: 5px;
}

.article-quote-author {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 25px;
}

/* Voir Aussi Section */
.voir-aussi-section {
  padding: 60px 0;
  background-color: #F9F9F9; /* Slight contrast */
}

.voir-aussi-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  margin: 0px -60px 90px 90px;
}
@media (max-width: 1100px) {
  .voir-aussi-title {
    margin: 0px -60px 90px 40px;
  }
}

@media (max-width: 920px) {
  .voir-aussi-title {
    text-align: center;
    margin: 0px auto 30px;
  }
}

/* Footer */
.site-footer {
  background-color: var(--color-white);
  padding: 40px 0;
  border-top: 1px solid #eee;
  margin-top: 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  font-size: 12px;
  color: var(--color-gray-text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-dark-blue);
}

.footer-copyright {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.bsf-feedback-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.bsf-feedback-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.bsf-feedback-panel {
  width: min(92vw, 430px);
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.bsf-feedback-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark-blue);
  text-transform: uppercase;
}

.bsf-feedback-message {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray-text);
}

.bsf-feedback-close {
  border: 0;
  background: var(--color-cyan);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 11px 22px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.bsf-feedback-close:hover {
  background: var(--color-dark-blue);
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}
@media (max-width: 540px) {
  .article-container {
    padding: 0 30px;
  }
  .article-body {
    margin: 0;
  }
  .article-title {
    font-size: 24px;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ========== PODCAST MODULE ========== */

.podcast-section {
  margin-top: 60px;
}

.podcast-episodes-header {
  margin-top: 50px;
  margin-bottom: 25px;
}

.podcast-episodes-header:first-of-type {
  margin-top: 0;
}

.podcast-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.podcast-episode-card {
  display: block;
  text-decoration: none;
  background: var(--color-white);
  border: 1px solid #eee;
  padding: 24px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.podcast-episode-card:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 4px 16px rgba(31, 159, 192, 0.12);
  transform: translateY(-2px);
}

.podcast-episode-card-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-right: 30px;
}

.podcast-episode-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-blue);
  text-transform: uppercase;
  line-height: 1.3;
}

.podcast-episode-show {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.podcast-episode-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-cyan);
  font-size: 12px;
  transition: transform 0.3s;
}

.podcast-episode-card:hover .podcast-episode-arrow {
  transform: translateY(-50%) translateX(4px);
}

.podcast-empty {
  color: #666;
  font-size: 15px;
  font-style: italic;
}

/* Podcast Show - Layout */
.podcast-show-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.podcast-show-main {
  min-width: 0;
}

.podcast-summary {
  margin-bottom: 40px;
}

.podcast-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podcast-episode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-white);
  border: 1px solid #eee;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.podcast-episode-row:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 4px 12px rgba(31, 159, 192, 0.1);
}

.podcast-episode-row-content {
  flex: 1;
  min-width: 0;
}

.podcast-episode-row-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.podcast-episode-row-title a {
  color: inherit;
  text-decoration: none;
}

.podcast-episode-row-date {
  font-size: 13px;
  color: #666;
}

.podcast-episode-row-action {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.podcast-episode-row:hover .podcast-episode-row-action {
  color: var(--color-dark-blue);
}

.podcast-show-sidebar {
  position: sticky;
  top: 120px;
}

.podcast-show-cover {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.podcast-show-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.podcast-info-box {
  border-left-width: 4px;
}

.btn-podcast-rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 15px;
  background: var(--color-dark-blue);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-podcast-rss:hover {
  background: var(--color-cyan);
  color: var(--color-white);
}

/* Podcast Episode Page */
.podcast-episode-section {
  margin-top: 60px;
}

.podcast-episode-meta {
  margin-top: 15px;
  margin-bottom: 0;
}

.podcast-episode-player-wrap {
  margin: 35px 0 40px;
}

.podcast-episode-description {
  margin-top: 0;
  padding-top: 30px;
  border-top: 1px solid #eee;
  line-height: 1.4rem;
}

/* Podlove Web Player v5 container */
.podlove-player-container {
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafb 0%, #f0f5f7 100%);
  border: 1px solid #e8eef1;
}

.podlove-player-container iframe {
  display: block;
  width: 100%;
  min-height: 200px;
  border: none;
}

/* Responsive Podcast */
@media (max-width: 920px) {
  .podcast-show-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .podcast-show-sidebar {
    position: static;
    order: -1;
  }

  .podcast-show-cover {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .podcast-episodes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .podcast-episode-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .podcast-player-container {
    min-height: 180px;
  }
}