.memoire-header-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.memoire-header {
  width: 100%;
  padding: 112px 64px;
  backdrop-filter: blur(8px);
}

.header-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--large-radius);
  object-fit: cover;
}

section {
  width: 100%;
  padding: 80px 64px;
  box-sizing: border-box;
}

/* Logos universités */
.univ-logo-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
}

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

.univ-logo img {
  width: 130px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(10%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.univ-logo img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.univ-logo-sorbonne img {
  width: 180px;
  height: 60px;
}

/* Colorful container (Section 2) */
.testimonials-format-1 {
  width: 100%;
}

.colorful-container {
  width: 100%;
  height: 640px;
  max-height: 640px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: var(--foreground-color);
  border: 1px solid var(--secondary);
  border-radius: var(--large-radius);
  overflow: hidden;
}

.colorful-container .column1 {
  width: 46%;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  box-sizing: border-box;
}

.colorful-container .column2 {
  width: 54%;
  padding: 0 24px 0 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.colorful-container .column2 .testi-col {
  width: 50%;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.colorful-container .column2 .testi-col:first-child {
  margin-top: -70px;
}

.colorful-container .column2 .testi-col:last-child {
  margin-top: -30px;
}

.colorful-container .column2 img {
  width: 100%;
  height: auto;
  border-radius: var(--medium-radius);
  object-fit: contain;
}

/* Process Timeline (Section 3) */
.process-timeline {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 64px;
}

.process-timeline .column1 {
  width: 48%;
  max-width: 520px;
}

.process-timeline .column2 {
  width: 52%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
}

.timeline-item {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 24px !important;
  margin-bottom: 8px !important;
}

.timeline-icon {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.timeline-icon img:first-child {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block !important;
}

.timeline-icon img[alt="ligne"],
.timeline-icon img:last-child:not(:first-child) {
  width: 2px !important;
  max-width: 2px !important;
  height: 64px !important;
  min-height: 50px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 4px 0 !important;
}

.timeline-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 !important;
}

.timeline-content .title,
.timeline-content h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 130% !important;
  margin: 0 !important;
  color: var(--text-color) !important;
}

.timeline-content .text-regular,
.timeline-content p {
  font-size: 15px !important;
  line-height: 160% !important;
  margin: 0 !important;
  color: var(--text-color) !important;
}

/* Section 4 : Video Recap */
.video-recap {
  width: 100%;
  padding: 80px 24px;
}

.video-recap .video-header h2,
.video-recap .video-header h1 {
  font-size: clamp(24px, 3.8vw, 48px);
  font-weight: bold;
  line-height: 120%;
  color: var(--text-color);
}

.video-recap .video-wrapper {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  border-radius: var(--large-radius);
  aspect-ratio: 16 / 9;
}

@media screen and (max-width: 768px) {
  .video-recap {
    padding: 48px 16px;
  }
}

/* Presentation (Section 5) */
section.presentation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}

.presentation .column1 {
  width: 50%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.presentation .column2 {
  width: 50%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.presentation .column2 > img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--large-radius);
  object-fit: cover;
}

.presentation .socials {
  width: 100%;
  max-width: 320px;
  height: 60px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--small-radius);
  border: 1px solid var(--secondary);
  background-color: var(--foreground-color);
  margin: 0 auto;
}

.presentation .socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.presentation .socials img:hover {
  transform: scale(1.15);
}

.presentation .socials img[src*="divider"],
.presentation .socials img[src*="Divider"],
.presentation .socials img[alt="ligne"] {
  width: 1px !important;
  height: 28px !important;
  object-fit: contain;
  cursor: default;
  transform: none !important;
  opacity: 0.75;
}

/* Testimonials 2 ("Tu vois le point commun ?") */
.testimonials-2 {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 80px 0;
}

.testimonials-2 .images-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-width: 1440px;
  width: 1440px;
  flex-shrink: 0;
}

.testimonials-2 .testi-img {
  width: 260px;
  height: auto;
  border-radius: var(--medium-radius);
  object-fit: contain;
  flex-shrink: 0;
}

.testimonials-2 .testi-img-center {
  width: 480px;
  flex-shrink: 0;
}

.testimonials-2 .testi-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 240px;
  flex-shrink: 0;
}

.testimonials-2 .testi-dark {
  border: 2px solid var(--secondary);
  border-radius: 20px;
}

/* FAQ (Section 7) - FIXED & CLEAN */
section.faq {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  width: 100%;
}

.faq .column1 {
  width: 38%;
  max-width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq .column2 {
  width: 58%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.accordion {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.accordion-item {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border-bottom: 1px solid var(--secondary) !important;
}

.accordion-item:first-of-type {
  border-top: 1px solid var(--secondary) !important;
}

.accordion-header {
  width: 100% !important;
  padding: 22px 0 !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  cursor: pointer !important;
  text-align: left !important;
  font-size: clamp(16px, 1.8vw, 19px) !important;
  font-weight: 700 !important;
  line-height: 140% !important;
  color: var(--text-color) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.accordion-header span {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s ease !important;
}

.accordion-header span svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  display: block !important;
}

.accordion-item.active .accordion-header span {
  transform: rotate(180deg) !important;
}

.accordion-content {
  display: none !important;
  padding-bottom: 24px !important;
  font-size: 16px !important;
  line-height: 160% !important;
  color: var(--text-color) !important;
}

.accordion-item.active .accordion-content {
  display: block !important;
}

.accordion-content p {
  font-size: 16px !important;
  line-height: 160% !important;
  color: var(--text-color) !important;
  margin: 0 !important;
}

/* Section 8 : Le plus difficile */
.le-plus-difficile {
  width: 100%;
  padding: 80px 24px;
}

.le-plus-difficile .header-image {
  border-radius: var(--small-radius);
  filter: grayscale(100%) blur(6px);
  cursor: pointer;
  transition: all .8s ease;
  width: 100%;
}

.le-plus-difficile .header-image:hover {
  filter: grayscale(0) blur(0px);
}

@media screen and (max-width: 768px) {
  .le-plus-difficile {
    padding: 48px 16px;
    gap: 32px;
  }
}

/* Last CTA */
.last-cta img {
  width: 100%;
  max-width: 1312px;
  height: auto;
  object-fit: cover;
  border-radius: var(--large-radius);
  margin: 0 auto;
}

/* Footer */
.footer {
  width: 100%;
  padding: 80px 64px 40px 64px;
  background-color: var(--foreground-color);
  border-top: 1px solid var(--secondary);
}

.footer-container {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-col-title {
  font-size: var(--text-medium);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links li a {
  color: var(--text-color);
  font-size: var(--text-regular);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links li a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-reassurances {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.footer-reassurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-small);
  color: var(--text-color);
}

.footer-sub {
  max-width: 1312px;
  margin: 64px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--text-small);
  color: var(--text-color);
}

.footer-sub-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-sub-links a {
  color: var(--text-color);
  opacity: 0.8;
}

.footer-sub-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========================================================
   MEDIA QUERIES RESPONSIVE (Tablette & Mobile)
   ======================================================== */

@media screen and (max-width: 1024px) {
  section {
    padding: 60px 32px;
  }

  .memoire-header {
    padding: 64px 32px 80px 32px;
    gap: 48px;
  }

  .colorful-container {
    height: auto;
    max-height: none;
    flex-direction: column;
  }

  .colorful-container .column1,
  .colorful-container .column2 {
    width: 100%;
    max-width: 100%;
  }

  .colorful-container .column1 {
    padding: 36px 28px;
  }

  .colorful-container .column2 {
    padding: 0 28px 36px 28px;
    gap: 16px;
  }

  .colorful-container .column2 .testi-col:first-child,
  .colorful-container .column2 .testi-col:last-child {
    margin-top: 0;
  }

  .process-timeline {
    flex-direction: column;
    gap: 48px;
  }

  .process-timeline .column1,
  .process-timeline .column2 {
    width: 100%;
    max-width: 100%;
  }

  section.presentation {
    flex-direction: column;
    gap: 48px;
  }

  .presentation .column1,
  .presentation .column2 {
    width: 100%;
    max-width: 100%;
  }

  section.faq {
    flex-direction: column;
    gap: 40px;
  }

  .faq .column1,
  .faq .column2 {
    width: 100%;
    max-width: 100%;
  }

  .footer {
    padding: 64px 32px 32px 32px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 44px 16px;
  }

  .memoire-header {
    padding: 36px 16px 56px 16px;
    gap: 28px;
  }

  .univ-logo-container {
    justify-content: center;
    gap: 16px 20px;
  }

  .univ-logo img {
    width: 95px;
    height: 38px;
  }

  .univ-logo-sorbonne img {
    width: 130px;
    height: 45px;
  }

  /* Section 2 responsive spacing */
  .colorful-container {
    border-radius: 12px;
  }

  .colorful-container .column1 {
    padding: 28px 16px 20px 16px;
    gap: 20px;
  }

  .colorful-container .column2 {
    padding: 0 16px 28px 16px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .colorful-container .column2 .testi-col {
    width: 100%;
    max-width: 360px;
    gap: 14px;
  }

  /* Section 6 vertical list on mobile */
  .testimonials-2 {
    padding: 44px 0;
    align-items: center;
  }

  .testimonials-2 .images-container {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 16px;
  }

  .testimonials-2 .testi-img,
  .testimonials-2 .testi-img-center,
  .testimonials-2 .testi-group {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .testimonials-2 .testi-group {
    gap: 16px;
    align-items: center;
  }

  .testimonials-2 .testi-group .testi-img {
    width: 100%;
    max-width: 360px;
  }

  .testimonials-2 .testi-dark {
    border-radius: 24px;
  }

  .timeline-item {
    gap: 16px;
  }

  .presentation .socials {
    padding: 12px 16px;
  }

  .presentation .socials img {
    height: 28px;
  }

  .footer {
    padding: 44px 16px 24px 16px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-sub {
    margin-top: 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-sub-links {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}