/* Manifest section */
.manifest-section {
  position: relative;
  background-color: var(--primary);
  padding: 50px;
}

.manifest-section h2 {
  color: var(--white);
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 120%;
}

/* Values section */
.values-section {
  position: relative;
  height: 100vh;

}

.img-values-wrapper {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* width: 100dvw; */
  /* height: 100dvh;
  width: 100%; */
  overflow: hidden;
  z-index: -3;
}

.img-values-wrapper img {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  will-change: transform;
  transform: translateZ(0);
  /* force GPU */
  backface-visibility: hidden;
  /* évite le jitter */
  filter:
    /* grayscale(0.85) contrast(0.8) brightness(1.2); */
    contrast(0.87) saturate(0.2) brightness(1);
  z-index: -2;
  object-fit: cover;
  object-position: center center;
}

.img-values-overlay {
  position: absolute;
  /* top: 0;
  bottom: 0;
  left: 0;
  right: 0; */
  inset: 0;
  background: #020202;
  opacity: 0.48;
  pointer-events: none;
  z-index: -1;
}

.txt-values-wrapper {
  position: absolute;
  top: 50px;
  left: 50px;
}

.txt-values-wrapper h2 {
  font-family: "Futura LT Heavy";
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 120%;
  color: var(--white);
  margin: 0px;
}

.cta-values-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.description-values-wrapper {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 60%;
}

.description-values-wrapper p {
  color: var(--white);
  text-align: justify;
  margin: 0px;
}

.cta-button {
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.shiny .cta-button {
  position: relative;
  overflow: hidden;
  font-family: "Futura LT", sans-serif;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.sn-link:hover {
  transform: translateY(-3px);
}

.shiny .cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg,
      transparent 30%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 53%);
  transform: skewX(-25deg);
}

.shiny .cta-button:hover::before {
  animation: shine 0.9s forwards;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}


/* Offers section */
.offers-section {
  background-color: var(--white);
  padding: 100px;
  height: fit-content;
  position: relative;
}

.offers-section h2 {
  margin: 20px 0px;
  position: absolute;
  transform: translate(0, -50%);
  top: 50%;
  font-size: clamp(18px, 12vw, 187px);
  max-width: 95vw;
  font-family: "Futura LT Heavy";
  text-align: right;
  letter-spacing: 5px;
  color: rgba(0, 75, 154, 0.13);
}

.sp-strong {
  color: var(--primary);
}

.cards-wrapper {
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.offers-card {
  flex: 1 1 min(250px, 100%);
  max-width: 320px;
  aspect-ratio: 1 / 1.6;
  perspective: 1000px;
  transform-origin: center;
  rotate: -4.83deg;
}

.offers-card:nth-child(2) {
  rotate: 4.83deg;
}

.card-content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.offers-card:hover .card-content {
  transform: rotateY(180deg);
}

.front::before,
.back::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg,
      transparent 47%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 53%);
  background-repeat: no-repeat;
  background-size: 220% 220%;
  background-position: -150% 50%;
  /* départ à gauche */
  transition:
    background-position .8s ease,
    opacity .2s ease;
  /* transition fluide */
  opacity: 0;
  /* par défaut invisible */
  z-index: 4;
}

.offers-card:hover .front::before {
  opacity: 1;
  background-position: 150% 50%;
  transition-delay: .2s, .2s;
  /* (bg-pos, opacity) */
}

.offers-card:hover .back::before {
  opacity: 1;
  background-position: 150% 50%;
  transition-delay: 0s, 0s;
  /* attend ~la moitié du flip */
}

/* LEAVE → retour (front avec délai, back tout de suite) */
.offers-card:not(:hover) .front::before {
  opacity: 1;
  /* on laisse le trait visible pendant le retour */
  background-position: -150% 50%;
  transition-delay: .2s, 0.2s;
  /* bg-pos retardé, opacity peut s’éteindre vite si tu préfères */
}

.offers-card:not(:hover) .back::before {
  opacity: 1;
  background-position: -150% 50%;
  transition-delay: 0s, 0s;
}

/* Faces */
.front,
.back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  /* cache le verso */
  border-radius: 25px;
  padding: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

  /* fond semi-transparent + effet verre */
  background: rgba(0, 75, 154, 0.85);
  /* ton bleu en semi-translucide */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


.front {
  z-index: 2;
  transform: rotateY(0deg);
  line-height: 110%;
}

.back {
  transform: rotateY(-180deg);
  line-height: 120%;
}

/* tilt: on prépare un calque propre */
.offers-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .2s ease-out;
}

/* Pour le titl des cartes */
/* quand on flip, on neutralise le tilt via une classe (voir JS) */
.offers-card.is-flipping {
  transition: transform 0s;
  transform: none !important;
}

/* option: un léger relief sur le contenu pour accent 3D */
.front,
.back {
  transform-style: preserve-3d;
}

.front .card-front-wrapper,
.back .card-back-wrapper {
  transform: translateZ(20px);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {

  .offers-card,
  .card-content {
    transition: none !important;
  }
}

.card-front-wrapper,
.card-back-wrapper {
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  border: 2px solid var(--accent);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front-wrapper {
  text-align: center;
}

.offers-card h3,
.offers-card h4,
.offers-card p {
  margin: 0px;
  color: var(--white);
}

.offers-card ul {
  padding-inline-start: 15px;
  font-size: clamp(12px, 1vw, 15px);
}

.offers-card h3,
.offers-card h4 {
  font-family: "Futura LT Heavy";
}

.offers-card h2 {
  font-size: clamp(14px, 2vw, 24px);
}

.offers-card h3 {
  font-size: clamp(14px, 2vw, 24px);
}

.offers-card h4 {
  font-size: clamp(12px, 1.3vw, 22px);
}

.offers-card .description {
  font-size: clamp(12px, 1vw, 15px);
}

.back-description {
  font-family: "Futura LT light";
  text-align: center;
}

.card-img-wrapper,
.card-img-wrapper img {
  width: 100%;
  height: auto;
}

.offer-price,
.subtitle {
  font-family: 'Futura LT Oblique';
  font-size: clamp(12px, 1vw, 16px);
}

.offers-card .cta-button {
  width: 100%;
  background-color: var(--accent);
  color: var(--primary);
  font-family: "Futura LT Heavy";
  font-size: clamp(12px, 1vw, 16px);
}

.shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg,
      transparent 40%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 60%);
  pointer-events: none;
}

/* Services section */

.services-section {
  background-color: #020202;
}

#services-title {
  background-color: var(--primary);
  padding: 25px;
  overflow: hidden;
  text-align: center;
  /* white-space: nowrap; */
}

#services-title h2 {
  font-size: clamp(22px, 2.5vw, 6rem);
  line-break: 0;
  color: var(--white);
  font-family: 'Futura LT Heavy';
}

#services-title h2 .sp-strong {
  color: var(--accent);
}



/* Contacts section */

.contacts-section {
  box-sizing: border-box;
  padding: 50px;
  background-color: var(--primary);
  display: flex;
  justify-content: space-around;
  gap: 50px;
  flex-wrap: wrap;
}

.contacts-section h2 {
  color: var(--black);
  font-size: 1.3rem;
  text-align: center;
}

.social-network-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20%;
}

.contacts-section h2 {
  margin: 0px 0px 50px 0px;
  color: var(--white);
}

.contact-link {
  position: relative;
  display: flex;
  justify-content: center;
}

.contact-link img {
  height: 282px;
}

.contacts-section .cta-contact {
  box-sizing: border-box;
  background-color: var(--accent);
  color: var(--white);
  font-family: 'Futura LT Heavy';
  font-size: 1.3rem;
  text-decoration: none;
  position: absolute;
  transform-origin: center;
  rotate: -12deg;
  top: 36%;
  padding: 15px 50px;
  border-radius: 10px;
}

.social-network-links {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2vw;
}

.sn-link {
  height: 7vw;
  width: 7vw;
  min-height: 50px;
  min-width: 50px;
  border-radius: 75px;
  border: 4px solid white;
  transition: border-color 0.3s ease;
  position: relative;
}

.social-network-links a {
  width: 100%;
  height: 100%;
}

.social-network-links a:hover img {
  filter: invert(0);
}

.social-network-links a:hover .sn-link {
  border-color: black;
}

.sn-link img {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  height: 4vw;
  width: 4vw;
  min-height: 25px;
  min-width: 25px;
  filter: invert(1);
  transition: filter 0.3s ease;
}

/* Portfolio section */
.portfolio-section {
  padding: 50px 100px;
  height: fit-content;
}

.portfolio-wrapper {
  height: 70vh;
  display: flex;
  gap: 6%;
  justify-content: space-between;
}

.portfolio-section h2 {
  color: var(--primary);
  margin-top: 0px;
}

.portfolio-carousel-wrapper {
  position: relative;
  flex: 1 1 37%;
  perspective: 1200px;
  height: 100%;
  /* 3D */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.portfolio-card {
  position: absolute;
  width: 27dvw;
  border-radius: 25px;
  overflow: hidden;
  user-select: none;

  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  display: block;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  pointer-events: none
}

.portfolio-description-wrapper {
  flex: 1 1 57%;
}

.portfolio-descriptions {
  position: relative;
  /* min-height: 4rem; */
}

.portfolio-desc {
  display: none;
}

.portfolio-desc.is-active {
  display: block;
}

.description-details {
  font-size: clamp(12px, 1.3vw, 22px);
}

.description-details p a {
  color: var(--accent);
}

.description-details p b {
  color: var(--primary);
}

.description-details p a:hover {
  color: var(--primary);
}

/* (facultatif) petite anim */
.portfolio-desc.is-active {
  animation: fadeUp .3s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.portfolio-desc .description-title {
  font-family: 'Futura LT Heavy';
  color: var(--primary);
  margin: 0 0 10px 0;
}

.portfolio-desc .description-subtitle {
  color: rgba(0, 75, 154, 0.50);
  font-family: 'Helvetica';
  font-style: italic;
  font-weight: 200;
  margin: 0 0 50px 0;
  font-size: 1.3rem;
}

.portfolio-desc {
  color: var(--black);
}

/* Testimonial */
/* === SECTION TESTIMONIAL === */
.testimonial-section {
  background-image: url(/wp-content/themes/whatif/assets/images/testimonial_background.webp);
  background-position: center;
  background-size: cover;
  padding: 50px;
}

.testimonial-section h2 {
  color: var(--white);
  margin-top: 0;
  font-family: 'Futura LT Heavy';
  text-align: center;
  margin-bottom: 2rem;
}

/* === GRID PRINCIPALE === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === CARTES === */
.review-card {
  border-radius: 15px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* tailles */
.review-card.size-medium {
  grid-column: span 1;
}

.review-card.size-long {
  grid-column: span 2;
}

/* Thèmes de couleur */
.review-card.theme-blue {
  background: var(--primary);
  color: var(--white);
}

.theme-blue .review-badge {
  background-color: var(--white);
  color: var(--primary);
}

.review-card.theme-white {
  background: var(--white);
  color: var(--black);
}

.theme-white .review-badge {
  background-color: var(--black);
  color: var(--white);
}

/* Badge rond */
.review-card .review-badge {
  height: 50px;
  width: 50px;
  border-radius: 25px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.review-top-wrapper {
  display: flex;
  gap: 25px;
}

.review-top-wrapper div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.review-card.cta-card {
  position: relative;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  overflow: hidden;
}

.review-card.cta-card h3 {
  margin: 0 0 25px 0;
  font-size: clamp(14px, 1.7rem, 22px);
  color: var(--primary);
}

.review-card.cta-card p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.cta-card .btn-cta {
  position: absolute;
  top: 145px;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transform: rotate(-12deg);
}

/* étoiles */
.review-card .stars {
  color: var(--accent);
  letter-spacing: 2px;
}

/* logo contact */
.logo-contact {
  height: 200px;
  filter: contrast(0);
}

@media (max-width: 1100px) {
  .reviews-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .review-card {
    flex: 1 1 50%;
  }

  .testimonial-section {
    padding: 40px 30px;
  }

}

/* -- sous 768px : 1 colonne -- */
@media (max-width: 768px) {
  .reviews-grid {
    display: block;
  }

  .review-card {
    margin-bottom: 25px;
  }

  .review-card.cta-card {
    padding: 30px 20px;
  }
}

/* FAQ Section */

.faq-section {
  padding: 50px;
}

.faq-section h2 {
  color: var(--primary);
  margin-top: 0;
  font-family: 'Futura LT Heavy';
  text-align: center;
  margin-bottom: 2rem;
}

/* Item */
.faq-item {
  border: 1px solid rgba(0, 75, 154, 0.2);
  border-radius: 10px;
  background: #fff;
  margin: .75rem 0;
  overflow: hidden;
  transition: border-color .3s ease;
}

.faq-item[open] {
  border-color: var(--primary, #004B9A);
}

/* Question */
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  color: var(--primary);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  background: rgba(0, 75, 154, 0.06);
}

/* Icone +/– */
.faq-icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary, #004B9A);
  transform: translateY(-50%);
  transition: transform .3s ease;
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

/* Réponse animée */
.faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-item[open] .faq-a-wrap {
  max-height: 400px;
  /* assez grand pour contenir la réponse */
}

.faq-a {
  padding: 1rem 1.25rem 1rem;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .cards-wrapper {
    flex-direction: column;
    /* directement 1 par ligne */
  }

  .offers-card {
    width: 100%;
    max-width: 320px;
  }

  .offers-section {
    padding: 50px;
  }

  .offers-section h2 {
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw;
    font-size: clamp(25px, 20vw, 400px);
    color: var(--primary);
  }
}

@media (max-width: 800px) {
  .description-values-wrapper {
    box-sizing: border-box;
    position: absolute;
    bottom: 50px;
    left: 0px;
    width: 100%;
    padding: 0px 50px;
  }

  .portfolio-section {
    display: none;
  }
}