.card--testimonial blockquote p {
  white-space: normal;
  word-break: normal;
  overflow: visible;
  font-size: 1.08rem;
  font-style: italic;
  padding: 0.5em 0.2em;
  line-height: 1.5;
  max-width: 100%;
}
.card--testimonial blockquote {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
body[data-page="home"] .hero {
  min-height: clamp(600px, 90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  background: #000000;
}

body[data-page="home"] .hero::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #e6b86a 0%, #fffbe6 100%);
  border-radius: 2px;
  opacity: 0.85;
}

body[data-page="home"] .hero .container.grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem 2rem;
  height: 100%;
}

@media (max-width: 900px) {
  body[data-page="home"] .hero {
    min-height: clamp(400px, 70vh, 600px);
  }
  body[data-page="home"] .hero .container.grid--2 {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem 1.5rem 1rem;
    height: 100%;
  }
  .hero__media {
    margin-top: 1.5rem;
  }
  body[data-page="home"] .hero,
  .page-hero {
    padding-block: 0 !important;
  }
}

body[data-page="home"] .section--services {
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .section--works {
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

body[data-page="home"] .section--logos {
  padding-block: var(--space-lg);
}

body[data-page="home"] .section--testimonials {
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

body[data-page="home"] .section--services .section__intro {
  min-height: unset;
  display: block;
  margin-bottom: 2.5rem;
}

.centered-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 20vh;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.services-intro-centered { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  height: auto;
}

.services-intro-centered h2,
.services-intro-centered p {
  margin-left: auto;
  margin-right: auto;
}

.services-intro-centered h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.services-intro-centered p {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

.grid--partners {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
}

.card--partenaire {
  border-radius: 2rem;
  padding: 0;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 280px;
  max-width: 300px;
  height: 520px;
  scroll-snap-align: center;
}

.card--partenaire:hover,
.card--partenaire:focus {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px) scale(1.03);
}

.partenaire-figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 3/4;
  /* ou 16/9 selon préférence */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2rem;
  background: #18120a;
  height: auto;
  min-height: 0;
  max-height: none;
}

.partenaire-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: none;
}

.partenaire-body {
  width: 100%;
  padding: 1.2rem 1rem 1.2rem 1rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partenaire-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem 0;
  color: #fff;
  /* text-transform: lowercase; */
  letter-spacing: 0.01em;
}

.partenaire-body p {
  font-size: 1rem;
  color: var(--color-text-muted, #a0a0a0);
  margin: 0;
  font-weight: 500;
}

.cta-partenaires {
  text-align: center;
  margin: 2.5rem 0 0 0;
}

.cta-partenaires .btn {
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  border: none;
}

.card--testimonial {
  background: #fffbe9;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  margin: 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  max-width: 370px;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.5s;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.card--testimonial:hover,
.card--testimonial:focus {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px) scale(1.03);
}

.card--testimonial.active {
  opacity: 1;
  transform: translateY(0) scale(1.04);
  z-index: 2;
}

.card--testimonial blockquote {
  font-size: 1.13rem;
  font-style: italic;
  color: #444;
  text-align: left;
  margin: 0 0 1.2rem 0;
  position: relative;
  width: 100%;
}

.card--testimonial blockquote:after {
  content: '';
}

.card--testimonial .card__author {
  font-size: 1.01rem;
  font-weight: 600;
  color: #000000;
  margin-top: auto;
  letter-spacing: 0.01em;
  text-align: left;
  padding-top: 0.7em;
}

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.hero__media video {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 2rem;
  background: #18120a;
  box-shadow: 0 2px 24px rgba(0,0,0,0.12);
  display: block;
}

.div-center {
  display: auto;
  justify-content: center;
  align-items: center;
}

.section__centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 45vh;
  width: 100%;
}

/* =========================
   Services Cards (Grid Cards)
   ========================= */
.card.card--service {
  background-color: #000000;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.18);
  overflow: hidden;
  margin-bottom: 0;
}
.card.card--service .container {
  position: relative;
  clip-path: polygon(0 0,100% 0, 100% 85%, 0 100%);
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.card.card--service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}
.card1 > .container:after,
.card2 > .container:after,
.card3 > .container:after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px 20px 0 0;
  z-index: 2;
  pointer-events: none;
}
.card1 > .container:after {
  background: linear-gradient(135deg, #dfad41, #dab9001f);
  opacity: 0.7;
}
.card2 > .container:after {
  background: linear-gradient(135deg, #dfad41, #dab9001f);
  opacity: 0.7;
}
.card3 > .container:after {
  background: linear-gradient(135deg, #dfad41, #dab9001f);
  opacity: 0.7;
}
.card.card--service .details {
  padding: 20px 10px;
}
.card.card--service .details > h3 {
  color: #fff;
  text-shadow: 0 1px 4px rgb(0, 0, 0);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 10px 0 15px 0;
}
.card.card--service .details > p {
  color: #a0a0a0;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}
.card.card--service .link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: #d6b16a;
  font-weight: 500;
  text-decoration: underline;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 3;
}
.carousel-arrow {
  background: rgba(24, 18, 10, 0.85);
  border: none;
  color: #e6b86a;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  pointer-events: auto;
  margin-left: 5%;
  margin-right: 5%;
}
.carousel-arrow:active,
.carousel-arrow:focus {
  background: #e6b86a;
  color: #18120a;
  outline: none;
  transform: scale(1.08);
}
.carousel-arrow[disabled] {
  opacity: 0.4;
  pointer-events: none;
}
.testimonials-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 3;
}
.testimonials-arrow {
  background: rgba(24, 18, 10, 0.85);
  border: none;
  color: #e6b86a;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  pointer-events: auto;
  margin-left: 3%;
  margin-right: 3%;
}
.testimonials-arrow:active,
.testimonials-arrow:focus {
  background: #e6b86a;
  color: #18120a;
  outline: none;
  transform: scale(1.08);
}
.testimonials-arrow[disabled] {
  opacity: 0.4;
  pointer-events: none;
}
.card--testimonial {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.5s, transform 0.5s;
}
.card--testimonial.active {
  opacity: 1;
  transform: translateX(0) scale(1.04);
  z-index: 2;
}
.card--testimonial .typewriter {
  display: inline-block;
  border-right: 2px solid #e6b86a;
  white-space: pre-line;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: typing 1.5s steps(80, end), blink-caret 0.7s step-end infinite;
  font-size: 0.98rem;
  font-style: italic;
}

.card--testimonial .typewriter.typewriter-finished {
  border-right: none;
  animation: none;
}
.card--testimonial:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 1;
}
@media (max-width: 1024px) {
  .card.card--service {
    margin-bottom: 0;
  }
  .grid.grid--2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .carousel-arrow {
    margin-left: 2%;
    margin-right: 2%;
  }
  .testimonials-arrow {
    margin-left: 1%;
    margin-right: 1%;
  }
}

.services-intro-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem auto 0 auto;
  max-width: 900px;
  width: 100%;
  font-size: 1.13rem;
  line-height: 1.7;
}
.services-intro-2col > div {
  background: none;
  padding: 0;
  text-align: left;
}
@media (max-width: 900px) {
  .services-intro-2col {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    font-size: 1.08rem;
  }
  .services-intro-2col > div {
    text-align: left;
  }
}

/* Présentation Openink moderne */
.openink-presentation-block {
  background: #000000;
  border-radius: 2rem;
  box-shadow: 0 4px 32px 0 #0002;
  max-width: 700px;
  margin: 3rem auto 2.5rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  color: #f5f5f5;
}
.openink-presentation-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
.openink-presentation-title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 700;
  color: #e6b86a;
  margin-bottom: 0.5rem;
}
.openink-presentation-lead {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.openink-presentation-text {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.openink-presentation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.openink-presentation-list li {
  background: #e6b86a22;
  border-radius: 1rem;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
}
.openink-presentation-foot {
  font-size: 1rem;
  color: inherit;
  margin-top: 1.2rem;
  text-align: center;
}
@media (max-width: 600px) {
  .openink-presentation-block {
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    border-radius: 1.2rem;
  }
  .openink-presentation-list {
    gap: 0.7rem;
  }
}
@media (min-width: 900px) {
  .openink-presentation-block {
    padding: 3.5rem 3rem 2.5rem 3rem;
    max-width: 800px;
    font-size: 1.15rem;
    box-shadow: 0 8px 48px 0 #0003;
    border: 1.5px solid #e6b86a33;
  }
  .openink-presentation-icon svg {
    width: 64px;
    height: 64px;
  }
  .openink-presentation-title {
    font-size: 2.5rem;
  }
  .openink-presentation-lead {
    font-size: 1.3rem;
  }
  .openink-presentation-list {
    gap: 3rem;
  }
  .openink-presentation-list li {
    font-size: 1.15rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
  }
  .openink-presentation-list li:hover {
    background: #e6b86a;
    color: #18120a;
  }
}

/* Présentation Openink en 2 colonnes */
.openink-presentation-2col {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 3.5rem auto 2.5rem auto;
  max-width: 1100px;
}
.openink-presentation-2col .openink-presentation-block {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px 0 #0006;
  border-radius: 2rem;
  border: 1.5px solid #e6b86a33;
  padding: 3rem 2rem 2.5rem 2rem;
  background: #000000;
  transition: box-shadow 0.2s;
}
.openink-presentation-2col .openink-presentation-block:first-child {
  box-shadow: 0 12px 48px 0 #e6b86a44;
  border: 2px solid #e6b86a;
  z-index: 1;
}
.openink-presentation-2col .openink-presentation-block:hover {
  box-shadow: 0 16px 64px 0 #e6b86a66;
}
.openink-presentation-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e6b86a;
  margin-bottom: 0.7rem;
  text-align: center;
}
.openink-presentation-lead {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}
.openink-presentation-text {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-align: center;
}
.openink-presentation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}
.openink-presentation-list li {
  background: #18120a;
  color: #e6b86a;
  border-radius: 1rem;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px 0 #e6b86a22;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.openink-presentation-list li:hover {
  background: #e6b86a;
  color: #18120a;
}
.openink-presentation-foot {
  font-size: 1rem;
  color: inherit;
  margin-top: 1.2rem;
  text-align: center;
}
.openink-presentation-icon {
  margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
  .openink-presentation-2col {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
  }
  .openink-presentation-2col .openink-presentation-block {
    padding: 2rem 0.7rem 1.2rem 0.7rem;
    border-radius: 1.2rem;
  }
}