/*
Theme Name: Frost Child - Myriade
Theme URI: https://frostwp.com/
Description: Thème enfant minimal basé sur Frost
Author: Florent Jonville
Template: frost
Version: 1.7
*/

/*
  --wp--preset--color--black: #000000;
  --wp--preset--color--cyan-bluish-gray: #abb8c3;
  --wp--preset--color--white: #ffffff;
  --wp--preset--color--pale-pink: #f78da7;
  --wp--preset--color--vivid-red: #cf2e2e;
  --wp--preset--color--luminous-vivid-orange: #ff6900;
  --wp--preset--color--luminous-vivid-amber: #fcb900;
  --wp--preset--color--light-green-cyan: #7bdcb5;
  --wp--preset--color--vivid-green-cyan: #00d084;
  --wp--preset--color--pale-cyan-blue: #8ed1fc;
  --wp--preset--color--vivid-cyan-blue: #0693e3;
  --wp--preset--color--vivid-purple: #9b51e0;
  --wp--preset--color--base: #ffffff;
  --wp--preset--color--contrast: #3c3c3b;
  --wp--preset--color--primary: #3897fb // #0096fa;
  --wp--preset--color--secondary: #000017;
  --wp--preset--color--neutral: #94a7b6;
  --wp--preset--color--custom-gris: #f5f5f5;
  --wp--preset--color--custom-violet: #bb62ba;
  --wp--preset--color--custom-jaune: #f39200;
*/

@font-face {
  font-family: 'FontAwesome6Pro-Light';
  font-style: normal;
  font-weight: 300;
  src: url('assets/fonts/FontAwesome6Pro-Light-300.otf') format('opentype');
}

/* TEXT
---------------------------------------- */

span
{
  color: var(--wp--preset--color--primary) !important;
}

.purple span,  
span.purple
{
  color: var(--wp--preset--color--custom-violet) !important;
}

.wp-block-navigation__container span
{
  color: inherit !important;
}

ul li
{
  margin-bottom: 15px;
  padding-left: 10px;
}


/* ICON & IMAGES
---------------------------------------- */

.icon-lv,
.icon-evs,
.icon-lnp,
.icon-technology
{
  position: relative;
  padding-left: 65px;
}

.icon-tm
{
  position: relative;
  padding-left: 80px;
}

.icon-lv::before,
.icon-evs::before,
.icon-lnp::before,
.icon-tm::before,
.icon-technology::before
{
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

.icon-lv::before {
  background: url('/v2025/wp-content/themes/frost-myriade/img/icon-lv.png') no-repeat center/contain;
}

.icon-evs::before {
  background: url('/v2025/wp-content/themes/frost-myriade/img/icon-evs.png') no-repeat center/contain;
}

.icon-lnp::before {
  background: url('/v2025/wp-content/themes/frost-myriade/img/icon-lnp.png') no-repeat center/contain;
}

.icon-tm::before {
  background: url('/v2025/wp-content/themes/frost-myriade/img/icon-tm.png') no-repeat center/contain;
  width: 70px;
}

.icon-technology::before {
  background: url('/v2025/wp-content/themes/frost-myriade/img/icon-technology.png') no-repeat center/contain;
  height: 80px;
}

/* TITLE
---------------------------------------- */

.wp-block-heading
{
  margin-bottom: 40px;
}

.wp-block-uagb-advanced-heading,
.uagb-heading-text
{
    margin-block-start: 1rem !important;
}

#sidebar .wp-block-uagb-advanced-heading,
#sidebar .uagb-heading-text
{
  padding: 0;
  margin-block-start: 0rem !important;
}

.uagb-heading-text small,
.uagb-heading-text sup
{
  font-size: 26px;
}


/* BUTTON
---------------------------------------- */
.wp-block-button__link.wp-element-button
{
  color: #fff !important;
  border-color: var(--wp--preset--color--cyan-bluish-gray) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 12px 20px;
  position: relative;
}

.wp-block-button__link.wp-element-button::after {
  font-family: 'FontAwesome6Pro-Light';
  font-weight: 300;
  content: "\e09f"; /* Unicode de fa-arrow-up-right */
  margin-left: 8px;
  color: #2699ff;
}

.wp-block-button__link.wp-element-button:hover
{
  background-color: var(--wp--preset--color--primary);
  color: #fff !important;
  border: 1px solid #fff !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 12px 20px;
}

.wp-block-button__link.wp-element-button:hover::after {
  color: #FFFFFF;
}

.wpcf7-submit {
  border-radius: 9999px; /* pill */
  background-color: var(--wp--preset--color--primary);
  padding: 12px 20px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  width: auto;
}

/* Hover / active */
.wpcf7-submit:hover,
.wpcf7-submit:active {
  background-color: var(--wp--preset--color--primary);
  color: #fff !important;
  border-color: var(--wp--preset--color--primary);
}

/* Focus (accessible) */
.wpcf7-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 151, 251, 0.15);
}

/* Disabled state */
.wpcf7-submit:disabled,
.wpcf7-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wpcf7-submit {
    transition: none;
  }
}

/* NAVIGATION - MENU
---------------------------------------- */
.wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container
{
  min-width: 15.625rem; /* 250px / 16 = 15.625rem */
  margin-top: 0.125rem;  /* 2px / 16 = 0.125rem */
  padding-top: 25px
}

.wp-block-navigation-item
{
  border-bottom: 2px solid transparent;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content {
  font-size: 14px;
}

.wp-block-navigation-item:hover
{
  border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.wp-block-navigation-submenu .wp-block-navigation-item,
.wp-block-navigation-submenu .wp-block-navigation-item:hover
{
  border-bottom: none;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container
{
  background-color: var(--wp--preset--color--base);
  border: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--neutral);
  padding: 0.625rem; /* 10px ÷ 16 = 0.625rem */
  box-shadow: 0px 1px 5px 0 rgba(0, 0, 0, 0.10);
}

@media (max-width: 600px) {
  .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    box-shadow: none;
  }
}

.wp-block-navigation-submenu .wp-block-navigation-item a:hover
{
  color: var(--wp--preset--color--primary);
}

.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
  min-width: 260px !important;
}
/* HOME
---------------------------------------- */
body.home main
{
  padding-top:0 !important;
  margin-top:0 !important;
}

body.home { background-color: var(--wp--preset--color--secondary) !important; 
}
body.home h2 { color:#0096FA !important; }

body.home p strong { color:#fff; }

body.home p { color:var(--wp--preset--color--cyan-bluish-gray) !important; }

body.home a { text-decoration: none; color: #0096FA !important; }

body.home span { color: #0096FA !important; }


/* FOOTER
---------------------------------------- */

footer
{
  padding-top: 50px;
}

footer p
{
  margin: 0 !important;
  padding: 0;
}


/* SLIDER
---------------------------------------- */
main .swiper-content .uagb-is-root-container::before {
  content: none;
}

.swiper-content h3 {
  color:#fff;
  margin: 15px 0 0 15px;
  line-height: 1;
} 
.swiper-content h3 span {
  font-weight: 400;
} 


/* MOBILE
---------------------------------------- */
@media (max-width: 768px) {
  
  :root :where(.is-layout-flow) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
  }

  .has-global-padding,
  .swiper-content,
  .has-global-padding,
  .wp-block-uagb-slider
  {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .wp-site-blocks
  {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }


  .uagb-ifb-image-content,
  .uagb-ifb-title-wrap
  {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

}



/* VARIOUS
---------------------------------------- */

:root :where(.wp-block-separator) {
  margin: 30px 0  10px 0 ;
  border-color: var(--wp--preset--color--neutral);
}

.w-auto {
  width: fit-content !important;
}

.separator > *:not(:last-child) {
  position: relative;
  padding-right: 55px;
  margin-right: 20px;
}

.separator-50 > *:not(:last-child)
{
  position: relative;
  padding-right: 35px;
  margin-right: 0px;
}

.separator-80 > *:not(:last-child)
{
  position: relative;
  margin-right: 0px;
}

@media (min-width: 970px) {
  .separator > *:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 80%;
    border-right: 1px solid var(--wp--preset--color--neutral);
  }
}

.separator-50 > *:not(:last-child)::after {
  transform: translateY(-10%);
  height: 50%;
}

.separator-80 > *:not(:last-child)::after {
  transform: translateY(-55%);
  height: 80%;
}

.align-flex-start
{
  align-items: flex-start !important;
}

main .uagb-is-root-container {
  position: relative;
  padding-top: 50px;
}

main .uagb-is-root-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background-color: #3f454c;
}

footer .uagb-is-root-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background-color: #3f454c;
}

.box
{
  min-height: 350px;
}
.box figure
{
  margin-top: -45px !important;
}

.upto
{
    max-width: 24px;
    display: inline-block;
    line-height: 17px;
    font-size: 18px !important;
    letter-spacing: 0.01rem;
}

ul.uagb-tabs__panel li.uagb-tab a,
ul.uagb-tabs__panel li.uagb-tab
{
  text-decoration: none !important;
  color: var(--wp--preset--color--neutral) !important;   text-decoration: none !important;

}
ul.uagb-tabs__panel li.uagb-tab.uagb-tabs__active a
{
  color: var(--wp--preset--color--primary) !important;   text-decoration: none !important;
}

.tabs-products ul.uagb-tabs__panel li.uagb-tab#uagb-tabs__tab0 a
{
 color: var(--wp--preset--color--primary) !important;   text-decoration: none !important;
}

.tabs-products ul.uagb-tabs__panel li.uagb-tab#uagb-tabs__tab1 a
{
 color: var(--wp--preset--color--custom-violet) !important;   text-decoration: none !important;
}

/* PUBLICATION
---------------------------------------- */

/* Filter */
.filters-form legend
{
  color: var(--wp--preset--color--neutral);
  text-transform: uppercase;
  font-size: 16px;
  margin-top: 20px;
}

.filters-form label
{
  color: var(--wp--preset--color--contrast) !important;
  padding: 8px 0px;
  display: inline-block;
}

.filters-form input[type="radio"] {
  accent-color: var(--wp--preset--color--contrast);
}

.publications-internes .filter-submit 
{
  margin-top: 20px;
}

.publications-internes,
.publications-externes {
    margin-bottom: 4rem;
}

/* Titres des sections */
.publications-internes h2,
.publications-externes h2 {
    font-size: 1.5rem;
    border-top: 1px solid var(--wp--preset--color--neutral);
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.0rem;
    width: 100%;
}

/* Grid global */
.publications-internes .grid,
.publications-externes .grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
}

/* Sidebar */
.publications-internes aside,
.publications-externes aside {
    padding-right: 0rem;
    background: var(--wp--preset--color--custom-gris);
    border-top: 2px solid var(--wp--preset--color--neutral);
    padding: 15px;
}

/* Responsive : colonne sidebar au-dessus sur petits écrans */
@media (max-width: 768px) {
    .publications-internes .grid,
    .publications-externes .grid {
        grid-template-columns: 1fr; /* une seule colonne */
    }

    .publications-internes aside,
    .publications-externes aside {
        margin-bottom: 1rem; /* espace sous la sidebar */
    }
}

.publications-internes aside h3,
.publications-externes aside h3 {
  padding: 0;
  margin: 0;
  color: var(--wp--preset--color--neutral);
}

/* Conteneur des articles internes */
.internal-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem; /* espace entre les articles */
}

@media (max-width: 1024px) {
    .internal-articles {
        grid-template-columns: 1fr;
    }
}

/* Article interne */
.internal-articles article {
    overflow: hidden;
    padding: 1.2rem;
    background-color: var(--wp--preset--color--custom-gris);
    max-width: 348px;
}

@media (max-width: 600px)
{
  .internal-articles article
  {
     max-width: 100%;
  }
}

/* Image de l'article */
.internal-articles article img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* Sujet */
.internal-articles article span {
    display: inline-block;
    background-color: #445765;
    color: #fff !important;
    font-size: 1rem;
    padding: 0.20rem 0.35rem 0.05rem 0.35rem;
    text-transform: uppercase;
    font-weight: 600;
 }

/* Titres et description */
.internal-articles article h3 {
    font-weight: bold;
    font-size: 1.125rem;
    margin: 5px 0;
    padding: 0;
}

.internal-articles article p {
    font-size: 1rem;
    color: #6b7280;
}

/* Tableaux publications externes */
.publications-externes .wp-block-group .grid-header,
.publications-externes .wp-block-group .grid-row {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr 1fr;
    gap: 0rem;
}

.publications-externes .grid-header {
  font-weight: 700;
}

.publications-externes .wp-block-group > div div {
    padding: 0.25rem;
}

.publications-externes .wp-block-group > div div {
    border-bottom: 1px solid var(--wp--preset--color--neutral);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.publications-externes .wp-block-group a {
  text-decoration: none;
  color: var(--wp--preset--color--primary);
}
.publications-externes .wp-block-group a::after {
  font-family: 'FontAwesome6Pro-Light';
  font-weight: 300;
  content: "\e09f"; /* Unicode de fa-arrow-up-right */
  margin-left: 8px;
  color: var(--wp--preset--color--primary);
}
