/* -------------------------------------------------------------------------- */
/* THEME INFO                                                                 */
/* -------------------------------------------------------------------------- */
/* 
Theme Name: MonAvocat.ca Child theme
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style,
      featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------- */
/* ROOT VARIABLES                                                             */
/* -------------------------------------------------------------------------- */
:root {
  /* Dex (cards / grid) */
  --dex-card-bg: #C9E5E1;
  --dex-card-bg-hover: #fff;
  --dex-title: #0A2949;
  --dex-arrow: #0A2949;
  --dex-cut: 30px;
  --dex-rad: 0;
  --dex-gap: 18px;
  --dex-pad: 30px;
  --dex-icon: 56px;
  --dex-minh: 320px;
  --dex-speed: 200ms;
  --dex-ease: cubic-bezier(.2,.7,.2,1);

  /* Footer */
  --footer-h: 400px;

  /* Accordéon */
  --acc-title-bg: #C9E5E1;
  --acc-title-bg-open: #ffffff;
  --acc-content-bg: #ffffff;
  --acc-cut: 30px;
  --acc-radius: 0;
  --acc-gap: 12px;
  --acc-icon-size: 40px;
  --acc-pad-x: 16px;
  --acc-pad-y: 14px;
  --acc-speed: 220ms;
  --acc-ease: cubic-bezier(.2,.7,.2,1);
}

/* -------------------------------------------------------------------------- */
/* GLOBAL BASE                                                                */
/* -------------------------------------------------------------------------- */
html { scroll-behavior: auto !important; } /* pas de smooth natif */
html, body { overflow-x: hidden; }

h1.entry-title { font-weight: 400; padding: 10px; }
.page-content { background-color: #fff; }

.page-content ul:not(.elementor-nav-menu) {
  margin: 0 0 20px;
  padding-left: 16px;
}

/* Typographies spécifiques */
.intro p   { font-size: 45px; line-height: 4rem; }
.gros p    { font-size: 24px; }
.exergue p {
  font-size: 24px;
  padding: 30px 0;
  border-top: 1px solid #BFC8D4;
  border-bottom: 1px solid #BFC8D4;
  text-indent: 55px;
  line-height: 2.5rem;
}
.details p { font-size: 14px; }
.notes p   { font-size: 12px; }

/* -------------------------------------------------------------------------- */
/* HEADER                                                                     */
/* -------------------------------------------------------------------------- */
.elementor-location-header { z-index: 1000; }
.elementor-sticky__spacer { pointer-events: none; }

.page-header {
  min-height: 220px;
  display: flex;
  align-items: center;
  background-color: #fff;
}


/* Accueil */
.main_banner  { height: 100vh; }
.home h1      { font-size: 90px; font-weight: 300; }

/* -------------------------------------------------------------------------- */
/* FOOTER                                                                     */
/* -------------------------------------------------------------------------- */
main.site-main {
  position: relative;
  z-index: 1;
  background: transparent;
}
main.site-main .elementor-section {
  background-clip: padding-box;
}

/* -------------------------------------------------------------------------- */
/* ACCORDÉONS                                                                 */
/* -------------------------------------------------------------------------- */
.acc-domaines { display: grid; gap: var(--acc-gap); }
.acc-item     { border: 0; }

.acc-head {
  all: unset;
  display: grid;
  grid-template-columns: var(--acc-icon-size) 1fr auto;
  align-items: center;
  gap: 28px;
  width: calc(100% - 60px);
  background: var(--acc-title-bg);
  padding: 35px 30px;
  font-size: 30px;
  font-weight: 400;
  cursor: pointer;
  border-radius:0!important;
  clip-path: polygon(0 0, calc(100% - var(--acc-cut)) 0,
                     100% var(--acc-cut), 100% 100%, 0 100%);
  transition: background-color var(--acc-speed) var(--acc-ease),
              clip-path var(--acc-speed) var(--acc-ease),
              box-shadow var(--acc-speed) var(--acc-ease);
}
.acc-head:hover,
.acc-head:focus,
.acc-head[aria-expanded="true"] {
  background: #fff!important;
  color: #002554;
}

/* Icônes et titres */
.acc-icon  { width: var(--acc-icon-size); height: var(--acc-icon-size); display: inline-grid; place-items: center; }
.acc-icon img, .acc-icon svg { width: 100%; height: 100%; object-fit: contain; }
.acc-title { color: #002554; }

/* Toggle + / - */
.acc-toggle        { width: 40px; height: 40px; display: inline-grid; place-items: center; }
.acc-toggle svg    { width: 40px; height: 40px; position: absolute; transition: transform var(--acc-speed) var(--acc-ease), opacity var(--acc-speed) var(--acc-ease); }
.icon-plus         { opacity: 1; transform: rotate(0) scale(1); }
.icon-minus        { opacity: 0; transform: rotate(-90deg) scale(.75); }
.acc-head[aria-expanded="true"] .icon-plus  { opacity: 0; transform: rotate(90deg) scale(.75); }
.acc-head[aria-expanded="true"] .icon-minus { opacity: 1; transform: rotate(0) scale(1); }

/* Toggle personnalisé avec SVG externes */
.acc-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform var(--acc-speed) var(--acc-ease);
}

/* Icône plus */
.acc-toggle::before,
.acc-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity var(--acc-speed) var(--acc-ease);
}
.acc-toggle::before {
  background-image: url('/wp-content/themes/wp-child-theme-monavocat/assets/accordeon_plus.svg');
  opacity: 1;
}
.acc-toggle::after {
  background-image: url('/wp-content/themes/wp-child-theme-monavocat/assets/accordeon_minus.svg');
  opacity: 0;
}

/* Quand ouvert */
.acc-head[aria-expanded="true"] .acc-toggle {
  transform: rotate(180deg);
}
.acc-head[aria-expanded="true"] .acc-toggle::before { opacity: 0; }
.acc-head[aria-expanded="true"] .acc-toggle::after  { opacity: 1; }

/* Panels */
.acc-panel {
  overflow: hidden;
  max-height: 0;
  background: var(--acc-content-bg);
  border-radius: 0 0 var(--acc-radius) var(--acc-radius);
  transition: max-height var(--acc-speed) var(--acc-ease), opacity var(--acc-speed) var(--acc-ease);
  opacity: 0;
}
.acc-panel-inner { padding: 40px 100px 40px 100px; }
.acc-panel.is-open { opacity: 1; }

/* Responsive ajustements */
@media (max-width: 600px) {
  :root {
    --acc-icon-size: 24px;
    --acc-pad-x: 14px;
    --acc-pad-y: 12px;
    --acc-cut: 24px;
  }
  .acc-panel-inner { padding: 25px; }
}

@media (min-width: 769px) {
  .hide_desktop {
    display: none!important;
  }
  .home_block   { height: calc(100vh - 80px); }
}

.elementor-nav-menu--dropdown {
  height: calc(100vh - 80px);
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  z-index: 9999;
}

.elementor-nav-menu--dropdown li {
  text-align: center;
  display: flex;
  justify-content: center;
}

.elementor-nav-menu--dropdown li:last-child a {
  border: 1px solid #002554;
  border-radius: 90px;
  margin-top: 20px;
  font-size: 18px!important;
  padding: 20px 30px!important;
}

/* -------------------------------------------------------------------------- */
/* BIOGRAPHIES (Loop items)                                                   */
/* -------------------------------------------------------------------------- */
.e-loop-item .biographie {
  display: block !important;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 280ms cubic-bezier(.2,.7,.2,1),
              opacity 180ms linear,
              transform 260ms cubic-bezier(.2,.7,.2,1);
  will-change: height;
  position: relative;
  z-index: 10;
}
.e-loop-item .biographie.is-open {
  opacity: 1;
  transform: translateY(0);
}
.bio-open main.site-main, .bio-open body { padding-bottom: var(--footer-h, 120px); }

/* -------------------------------------------------------------------------- */
/* TYPOGRAPHY UTILS                                                           */
/* -------------------------------------------------------------------------- */
.elementor-widget-button a { text-decoration: none; }
.elementor-button-text     { display: flex; align-items: center; }

/* -------------------------------------------------------------------------- */
/* BUTTONS                                                                    */
/* -------------------------------------------------------------------------- */
/* Arrow left avec effet de fondu */
.arrow_left .elementor-button .elementor-button-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  overflow: hidden; /* on garde l'icône bien cadrée */
}

/* Icône normale */
.arrow_left .elementor-button .elementor-button-icon::before,
.arrow_left .elementor-button .elementor-button-icon::after {
  content: "";
  position: absolute;
  inset: 0; /* équivaut à top:0; right:0; bottom:0; left:0 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.4s ease;
}

/* Icône par défaut */
.arrow_left .elementor-button .elementor-button-icon::before {
  background-image: url('/wp-content/themes/wp-child-theme-monavocat/assets/icon-en-savoir-plus.svg');
  opacity: 1;
  z-index: 1;
}

/* Icône au hover */
.arrow_left .elementor-button .elementor-button-icon::after {
  background-image: url('/wp-content/themes/wp-child-theme-monavocat/assets/icon-en-savoir-plus-over.svg');
  opacity: 0;
  z-index: 2;
}

/* Hover → fade entre les deux */
.arrow_left .elementor-button:hover .elementor-button-icon::after {
  opacity: 1;
}
.arrow_left .elementor-button:hover .elementor-button-icon::before {
  opacity: 0;
}

/* Masque le SVG inline existant */
.arrow_left .elementor-button .elementor-button-icon svg { 
  display: none !important; 
}


/* Animated border button */
.animated_button .elementor-button {
  position: relative;
  border: none;
  padding: 12px 24px;
  background: transparent;
  transition: color 0.3s ease;
}

.animated_button .elementor-button::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 100%;
  border-bottom: 1px solid #002554;
  transition: width 0.4s ease;
}

.animated_button .elementor-button:hover::before { 
  width: 100%; 
}

/* Arrow down */
.arrow_down .elementor-button {
  position: relative;
  overflow: hidden;
  width: 30px; height: 60px;
  padding: 0; margin: 0;
  background: none!important;
}
.arrow_down .elementor-button .elementor-button-icon svg {
  width: 30px;
  height: 60px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.arrow_down .elementor-button:hover .elementor-button-icon svg { 
  transform: translateY(100%);
  opacity: 1;
}
.arrow_down .elementor-button .elementor-button-icon::after {
  content: "";
  position: absolute;
  top: -100%; left: 50%;
  width: 30px; height: 60px;
  transform: translateX(-50%);
  background: url('/wp-content/themes/wp-child-theme-monavocat/assets/arrow-hover.svg') no-repeat center/contain;
  transition: top 0.6s ease, opacity 0.6s ease;
}
.arrow_down .elementor-button:hover .elementor-button-icon::after { top: 0; opacity: 1; }

/* -------------------------------------------------------------------------- */
/* DEX GRID (Expertise)                                                       */
/* -------------------------------------------------------------------------- */
#dex-block.dex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dex-gap);
  align-items: stretch;
}
@media (max-width: 1024px) { #dex-block.dex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { #dex-block.dex-grid { grid-template-columns: 1fr; } }

/* Spacer */
#dex-block .dex-spacer { display: block; height: var(--dex-minh); background: transparent; border: 0; }
@media (max-width: 640px) { #dex-block .dex-spacer { display: none; } }

/* Card */
#dex-block .dex-item {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 18px;
  min-height: var(--dex-minh);
  padding: var(--dex-pad);
  background: var(--dex-card-bg);
  border-radius: var(--dex-rad);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--dex-cut)) 0,
                     100% var(--dex-cut), 100% 100%, 0 100%);
  transition: transform var(--dex-speed) var(--dex-ease),
              background-color var(--dex-speed) var(--dex-ease),
              box-shadow var(--dex-speed) var(--dex-ease);
}
#dex-block .dex-item:hover { background: var(--dex-card-bg-hover); }
#dex-block .dex-item:focus-visible { outline: 3px solid #0A294980; outline-offset: 2px; }

/* Icon */
#dex-block .dex-icon { width: var(--dex-icon); height: var(--dex-icon); display: inline-grid; place-items: center; }
#dex-block .dex-icon img, #dex-block .dex-icon svg { width: 100%; height: 100%; object-fit: contain; }

/* Title */
#dex-block .dex-title {
  align-self: end;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dex-title);
  margin-right: 40px;
}

/* Arrow */
#dex-block .dex-arrow {
  position: absolute;
  right: 30px; bottom: 35px;
  width: 40px; height: 20px;
  display: inline-grid; place-items: center;
  overflow: hidden;
}
#dex-block .dex-arrow svg {
  width: 100%; height: 100%;
  fill: var(--dex-arrow);
  transition: transform 0.4s ease;
}
.dex-arrow::before {
  content: "";
  position: absolute;
  top: 0; left: -50px;
  width: 40px; height: 20px;
  background: url('/wp-content/themes/wp-child-theme-monavocat/assets/right-arrow.svg') no-repeat center/contain;
  transition: left 0.4s ease, opacity 0.4s ease;
}
.dex-item:hover .dex-arrow::before { opacity: 1; left: 0; }
.dex-item:hover .dex-arrow svg    { transform: translateX(50px); }

/* -------------------------------------------------------------------------- */
/* GRAVITY FORMS                                                              */
/* -------------------------------------------------------------------------- */
body .gform_wrapper form {
  padding: 20px 0;
  border-radius: 0;
  box-shadow: none;
}
body .gform_wrapper .gfield_label,
body .gform_wrapper .gform-field-label--type-sub {
  font-size: 18px;
  font-weight: 400;
  color: #002554;
}
body .gform-theme--foundation .gform_fields { row-gap: 15px; }
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper textarea {
  border: 1px solid #002554 !important;
  border-radius: 3px !important;
  padding: 25px 20px !important;
  --gf-local-padding-y: 25px !important;
  background: transparent !important;
  font-size: 18px;
  box-shadow: none !important;
}
body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus {
  outline: none !important;
  border-color: #002554 !important;
}
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_page_footer input[type="submit"] {
  background: #ffffff !important;
  color: #002554!important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 40px !important;
  font-size: 18px !important;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none !important;
}
body .gform_wrapper .gform_footer input[type="submit"]:hover {
  background: #002554 !important;
  color: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* TEAM CONTENT / COORDONNÉES                                                 */
/* -------------------------------------------------------------------------- */
.team_content ul,
.page-content .team_content ul, .team_content p {
  margin: 0; padding: 0; list-style: none;
}
.page-content .team_content ul li { margin-bottom: 0; line-height: 1.8; }
.page-content .team_content ul li:last-child { margin-bottom: 0; }

.coordonnees a {
  text-decoration: none;
  display: flex;
  flex-direction: row;
}
.coordonnees a span {
  width: 100px;
  color: #B2BECC;
}

.menu_secondaire ul li:nth-last-child(2) a {
  border: 1px solid #fff;
  border-radius: 30px;
}

.menu_secondaire ul li:nth-last-child(2) a:hover {
  background-color: #fff;
  color: #002554!important;
}

.menu_secondaire_blanc ul li:nth-last-child(2) a {
  border: 1px solid #002554;
  border-radius: 30px;
}

.menu_secondaire_blanc ul li:nth-last-child(2) a:hover {
  background-color: #002554;
  color: #fff!important;
}

.menu_secondaire ul li:nth-last-child(2) a,
.menu_secondaire_blanc ul li:nth-last-child(2) a,
.menu_secondaire ul li:nth-last-child(2) a:hover,
.menu_secondaire_blanc ul li:nth-last-child(2) a:hover {
  padding: 15px 30px;
}

/* Espacement horizontal entre les items du menu */
.main_menu .elementor-nav-menu > li {
  margin: 0 30px; /* 20px de chaque côté */
}


/* Style de base */
.main_menu .elementor-nav-menu a.elementor-item {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
  color: #002453;
}

/* Trait animé en bas */
.main_menu .elementor-nav-menu a.elementor-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;              /* épaisseur du border */
  width: 0%;                /* commence à 0 */
  transition: width 0.4s ease;    /* animation fluide */
}

.main_menu.dark .elementor-nav-menu a.elementor-item::after {
  background-color: #fff; /* même couleur que le texte */
}

.main_menu.light .elementor-nav-menu a.elementor-item::after {
  background-color: #002453; /* même couleur que le texte */
}

/* Au hover ou actif */
.main_menu .elementor-nav-menu a.elementor-item:hover::after,
.main_menu .elementor-nav-menu .current-menu-item > a::after {
  width: 100%; /* s’étend à 100% */
}

.main_menu .elementor-nav-menu li.contact a.elementor-item:hover::after {
  width: 0%;
}

@media (min-width: 1200px) {
  .page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*="elementor-page-"]) .site-main {
    max-width: 1256px;
  }
}

.static-site-footer {
  position: fixed;       /* ou absolute si dans un wrapper */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;         /* hauteur du footer */
  background: #111;      /* couleur ou image */
  z-index: -1;           /* derrière tout */
}

body {
  margin-bottom: 400px; /* = hauteur du footer */
  padding-top: 100px;
}

.main_banner {
  position: relative;
  z-index: 10; /* au-dessus du header au départ */
}

body .biographie a {
  color: #DAEDEA;
}

.page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
  width: 1064px;
  max-width: calc(100%);
}

@media (max-width: 1024px) {
  .page-header .entry-title {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .main_banner .e-con-inner {
  display: flex!important;
  flex-direction: row!important;
  }
}

.main_menu .elementor-nav-menu--dropdown a.elementor-item-active,
.main_menu .elementor-nav-menu--dropdown a:hover {
  color: #002554!important;
  border-bottom: 1px solid #002554!important;
}

.main_menu .elementor-nav-menu--dropdown li {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .hide_mobile {
    display: none!important;
  }
  .home h1      { font-size: 36px; }
  h1.entry-title { font-size: 45px; padding: 20px!important;}
  .intro p   { font-size: 32px; line-height: 3rem;}
  .main_menu .elementor-nav-menu a.elementor-item:hover::after, .main_menu .elementor-nav-menu .current-menu-item > a::after {
    width: 0!important;
  }
  .acc-title { font-size: 25px; line-height: 1.3; font-weight: 400;}
  .acc-icon  { width: 30px; height: 30px; }
  .acc-head { padding: 22px 20px; width: calc(100% - 40px); }
  .acc-toggle {
    width: 30px;
    height: 30px;
  }
  #dex-block .dex-item {
    min-height: 200px;
    transition: min-height 0.4s ease; /* durée et easing */
    font-size: 28px;
    padding: 25px;
  }
  #dex-block .dex-item:hover {
    min-height: 250px;
  }
  .intro p   { font-size: 26px; }
  #dex-block .dex-icon { width: 30px; height: 30px;}
  #dex-block .dex-title { margin-right: 50px; }
}

body .gform_required_legend {
  display: none;
}