/* Base styles */
:root {
  --dark-blue: #0f0e0d;
  --blue-600: #c8502a;
  --blue-700: #a83e1f;
  --blue-100: #f4ece5;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f1b18;
  --persian-blue-dark: #9a3d1c;
  --persian-blue-darker: #140e0a;
  --persian-blue-darkest: #140e0a;
  --neutral-lightest: #f1ede7;
  --java-darkest: #1c1511;
  --eastern-blue-darkest: #1c1511;
  --eastern-blue-darker: #281d16;
  --javalight: #e0875a;
  --persian-blue-light: #ead9cf;
}
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400..800;1,400..800&family=Caveat:wght@500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-image: linear-gradient(to right, #e0875a, #c8502a);
  color: var(--white);
  padding: 0.5rem 1.5rem;
}

@media (max-width: 768px) {
  h1,
  h2,
  p,
  h3 {
    text-align: left !important;
  }

  .step-icon {
    display: none !important;
  }

  @media (max-width: 768px) {
    .join-description {
      margin: 0 0 1rem 0 !important;
      text-align: left;
    }
  }
}

.btn-hero {
  background-image: linear-gradient(to right, #e0875a, #c8502a);
  color: var(--white);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 0.3rem;
}

.btn-hero:hover {
  background-color: var(--blue-700);
}

.btn-join {
  background-color: var(--blue-600);
  color: var(--white);
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.btn-join:hover {
  background-color: var(--blue-700);
}

.section-overline {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-600);
  text-align: center;
  margin-bottom: 0.1rem;
  line-height: 1;
}
.section-overline::before {
  content: "•";
  margin-right: 0.4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4rem;
  text-align: center;
}

/* FAQ (adapté de la V2, police Montserrat) */
.faq {
  padding: 5rem 1rem 6rem;
  background: var(--neutral-lightest);
}
.faq-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.faq-liste {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border: 1px solid #e4ddd3;
  border-radius: 0.6rem;
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item:has(.faq-question.active) {
  border-color: var(--blue-600);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  line-height: 1.4;
}
.faq-question.active {
  color: var(--blue-600);
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.faq-question.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-reponse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-reponse-inner {
  padding: 0 1.5rem 1.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.section-title-roles {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--persian-blue-darkest);
}

.highlight {
  color: var(--persian-blue-dark);
}

.highlight-blue {
  color: var(--blue-600);
}

.bold {
  font-weight: 700;
}

/* Header */
header {
  background-color: #080605;
  padding: 2rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* espace entre switch et bouton */
}

.logo-svg {
  height: 2.5rem;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(to top, #c8502a, #0f0e0d 55%);
  color: var(--white);
  padding-bottom: 3rem;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.hero-content {
  flex: 1;
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    padding-right: 3rem;
    text-align: left;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  color: var(--javalight);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.8;
  color: var(--persian-blue-light);
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.75rem;
  margin-top: 1.75rem;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero-trust { justify-content: flex-start; }
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #cfcabf;
  font-weight: 500;
}
.trust-item svg { flex-shrink: 0; }

.hero-image-container {
  flex: 1;
  position: relative;
  margin-top: 2rem;
}

.image-gradient {
  position: absolute;
  z-index: 1;
}

.hero-image {
  width: 100%;
  border-radius: 0.5rem;
  position: relative;
  z-index: 2;
}

.scroll-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5rem;
  height: 100px;
}

.arrow-icon {
  display: inline-flex;
  border: 4px solid var(--white);
  border-radius: 20%;
  padding: 0.7rem;
  animation: upDown 1s ease-in-out infinite;
}

@keyframes upDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--neutral-lightest);
}

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

@media (min-width: 640px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--persian-blue-dark);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--persian-blue-darker);
}

.feature-description {
  color: var(--persian-blue-darkest);
  font-size: 14px;
  margin-bottom: 0;
  font-weight: normal;
}

/* Roles Section */
.roles {
  padding: 5rem 0;
  background-color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.section-description {
  color: var(--java-darkest);
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto;
}

/* ===== CAROUSEL WRAPPER ===== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 3.5rem;
  overflow: hidden;
}

/* Piste horizontale qui contient les cartes */
.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  padding: 20px;
}

/* ==== CARTES ==== */
.role-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 1.5rem;
  min-width: 100%; /* Sur mobile : 1 carte prend la largeur totale */
  box-sizing: border-box;
}

/* À partir de 768px, on peut afficher 3 cartes simultanément */
@media (min-width: 768px) {
  .role-card {
    min-width: calc(100% / 3);
  }
}

.role-image-container {
  margin-bottom: 1rem;
}

.role-image {
  width: 100%;
  object-fit: cover;
}

.role-title-1 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--eastern-blue-darkest);
}

.role-title-2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--persian-blue-dark);
  margin-bottom: 1rem;
}

.role-title-3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--eastern-blue-darker);
  margin-bottom: 1rem;
}

.role-description {
  color: var(--persian-blue-darkest);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ===== BOUTONS BLEUS EN BAS ===== */
.carousel-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.nav-button {
  background-color: var(--blue-button);
  outline: none;
  cursor: pointer;
  width: 45px;
  height: 45px;
  margin: 0 1rem;
  font-size: 1.2rem;
  border-radius: 20%;
  transition: transform 0.2s;
}

#nextBtn {
  color: white;
  background-color: var(--persian-blue-darkest);
  margin: 0 0.5rem;
  border: none;
}

#prevBtn {
  color: var(--javalight);
  background-color: var(--white);
  border: 4px solid var(--javalight);
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .roles {
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 426px) {
  .carousel-wrapper {
    position: relative;
  }

  .carousel-nav {
    position: absolute;
    top: 35%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none; /* important pour éviter que la nav bloque le contenu */
  }

  .carousel-nav .nav-button {
    pointer-events: all; /* réactive les clics sur les boutons */
    position: relative;
    z-index: 10;
  }

  #nextBtn {
    color: white;
    background-color: var(--persian-blue-darkest);
    margin: 0 0.5rem;
    border: none;
    width: 60px;
    height: 60px;
    left: 10px;
  }

  #prevBtn {
    color: var(--javalight);
    background-color: var(--white);
    border: 4px solid var(--javalight);
    margin: 0 0.5rem;
    width: 60px;
    height: 60px;
    right: 10px;
  }
}

/* Steps Section */
.steps {
  padding: 5rem 0;
  background-color: #1a120c;
  color: var(--white);
}

.steps-title {
  margin-bottom: 5rem;
}

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

@media (min-width: 768px) {
  .step-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  text-align: center;
}

@media (min-width: 768px) {
  .step-card {
    text-align: left;
  }
}

.step-icon-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .step-icon-container {
    justify-content: flex-start;
  }
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  color: var(--white);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 500;
  display: inline;
}

.step-description {
  color: white;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Join Section */
.join {
  padding: 6rem 1rem;
  background-image: linear-gradient(to bottom, #1a120c, #000000);
  color: var(--white);
  text-align: center;
}

.join-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.join-description {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 36rem;
  color: var(--white);
  margin: 0 auto 1rem;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

.highlight-java {
  color: var(--javalight);
}

@media (min-width: 640px) {
  .join-form {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .join-form {
    margin: 0;
  }
}

.join-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background-color: var(--white);
  border: none;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  height: 2.5rem;
  color: var(--gray-800);
}
.btn.btn-join {
  height: 2.5rem;
  font-size: 1.125rem;
  background-image: linear-gradient(to right, #e0875a, #c8502a);
}
.join-input::placeholder {
  color: var(--gray-500);
}

/* Footer */
footer {
  padding: 3rem 0;
  background-color: black;
  color: var(--gray-400);
  text-align: center;
}

.footer-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.footer-text p {
  font-size: 1rem;
  margin-bottom: 0;
}

.title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
}

.content {
  padding: 6rem 1rem;
  color: var(--white);
  text-align: center;
}

.rejoin-title {
  font-size: 2rem;
  font-weight: 600;
}

.rejoin-description {
  font-size: 1.5rem;
  max-width: 36rem;
  color: var(--white);
  margin: 0 auto 3rem;
}

.grid-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #0f0e0d, #0f0e0d);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  color: white;
  gap: 2rem;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 50px);
  grid-template-rows: repeat(5, 50px);
  gap: 50px;
}

.grid-box {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  width: 80px;
  height: 80px;
}

.grid-box.logo {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-box.logo img {
  width: 28px;
  height: 28px;
}

.background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.background-grid .grid {
  display: grid;
  grid-template-columns: repeat(2, 100px);
  grid-template-rows: repeat(5, 100px);
  gap: 100px;
  opacity: 0.06;
}

.background-grid .cube {
  width: 150px;
  height: 150px;
  background-color: #ffffff;
  border-radius: 8px;
}

.grid-box.variant-1 {
  background-color: rgba(255, 255, 255, 0.04);
}

.grid-box.variant-2 {
  background-color: rgba(255, 255, 255, 0.07);
}

.grid-box.variant-3 {
  background-color: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* --- Styles desktop (inchangés) --- */
.grid-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #0f0e0d, #0f0e0d);
  padding: 4rem 2rem;
  position: relative;
  overflow: visible; /* débordement voulu sur desktop */
  color: white;
}

.grid-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.grid-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Bloc central */
.section {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 950px) {
  .grid.grid-left {
    display: none;
  }
  .grid.grid-right {
    display: none;
  }
}

@media (max-width: 600px) {
  .btn-hero {
    width: 100%;
  }
}

/* --- Styles pour mobiles --- */
@media screen and (max-width: 768px) {
  /* Supprimer le scroll horizontal */
  html,
  body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  .content {
    padding: 0;
  }

  .grid-wrapper {
    /* On empile tout en colonne */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
  }

  .grid-left,
  .grid-right {
    position: static;
    transform: none;
    margin: 2rem auto;
  }

  .grid-left .grid,
  .grid-right .grid {
    grid-template-columns: repeat(2, 60px);
    grid-template-rows: repeat(4, 60px);
    gap: 10px;
    margin: 0 auto;
  }

  .grid-box {
    width: 60px;
    height: 60px;
  }

  .section {
    max-width: 90%;
    margin: 1rem auto;
    text-align: center;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-image: linear-gradient(to top, #1a120c, #000000);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}
.modal-content label {
  margin-top: 1rem;
}
.modal-content input {
  padding: 0.5rem;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.modal-content button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-image: linear-gradient(to right, #e0875a, #c8502a);
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  color: white;
}

.modal-img {
  width: 20%;
  margin-top: 1rem;
}

.modal.success-modal {
  display: none; /* cachée par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.success-modal.show {
  display: flex;
  opacity: 1;
}

.modal.success-modal .modal-content {
  background: white;
  color: var(--persian-blue-darkest);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal.success-modal .modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.modal.success-modal .modal-content p {
  margin: 1rem 0;
  font-size: 1rem;
}

.success circle {
  stroke: var(--javalight);
  fill: var(--white);
}

.success path {
  stroke: var(--javalight);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

input.shake {
  animation: shake 0.4s;
  border-color: var(--white);
}

.role-card.active-slide {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input.check-toggle-round-flat:checked ~ .off {
  color: var(--white);
}

input.check-toggle-round-flat:checked ~ .on {
  color: #fff;
}

.switch {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 97px;
  height: 35px;
}

/* Position les labels "Fr" / "En" de façon plus fiable */
.switch > span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  width: 50%;
  text-align: center;
  pointer-events: none;
}

.switch > span.on {
  left: 0;
  padding-left: 2px;
  color: var(--white);
}

.switch > span.off {
  right: 0;
  padding-right: 4px;
  color: #fff;
}

.check-toggle {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}

.check-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
}

input.check-toggle-round-flat + label {
  padding: 2px;
  width: 97px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1); /* semi-transparent fond */
  backdrop-filter: blur(4px);
  border-radius: 60px;
}

input.check-toggle-round-flat + label:before,
input.check-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}

input.check-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 60px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

input.check-toggle-round-flat + label:after {
  top: 2px;
  left: 2px;
  bottom: 2px;
  width: 48px;
  background-image: linear-gradient(to right, #e0875a, #c8502a);
  border-radius: 60px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: margin 0.2s ease-in-out;
}

input.check-toggle-round-flat:checked + label:after {
  margin-left: 44px;
}

.testimonials {
  background-color: var(--neutral-lightest);
  padding: 3rem 0;
  text-align: center;
}
.testimonials__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--persian-blue-darkest);
}
.testimonials__subtitle {
  color: var(--java-darkest);
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto;
}

.testimonials__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonials__item {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  justify-content: space-between;
}

.testimonials__item:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.testimonials__logo img {
  max-width: 120px;
  margin: auto;
  object-fit: contain;
}

.testimonials__card {
  text-align: left;
}
.testimonial__stars {
  display: flex;
  color: var(--persian-blue-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.testimonial__stars span {
  margin-right: 0.25rem;
}
.testimonial__text {
  font-style: italic;
  color: var(--persian-blue-darkest);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial__user {
  display: flex;
  align-items: center;
  margin-top: auto;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  background-color: #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
}
.testimonial__info {
  margin-left: 0.75rem;
}
.testimonial__name {
  font-weight: 600;
  color: var(--eastern-blue-darker);
  margin: 0;
  font-size: 0.9rem;
}
.testimonial__role {
  font-size: 0.8rem;
  color: var(--persian-blue-darker);
  margin: 0;
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 1rem;
  }

  .header-actions {
    margin-top: 1rem;

    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }
}
