/**
 * Theme Name: Why Not Connect
 * Template: Divi
 * ...other header fields
 */

/* ==================== VARIABLES CSS ==================== */
:root {
  /* Colors */
  --color-cream: #ffffff;
  --color-warm: #f8f9fa;
  --color-pink: #e91e63;
  --color-pink-dark: #c2185b;
  --color-pink-light: #fce4ec;
  --color-cyan: #00b8d4;
  --color-cyan-dark: #0097a7;
  --color-deep: #2d3748;
  --color-gray: #718096;
  --color-gray-light: #a0aec0;
  --color-success: #48bb78;
  --color-warning: #ecc94b;
  --color-error: #f56565;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #e91e63 0%, #00b8d4 100%);
  --gradient-soft: linear-gradient(
    135deg,
    rgba(233, 30, 99, 0.1) 0%,
    rgba(0, 184, 212, 0.1) 100%
  );

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

/* ========== GLOBAL CHANGES ==========*/

.am-els .am-ec {
  box-shadow:
    rgb(233, 30, 99) 0px 2px 2px -1px,
    rgba(233, 30, 99, 0.3) 0px 0px 11px,
    rgb(233, 30, 99) 8px 0px 0px inset !important;
}

.amelia-v2-booking div#amelia-container .am-ec {
  background-color: white;
}

.mwai-messages-theme.mwai-window {
  z-index: 999 !important;
}

/* ========== CUSTOM NAV CSS BEGIN ========== */

/* .nav-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 64px;
  align-content: center;
  justify-content: center;
  justify-items: center;
}

.nav-logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

ul#menu-principal-new li:hover {
  border-bottom: 2px solid var(--gradient-main);
}

.menu-container {
  grid-column: span 2;
}

.menu-item a {
  padding: 16px;
}

.cta-container {
  justify-self: end;
  display: flex;
  gap: 32px;
  align-items: center;
}

.cta-cart {
  height: 24px;
  width: 24px;
  position: relative;
}

.cta-cart__count {
  position: absolute;
  display: flex;
  width: 15px;
  height: 15px;
  background-image: var(--gradient-main);
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  border-radius: 100%;
  bottom: 0;
  right: 0;
  left: 16px;
  top: -8px;
  align-items: center;
  justify-content: center;
}

.cta-logged {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-image: var(--gradient-main);
}

.cta-logged img {
  width: 24px;
}

.cta-account {
  display: flex;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-account__button {
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
}

.cta-account__button--login {
  color: var(--color-deep);
  border: 2px solid var(--color-deep);

  &:hover {
    color: white;
    background-color: var(--color-deep);
  }
}

.cta-account__button--register {
  color: white;
  background-image: var(--gradient-main);

  &:hover {
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
  }
} */

/* ===== STYLES DE BASE (Desktop) ===== */
#main-header {
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 64px;
  align-content: center;
  justify-content: center;
  justify-items: center;
  position: relative;
}

.nav-logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-wrap: wrap;
}

ul#menu-principal-new li:hover {
  border-bottom: 2px solid var(--gradient-main);
}

.menu-container {
  grid-column: span 2;
}

.menu-item a {
  padding: 16px;
}

.nav-links .menu-item a:hover {
  border-bottom: 2px solid var(--color-pink);
}

.cta-container {
  justify-self: end;
  display: flex;
  gap: 32px;
  align-items: center;
}

.cta-cart {
  height: 24px;
  width: 24px;
  position: relative;
}

.cta-cart__count {
  position: absolute;
  display: flex;
  width: 15px;
  height: 15px;
  background-image: var(--gradient-main);
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  border-radius: 100%;
  bottom: 0;
  right: 0;
  left: 16px;
  top: -8px;
  align-items: center;
  justify-content: center;
}

.cta-logged {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-image: var(--gradient-main);
}

a.cta-logged--mobile {
  display: none;
}

.cta-logged img {
  width: 24px;
}

.cta-account {
  display: flex;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-account.cta-account--mobile {
  display: none;
}

.cta-account__button {
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
}

.cta-account__button--login {
  color: var(--color-deep);
  border: 2px solid var(--color-deep);
}

.cta-account__button--login:hover {
  color: white;
  background-color: var(--color-deep);
}

.cta-account__button--register {
  color: white;
  background-image: var(--gradient-main);
}

.cta-account__button--register:hover {
  box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

/* ===== BURGER MENU (caché par défaut) ===== */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.4s ease;
}

.burger-line {
  width: 30px;
  height: 3px;
  background-color: var(--color-deep);
  border-radius: 10px;
  transition: all 0.4s ease;
  transform-origin: center;
}

/* Animation du burger en X */
.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay (fond sombre) */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== RESPONSIVE - TABLETTE ET MOBILE ===== */
@media (max-width: 980px) {
  .et_fixed_nav #main-header {
    position: fixed;
  }

  .nav-container {
    grid-template-columns: 1fr auto auto;
    padding: 16px 32px;
    gap: 16px;
    justify-items: start;
    align-items: center;
  }

  /* Afficher le burger */
  .burger-menu {
    display: flex;
    grid-column: 2;
    justify-self: end;
  }

  /* Menu mobile (slide depuis la droite) */
  .menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 80px 32px 32px;
    overflow-y: auto;
    transition: right 0.4s ease;
    grid-column: unset;
    display: flex;
    flex-direction: column;
  }

  .menu-container.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links li a {
    transition: all 0.4s ease;
  }

  ul#menu-principal-new {
    width: 100%;
  }

  ul#menu-principal-new li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  ul#menu-principal-new li:hover {
    border-bottom: 1px solid var(--gradient-main);
    background-color: #f9f9f9;
  }

  .menu-item a {
    display: block;
    padding: 16px 0;
    width: 100%;
  }

  /* CTA Container en mobile - maintenant dans le menu */
  .cta-container {
    display: none; /* Cacher le container original */
  }

  /* Clone des CTA dans le menu mobile */
  .menu-container::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #eee;
    margin: 24px 0;
  }

  /* Boutons CTA intégrés dans le menu */
  .cta-account.cta-account--mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: all;
    background: transparent;
    box-shadow: none;
  }

  .cta-account__button {
    width: 100%;
    justify-content: center;
  }

  a.cta-logged--mobile {
    display: flex;
    padding: 16px;
    width: fit-content;
    color: var(--color-cream);
    border-radius: 50px;
  }

  /* Empêcher le scroll du body quand le menu est ouvert */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 16px 20px;
  }

  .nav-logo img {
    height: 35px;
  }

  .menu-container {
    width: 100%;
  }

  .cta-cart {
    height: 20px;
    width: 20px;
  }

  .cta-logged img {
    width: 20px;
  }
}

/* ========== CUSTOM FOOTER BEGIN ========== */

footer#main-footer {
  background-color: var(--color-deep);
  padding: 24px;
}

.footer-container {
  max-width: 1120px;
  margin: auto;
  padding-top: 64px;
  padding-bottom: 32px;
}

.main-footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 16px;
  font-weight: 300;

  &:first-child {
    padding: 0;
    grid-column: span 2;
  }
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.tagline {
  color: var(--color-cream);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 24px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  border: 1px solid var(--color-gray);
  padding: 8px;
}

.footer-section__title {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
}

.footer-menu,
.footer-section__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu .menu-item a {
  padding: 0;
}

.legal-inline {
  display: flex;
}

.legal-inline p {
  margin: 0 8px;
}

@media (max-width: 980px) {
  .main-footer {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-section:first-child {
    padding: 0 16px;
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  .main-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .main-footer {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ==================== CUSTOM DASHBOARD CSS BEGIN ========== */

.custom_h2-name {
  color: #27537f;
}

.custom_dashboard_grid {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  .custom_dashboard_grid-item {
    aspect-ratio: 4/2;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #5a1d28;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.5s;
    border: 1px solid #5a1d28;
    /*box-shadow: 6px 6px 16px -2px rgba(0, 0, 0, 0.5);*/

    &:hover {
      scale: 1.05;
      -webkit-box-shadow: 6px 6px 16px -2px rgba(0, 0, 0, 0.5);
      box-shadow: 6px 6px 16px -2px rgba(0, 0, 0, 0.5);
      /* border: none;
      background-color: #ea92ac; */
    }

    a {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9;
    }
  }

  .custom_dashboard_customer-logout {
    background-color: #d5165b;
    border: none;
    color: white;
  }

  .custom_dashboard_grid-item_icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    background-repeat: no-repeat;
    background-size: contain;
  }

  @media only screen and (max-width: 980px) {
    .custom_dashboard_grid-item_icon {
      width: 30px;
      height: 30px;
      margin-bottom: 8px;
    }
    .custom_dashboard_grid-item {
      width: 48%;
    }
  }

  @media only screen and (max-width: 767px) {
    .custom_dashboard_grid-item {
      width: 100%;
    }
  }

  .custom_dashboard_orders_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/package.svg);
  }
  .custom_dashboard_downloads_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/downloads.svg);
  }
  .custom_dashboard_edit-account_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/Account.svg);
  }
  .custom_dashboard_payment-methods_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/payment.svg);
  }
  .custom_dashboard_customer-logout_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/LogOut-1.svg);
  }
  .custom_dashboard_dashboard_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/Home.svg);
  }
  .custom_dashboard_edit-address_icon {
    background-image: url(https://dev.whynotconnect.fr/wp-content/uploads/2025/12/adress.svg);
  }
}
/* CUSTOM DASHBOARD CSS END*/

/* CSS ACCUEIL */

/* ========== SECTION OFFRES ========== */
.offers-container {
  position: relative;
  padding: 24px;
  width: 100%;
}

.offers-container_content {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 980px) {
  .offers-container {
    overflow-x: scroll;
    scroll-behavior: smooth;
  }

  .offers-container_content {
    width: 1120px;
  }

  button#offers-left {
    left: 0;
    transform: rotate(90deg);
  }

  button#offers-right {
    right: 0;
    transform: rotate(-90deg);
  }

  /* button#offers-left,
  button#offers-right {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 24px;
    display: flex;
    border: none;
    background-image: var(--gradient-soft);
    height: 40px;
    width: 40px;
    border-radius: 100%;
    cursor: pointer;
    color: var(--color-deep);
    font-size: 3rem;
    overflow: hidden;
    z-index: 100;
    align-items: center;
    justify-content: center;
  } */
}

#offers-left,
#offers-right {
  display: none;
}

.offers-container p:empty {
  display: none;
}

.offers-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  background-color: white;
  gap: 32px;
  max-width: 85vw;
  padding: 40px;
  flex: 1;
  transition: all 0.4s ease;
}

@media (min-width: 981px) {
  .offers-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.12);
  }
}

.offers-top-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.offers-card p,
.offers-card br {
  margin: 0;
  padding: 0;
}

.offers-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 300;
  color: var(--color-deep);
}

.offers-price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #000;
  font-weight: 500;
}

.offers-tagline {
  color: var(--color-gray);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 300;
}

.offers-line {
  width: 100%;
  border: 1px solid var(--color-warm);
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offers-list_item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.offers-list_item_sliced p {
  color: var(--color-gray-light) !important;
}

.offers-highlight {
  background: var(--gradient-main);
  color: white;
}

.offers-highlight div p {
  color: white;
}

.offers-bot-content {
  width: 100%;
  display: flex;
}

.offers-CTA {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  margin: auto;
  color: var(--color-pink);
  border-radius: 50px;
  border: 2px solid var(--color-pink);
  padding: 16px;
  width: 100%;
  transition: all 0.4s ease;
}

@media (min-width: 981px) {
  .offers-CTA:hover {
    background-color: var(--color-pink);
    color: var(--color-cream);
  }
}

.offers-CTA_highlight {
  border: 2px solid var(--color-cream);
  background-color: var(--color-cream);
}

@media (min-width: 981px) {
  .offers-CTA_highlight:hover {
    background-color: transparent;
    color: var(--color-cream);
  }
}
/* ========== FIN SECTION OFFRES ========== */

/* ========== SECTION CARTES E-BOOKS ========== */
.ebook-products {
  width: 100%;
  padding: 24px;
}

@media (max-width: 980px) {
  div.ebook-products-container {
    grid-template-columns: repeat(1, 1fr);
  }

  div.ebook-card {
    width: 100%;
  }

  div.ebook-card__image {
    display: none;
  }
}

.ebook-products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-warm);
  transition: all 0.4s ease;
}

@media (min-width: 981px) {
  .ebook-card:hover {
    transform: translateY(-8px);
    box-shadow: rgba(233, 30, 99, 0.3) 0px 10px 30px;
  }
}

.ebook-card__image {
  width: auto;
  height: 280px;
  overflow: clip;
}

.ebook-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 24px;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.ebook-card__tags {
  padding: 0;
  margin: 0;
  .product-tag {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--color-cyan);
  }
}

.ebook-card__title a {
  color: var(--color-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
}

.ebook-card__description {
  color: var(--color-gray);
  font-size: 0.9rem;
  font-weight: 300;
  font-family: var(--font-body);
}

.ebook-card__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ebook-card__price {
  color: var(--color-pink);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.ebook-card__button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-cream);
  padding: 12px 24px;
  background-image: var(--gradient-main);
  border-radius: 50px;
  width: fit-content;
  line-height: normal;
  transition: all 0.4s ease;
}

@media (min-width: 981px) {
  .ebook-card__button:hover {
    transform: translateY(-8px);
    box-shadow: rgba(233, 30, 99, 0.3) 0px 10px 30px;
  }
}

/* ========== FIN SECTION CARTES E-BOOKS ========== */

/* ========== SECTION CONTACT FORM ========== */

div.form-container {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  gap: 32px;
}

div.form-field .wpforms-field-label {
  font-family: var(--font-body);
  font-size: 1rem !important;
  font-weight: 300;
}

div.form-field input[type='text'],
div.form-field input[type='email'],
div.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

div.form-field input[type='text']:focus:invalid,
div.form-field input[type='text']:focus,
div.form-field input[type='email']:focus:invalid,
div.form-field input[type='email']:focus,
div.form-field input[type='number']:focus:invalid,
div.form-field input[type='number']:focus,
div.form-field input[type='radio']:focus:invalid,
div.form-field input[type='radio']:focus,
div.form-field select:focus:invalid,
div.form-field select:focus,
div.form-field textarea:focus:invalid,
div.form-field textarea:focus {
  border: 2px solid var(--color-deep);
  color: var(--color-deep);
}

div.form-field input[type='text']:valid,
div.form-field input[type='email']:valid,
div.form-field input[type='number']:valid,
div.form-field input[type='radio']:valid,
div.form-field select:valid,
div.form-field textarea:valid {
  border: 2px solid var(--color-success);
}

div.wpforms-container-full button[type='submit'].form-submit {
  padding: 20px 40px;
  height: auto;
  width: 100%;
  text-align: center;
  background-image: var(--gradient-main);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.4s ease;
}

div.wpforms-container-full button[type='submit'].form-submit:hover {
  transform: translateY(-8px);
  background-image: var(--gradient-main);
  box-shadow: rgba(233, 30, 99, 0.3) 0px 10px 30px;
}

div.wpforms-container-full button[type='submit'].form-submit:hover {
  transform: translateY(-8px);
  background-image: var(--gradient-main);
  box-shadow: rgba(233, 30, 99, 0.3) 0px 10px 30px;
}

div.wpforms-container-full .wpforms-confirmation-container-full {
  background-image: var(--gradient-main) !important;
  border-radius: 50px;
  padding: 20px 40px !important;
  border-color: var(--color-cream) !important;
}

div.wpforms-container-full .wpforms-confirmation-container-full p {
  color: var(--color-cream) !important;
}

/* ========== FIN SECTION CONTACT FORM ========== */

/* FIN CSS ACCUEIL */
