/* ============================================================
   GC – COMPOSANTS REUTILISABLES
   Extrait du Custom CSS de la page d'accueil FR (ID 1236) le 27 aout 2026.
   Regroupe les elements non specifiques a une seule page : animations,
   pattern boutons/cartes "hero", effets de glow Divi, carrousel de
   testimonials (Strong Testimonials), et le label des formulaires HubSpot.
   Charge globalement (voir functions.php > load_child_stylesheet).
   ============================================================ */

/* ============================= ANIMATIONS ============================= */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtlePulse {
    50% {
        transform: scale(1.02);
    }
}

@keyframes intensePulse {
    0%, 100% {
        transform: scale(1);
        opacity: .8;
        filter: brightness(1.3) blur(1px);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        filter: brightness(1.8) blur(.5px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(-20px) rotate(6deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes spin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(.9);
    }
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================= BOUTONS "HERO" ============================= */
.hero-card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.hero-card-btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-width: 140px;
    border-radius: 50px;
    background: rgba(0, 255, 255, .1);
    border: 1px solid rgba(0, 255, 255, .3);
    color: var(--color-primary);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(20px);
}

.hero-card-btn-modern:hover {
    background: rgba(0, 255, 255, .2);
    border-color: rgba(0, 255, 255, .6);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, .3);
    color: #fff;
}

@media (max-width: 768px) {
    .hero-card-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .hero-card-btn-modern {
        width: 100%;
        max-width: 200px;
        font-size: .95rem;
    }
}

@media (max-width: 480px) {
    .hero-card-btn-modern {
        font-size: .85rem;
        padding: 10px 14px;
        min-width: 120px;
    }
}

/* ============================= GLOWS DIVI ============================= */
.et_pb_section.has-glow {
    position: relative;
    overflow: hidden;
}

.et_pb_section.has-glow::before,
.et_pb_section.has-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: .9;
}

.et_pb_section.has-glow::before {
    bottom: 15%;
    left: 3%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(0, 255, 255, .9) 0%, rgba(0, 255, 255, .2) 35%, transparent 70%),
        repeating-radial-gradient(circle, rgba(17, 57, 255, .4) 0px, rgba(17, 57, 255, .1) 2px, transparent 4px);
    animation:
        spin 20s linear infinite,
        subtlePulse 6s ease-in-out infinite;
    box-shadow:
        0 0 60px rgba(0, 255, 255, .7),
        0 0 120px rgba(17, 57, 255, .5),
        inset 0 0 40px rgba(0, 255, 255, .3);
}

.et_pb_section.has-glow::after {
    top: 40%;
    right: 5%;
    width: 500px;
    height: 250px;
    background:
        radial-gradient(circle at 50% 30%, rgba(38, 128, 128, .9) 0%, rgba(38, 128, 128, .5) 15%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(38, 128, 128, .7) 0%, rgba(38, 128, 128, .3) 20%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(38, 128, 128, .4) 0%, transparent 50%);
    animation:
        intensePulse 6s ease-in-out infinite,
        float 20s ease-in-out infinite,   /* sans alternate → mouvement continu + plus lent */
        spin 60s linear infinite;        /* rotation beaucoup plus lente et continue */
    box-shadow:
        0 0 60px rgba(38, 128, 128, .8),
        0 0 120px rgba(38, 128, 128, .5),
        inset 0 0 50px rgba(38, 128, 128, .2);
}

/* ============================= ALIGNEMENT BOUTONS EN BAS DES CARTES (DIVI COMPATIBLE) ============================= */

.home_card {
    min-height: 100px;
    position: relative;
    display: block !important;
}

.home_card .hero-card-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    z-index: 10;
    margin-top: 0 !important;
}

.home_card.flexible-height {
    padding-bottom: 80px;
    position: relative;
    min-height: auto;
}

.home_card.flexible-height .hero-card-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    z-index: 10;
    margin-top: 0 !important;
}

.home_card.flex-card {
    display: flex !important;
    flex-direction: column;
    min-height: 350px;
}

.home_card.flex-card .et_pb_blurb_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home_card.flex-card .et_pb_blurb_description {
    flex-grow: 1;
}

.home_card.flex-card .hero-card-buttons {
    margin-top: auto;
    position: relative;
    z-index: 10;
    padding-top: 20px;
}

.home_card .et_pb_main_blurb_image {
    width: 0 !important;
    padding-top: 5px;
    position: relative;
    z-index: 1;
}

.home_card .et_pb_blurb_description {
    padding-top: 0;
    margin-left: -45px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .home_card {
        min-height: auto;
    }

    .home_card .hero-card-buttons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }

    .home_card.flexible-height {
        padding-bottom: 20px;
    }

    .home_card.flexible-height .hero-card-buttons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }
}

/* ============================= FORMULAIRES HUBSPOT ============================= */
.hs-form .hs-form-field label {
  color: white;
}

/* ================================================
   TESTIMONIALS CARROUSEL — Bulles de commentaire
   Strong Testimonials .testimonial_carrousel
   ================================================ */

.testimonial_carrousel .wpmtst-testimonial-inner {
  background:
    linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)) bottom left / 13px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)) bottom right / calc(100% - 38px) 1px no-repeat,
    #2d2d2d !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-bottom: none !important;
  border-radius: 14px 14px 14px 4px;
  padding: 1.25rem 1.5rem 1rem;
  position: relative;
  margin-bottom: 1.5rem;
  overflow: visible;
  box-shadow: none !important;
}

.testimonial_carrousel .wpmtst-testimonial {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.testimonial_carrousel .wpmtst-testimonial-inner::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 11px;
  width: 27px;
  height: 18px;
  background: rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  display: block !important;
}

.testimonial_carrousel .wpmtst-testimonial-inner::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 13px;
  width: 23px;
  height: 15px;
  background: #2d2d2d;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  display: block !important;
}

.testimonial_carrousel h3.testimonial-heading {
  font-size: 18px !important;
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.testimonial_carrousel .testimonial-content p,
.testimonial_carrousel .readmore-excerpt {
  font-size: 14px;
  line-height: 1.5;
}

.testimonial_carrousel .testimonial-name {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

.testimonial_carrousel .testimonial-company {
  margin-top: 0.4rem;
}

.testimonial_carrousel .readmore {
  display: none !important;
}

.testimonial_carrousel .wpmtst-testimonial-content:before,
.testimonial_carrousel .wpmtst-testimonial-content:after {
  width: 22px !important;
  height: 22px !important;
  font-size: 22px !important;
  line-height: 22px !important;
}

/* gc-sidebar-card */
#sticky .et_pb_widget.widget_nav_menu {
  background: #242525;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  margin: 0;
}
#sticky .widget_nav_menu ul { margin: 0; padding: 0; }
#sticky .widget_nav_menu li { margin: 0; padding: 0; background: transparent !important; }
#sticky .widget_nav_menu a {
  display: block;
  padding: 6px 0;
  color: #8fd4d4 !important;
  font-size: 13px;
  line-height: 1.35;
  transition: color .15s ease;
}
#sticky .widget_nav_menu a:hover { color: #00e5e5 !important; }
#sticky .widget_nav_menu li.current_page_item,
#sticky .widget_nav_menu li.current-menu-item { background: transparent !important; }
#sticky .widget_nav_menu li.current_page_item > a,
#sticky .widget_nav_menu li.current-menu-item > a {
  color: white !important;
  font-weight: 700;
  cursor: default;
}
#sticky .gc-dental-help-card {
  background: #242525;
  border: 1px solid rgba(0,229,229,0.25);
  border-radius: 20px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
#sticky .gc-dental-help-card .gc-help-title { color: #f4f6f8; font-weight: 700; font-size: 14px; margin: 0 0 10px; }
#sticky .gc-dental-help-card .gc-help-text { color: #b9c2cc; font-size: 13px; margin: 0 0 14px; }
#sticky .gc-dental-help-card .gc-help-cta {
  display: inline-block;
  background: #00e5e5;
  color: #102a2a !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}

/* gc-sidebar-hover */
#sticky .et_pb_widget.widget_nav_menu,
#sticky .gc-dental-help-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#sticky .et_pb_widget.widget_nav_menu:hover,
#sticky .gc-dental-help-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,229,0.35);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

/* gc-sticky-hover-shadow-reset */
#sticky:hover {
  box-shadow: none !important;
}

/* gc-sticky-desktop-only : masque la sidebar sur mobile => ces regles ne doivent
   s'appliquer qu'au-dela du seuil ou Divi la cache deja (980px), sinon le texte
   se decale sans raison sur mobile. */
@media (min-width: 981px) {
  /* gc-sticky-row-valign-fix */
  .et_pb_row:has(> .et_pb_column #sticky) { align-items: flex-start !important; }
  .et_pb_row:has(> .et_pb_column #sticky) > .et_pb_column.dc-centrer-verticalement { justify-content: flex-start !important; }
  /* gc-sticky-decouple-height */
  .et_pb_row:has(> .et_pb_column #sticky) { position: relative; }
  .et_pb_row:has(> .et_pb_column #sticky) > .et_pb_column:has(#sticky) {
    position: absolute;
    top: 0;
    left: 0;
    width: 20.9%;
  }
  .et_pb_row:has(> .et_pb_column #sticky) > .et_pb_column:has(#sticky) + .et_pb_column { margin-left: 26.4%; }
  /* gc-sticky-row-image-valign */
  .et_pb_row:has(> .et_pb_column #sticky) > .et_pb_column:has(#sticky) + .et_pb_column + .et_pb_column { align-self: center !important; }
}

/* gc-pillar-plates */
.gc-lede { font-size: 18px; line-height: 1.5; color: #c9d2da; font-weight: 400; }
.gc-figure-img { border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.gc-plate,
.et_pb_blurb:has(.gc-plate-tag) {
  position: relative;
  border-left: 2px solid rgba(0,229,229,0.22);
  padding: 6px 0 6px 14px !important;
  margin-bottom: 28px;
  transition: border-color .3s ease;
}
.gc-plate:hover,
.et_pb_blurb:has(.gc-plate-tag):hover { border-left-color: #00e5e5; }
.gc-plate h4, .gc-plate .et_pb_blurb_title { font-size: 21px; font-weight: 900; color: #f4f6f8; margin: 0 0 10px; line-height: 1.25; }
.gc-plate-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e5e5;
  margin-bottom: 8px;
}
.gc-plate-lead { font-size: 15px; font-weight: 700; color: #8fd4d4; margin: 0 0 10px; }
.gc-plate-modules { font-size: 13px; color: #b9c2cc; margin-top: 12px; }
.gc-plate-modules a {
  color: #8fd4d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(143,212,212,0.4);
  transition: color .2s ease, border-color .2s ease;
}
.gc-plate-modules a:hover { color: #00e5e5 !important; border-bottom-color: #00e5e5; }

/* gc-accordion */
.et_pb_accordion_item {
  background: #242525;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.et_pb_accordion_item .et_pb_toggle_title { color: #f4f6f8 !important; font-weight: 700; }
.et_pb_accordion_item .et_pb_toggle_content { color: #b9c2cc !important; padding-left: 0 !important; }
.et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title { color: #00e5e5 !important; }