/*  Theme Name:  th_grsolutech
Theme URI:    https://azulii.com
Description:  template
Author:       AZULII GESTION DE L'IMAGE
Author URI:   https://azulii.com
Template:     Divi  
Version:      1.02 */


@font-face {
    font-family: "Saira";
    src: url("assets/fonts/Saira-VariableFont.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "Saira";
    src: url("assets/fonts/Saira-Italic-VariableFont.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
    font-style: italic;
}
:root {
	--primary-color:#ff0000;
}
body article .et_builder_inner_content {z-index:1!important;}
.az-popup {
	overflow:scroll!important;
}

.et_pb_text h1 {
  max-width: 18ch;
}


/*----- HEADER -----*/
body header .header-general {background: linear-gradient(0deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)!important;}
.row-header-flex {
  display: flex;
  align-items: center;
}

/* Colonne 1 et 3 : prennent l’espace restant */
.row-header-flex .et_pb_column:first-child,
.row-header-flex .et_pb_column:last-child {
  flex: 1 1 auto;
}

/* Colonne du milieu : largeur fixe et centrée */
.row-header-flex .et_pb_column:nth-child(2) {
  flex: 0 0 210px;
  display: flex;
  justify-content: center;
}

.az-popup-overlay.active {
	z-index:9998!important;
}
@media all and (max-width:980px) {
	.row-header-flex .et_pb_column:nth-child(2) {
		flex: 0 0 136px;
	}
}

.header-general ul.et-menu li.menu-item-has-children > ul.sub-menu {
	background-color:#cccccc;
	border:none;
	border-radius:15px;
	padding:15px;
	width:300px;
}
.header-general ul.et-menu li.menu-item-has-children > ul.sub-menu > li {
	padding:0;
	width:100%;
}
.header-general ul.et-menu li.menu-item-has-children > ul.sub-menu > li a {
	padding:7.5px 15px;
	width:100%;
	font-size:16px;
	text-transform:none;
	border-bottom:1px solid #888888;
	line-height:1.2;
	color:black;
}
.header-general ul.et-menu li.menu-item-has-children > ul.sub-menu > li a:hover {
	color:black!important;
	background:none;
	opacity:1;
}
.header-general ul.et-menu li.menu-item-has-children > ul.sub-menu > li:last-child a {
	border-bottom:none;
}

/*----- OPEN MOBILE MENU ----*/

@media all and (max-width:980px), all and (min-width:981px) {
	.et_pb_menu.open-mobile-menu .et_pb_menu__wrap {
		justify-content:flex-start!important;
		text-align:left;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu {
		display:block!important;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu {
		display:block;
		margin:0;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li {
		margin:0;
		padding:0;
		display:inline;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li a {
		width:fit-content;
		font-size:16px;
		margin-bottom:5px;
		text-transform:uppercase;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li.menu-item-has-children a {
		padding-bottom:0;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li.menu-item-has-children a:after {
		content:"";
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li.menu-item-has-children ul.sub-menu {
		position: relative;
		display: inline-block;
		top: inherit;
		left: 0;
		opacity: 1;
		visibility: visible;
		border:none;
		margin-left:15px;
		padding:0;
		box-shadow:none;
		width:100%;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li.menu-item-has-children ul.sub-menu li a {
		padding:0;
		background:none;
		line-height:1;
		text-transform:none;
		margin-bottom:7.5px;
	}
	.et_pb_menu.open-mobile-menu .et_pb_menu__menu .et-menu-nav ul.et-menu li.menu-item-has-children ul.sub-menu li:hover a {
		background:none;
	}
	.et_pb_menu.open-mobile-menu .et_mobile_nav_menu {
		display:none!important;
	}
}

/*------ CONTENT -----*/

/* ----- MENU MOBILE -----*/
/********************************************
 * MOBILE MENU
 ********************************************/
.header-general .hamburger-wrapper {
	display:none;
}
.header-general button.hamburger-menu {
    height: 40px;
    width: 40px;
    background-color: #e6e6e6;
    border-radius: 5px;
	border:1px solid #cccccc;
    padding: 8px;
}
.hamburger--collapse span.bar:before {
	height:3px;
	background-color:#252525;
}
.hamburger--collapse span.bar:first-child {
    transform: translate3d(0, -8px, 0);
}
.hamburger--collapse span.bar:nth-child(3) {
    transform: translate3d(0, 8px, 0);
}
.header-general #custom-mobile-menu .mobile_menu_bar button.hamburger-menu.hamburger--collapse.active span.bar:first-child,
.header-general #custom-mobile-menu .mobile_menu_bar button.hamburger-menu.hamburger--collapse.active span.bar:nth-child(3) {
    transform: translateZ(0);
}

.az-mob-drill-overlay {
  display: none!important;
}

@media (max-width: 980px) {

	/* SVG flèche (1 seule fois) */
	:root {
		--az-mob-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 54 54'%3E%3Cpath d='M25.1 3.2 46.9 25 25.1 46.8 M44.8 25H3.2' fill='none' stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='5'/%3E%3C/svg%3E");
	}
	

	body header .header-general .et_pb_menu .et_pb_menu_inner_container .et_pb_menu__wrap {
		display:none;
	}
	body header .header-general .et_pb_menu .et_pb_menu__logo-wrap {
		height:75px;
	}
	.header-general .hamburger-wrapper {
		display:flex;
	}

  #az-mob-menu {
    position: fixed;
        top: 80px;
        border-radius: 15px;
        left: 10px;
        right: 10px;
        height: calc(100vh - 100px);
        background: var(--gcid-body-color);
        opacity: 0;
        visibility: hidden;
        transition: all .6s ease;
        z-index: 9998;
        overflow: hidden;
        padding: 15px;
  }

  #az-mob-menu.az-mob-open {
    opacity: 1;
    top:90px;
    visibility: visible;
  }

  .az-mob-inner {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Liste menu --- */
  .az-mob-nav {
    list-style: none;
    margin: 0;
    padding: 0!important;
  }

  .az-mob-nav > li {
    margin: 0;
    padding: 0;
  }

  /* Lien de niveau 1 */
  .header-general #az-mob-menu .az-mob-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 15px;
    color: #fff!important;
    text-decoration: none;

    font-size: clamp(2.4rem, 2vw + 1.3rem, 3.25rem);
    font-weight: 800;
  }

  /* Flèche à droite */
  .az-mob-nav > li > a::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background-image: var(--az-mob-arrow);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
    transform: translateY(2px);
  }

  /* Séparateur entre items */
  .az-mob-nav > li + li {
    border-top: 2px solid #666666;
  }

  /* Feedback */
  .az-mob-nav > li > a:active {
    opacity: .85;
  }

  /* Niveau 2 visible sous le parent */
  .az-mob-nav .sub-menu {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0 0 18px 0;
  }

  .header-general #az-mob-menu .az-mob-nav .sub-menu > li > a {
    display: block;
    padding: 10px;
    margin:0 20px;
    color: #bbbbbb!important;
    text-decoration: none;
    font-size: clamp(1.6rem, 1.2vw + 0.4rem, 2rem);
    font-weight: 800;
    line-height: 1.2;
    border-top: 1px solid #666666;
    text-align:left;
  }

  .header-general #az-mob-menu .az-mob-nav .sub-menu > li:first-child > a {
    border-top:none;
  }

  /* Enlève la flèche sur N2 */
  .az-mob-nav .sub-menu > li > a::after {
    content: none !important;
    background-image: none !important;
  }

  /* On cache N3+ dans le menu standard */
  .az-mob-nav .sub-menu .sub-menu {
    display: none !important;
  }

  /* ------------------------------------------------
     PANEL DRILLDOWN (attaché au menu)
  ------------------------------------------------- */
	
  .az-mob-drill-overlay {
	display:block!important;
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
	 background-color: rgba(0,0,0,0.5);
    transition: opacity .25s ease, visibility .25s ease, top .6s ease;
  }

  /* quand le menu est ouvert, l’overlay suit le top */
  #az-mob-menu.az-mob-open ~ .az-mob-drill-overlay,
  .az-mob-drill-overlay.az-follow-open {
    top: 75px;
  }

  .az-mob-drill-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .az-mob-drill-panel {
    position: absolute;
        top: 95px;
        bottom: 30px;
        right: 0;
        width: 80vw;
    background: #cccccc;
    border-radius: 5px 0 0 5px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
	padding:20px;

    transform: translateX(40px);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }

  .az-mob-drill-overlay.active .az-mob-drill-panel {
    transform: translateX(0);
    opacity: 1;
  }

  /* Header */
  .az-mob-drill-head {
    padding: 0;
  }

  /* Bouton retour */
  .az-mob-drill-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #666666;
    font-size: 18px;
    font-weight: 600;
  }

  /* 1er span vide = icône flèche */
  .az-mob-drill-back > span:first-child {
    width: 0.9em;
    height: 0.9em;
    display: inline-block;
    background-image: var(--az-mob-arrow);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(180deg);
    opacity: 1;
  }

  .az-mob-drill-sep {
    height: 1px;
    background: #666666;;
    margin: 15px 0 15px;
  }

  .az-mob-drill-title {
    margin: 0;
    font-size: clamp(1.6rem, 1.2vw + 0.4rem, 2rem);
    font-weight: 600;
    color: #252525;
    text-transform: uppercase;
    line-height: 1;
  }

  .az-mob-drill-tagline {
    display: block;
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
  }

  /* Accordion niveau 3 */
  .az-mob-drill-body {
    padding-top:20px;
  }

  .az-mob-lvl3 {
    overflow: hidden;
  }

  .az-mob-lvl3-item {
    background: #e6e6e6;
    border-radius: 5px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform .2s ease;
  }

  .az-mob-lvl3-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px;
    gap: 15px;
  }

  .az-mob-lvl3-row > a {
    margin: 0;
    font-weight: 600;
    font-size: clamp(1.6rem, 1vw + 0.4rem, 2rem);
    color: #666666;
    text-transform: uppercase;
    line-height: 1;
    flex: 1 1 auto;
  }

  .az-mob-lvl3-toggle {
    width: 0.8em;
    height: 0.8em;
    font-size: clamp(1.6rem, 1vw + 0.4rem, 2rem);
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.665;
    padding: 0;
  }

  .az-mob-lvl3-toggle::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url(assets/svg/plus-regular.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    transition: .2s ease;
  }

  .az-mob-lvl3-item.open .az-mob-lvl3-toggle::before {
    transform: rotate(135deg);
  }

  /* Children animés (lvl4-5+) */
  .az-mob-lvl3-children {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);

    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
    will-change: max-height, opacity, transform;
  }

  .az-mob-lvl3-item.open .az-mob-lvl3-children {
    opacity: 1!important;
    transform: translateY(0);
  }

  .az-mob-lvl3-children a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #252525;
    font-size: 20px;
    font-weight: 600;
  }

  .az-mob-lvl3-children ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
  }
	.az-mob-lvl3-children .az-mob-lvl4 {
    padding: 10px 15px;
	}
	.az-mob-lvl3-children .az-mob-lvl4 a {
		font-size:16px;
		padding:5px 0;
	}
	
	.az-mob-lvl3-children .az-mob-lvl4 > li > a {
		font-weight:800;
		border:none;
	}
	.az-mob-lvl3-children .az-mob-lvl4 > li > .sub-menu a {
		font-size:14px;
		padding-top:5px;
		padding-bottom:10px;
		font-weight:400;
	}
	.az-mob-lvl3-children .az-mob-lvl4 > li > .sub-menu a:first-child {
		padding-top:0;
	}

  /* Lock scroll */
  html.az-mob-scrolllock,
  html.az-mob-scrolllock body {
    overflow: hidden;
  }

  /* Optionnel: respecte préférences accessibilité */
  @media (prefers-reduced-motion: reduce) {
    #az-mob-menu,
    .az-mob-drill-overlay,
    .az-mob-drill-overlay::before,
    .az-mob-drill-panel,
    .az-mob-lvl3-children {
      transition: none !important;
    }
  }
}

/* ====== CF7 style "underline" (comme ta capture) ====== */
.az-cf7{
  max-width: 100%;
}

/* Espacement entre les champs */
.az-cf7 .az-field{
  margin: 0 0 30px 0; /* gros spacing */
}

/* Inputs + textarea */
.az-cf7 input[type="text"],
.az-cf7 input[type="email"],
.az-cf7 input[type="tel"],
.az-cf7 textarea{
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid black !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;

  padding: 14px 0 16px 0;
  font-size: 18px;          /* gros comme la capture */
  line-height: 1.15;
  font-weight: 600;
  color: #111;
  border-radius: 0 !important;
}

/* Hauteur du champ message */
.az-cf7 textarea{
  min-height: 260px;
  resize: vertical;
}

/* Placeholders (gris, comme "labels" visuels) */
.az-cf7 input::placeholder,
.az-cf7 textarea::placeholder{
  color: #888888;
  opacity: 1;
  font-weight:600;
}

/* Focus */
.az-cf7 input:focus,
.az-cf7 textarea:focus{
  border-bottom-color: #000 !important;
}

/* Cache les messages CF7 à côté des champs si tu veux un look clean */
.az-cf7 .wpcf7-not-valid-tip{
  margin-top: 10px;
  font-size: 16px;
}

/* Checkbox consentement */
.az-cf7 .az-consent{
  margin: 10px 0 34px 0;
  font-size: 16px!important;
  line-height: 1.35;
  color: black;
  font-weight: 400;
}

.az-cf7 .az-consent a{
  color: inherit;
  text-decoration: underline;
}
.az-cf7 .az-consent .wpcf7-acceptance .wpcf7-list-item {
	margin:0;
}
.az-cf7 .az-consent .wpcf7-acceptance .wpcf7-list-item label {
	display:flex;flex-wrap:wrap;
}
.az-cf7 .az-consent input[type="checkbox"]{
  width: 20px;
  height: 20px;
	margin:0;
  margin-right: 15px;
}

/* Bouton ENVOYER rouge arrondi */
.az-cf7 .az-submit input[type="submit"]{
  background: #e10600; /* rouge */
  color: #fff;
  border: 0;
  border-radius: 15px;
  padding: 5px 25px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
}

/* Hover */
.az-cf7 .az-submit input[type="submit"]:hover{
  filter: brightness(0.95);
}

/* Responsive */
@media (max-width: 980px){
  .az-cf7 input[type="text"],
  .az-cf7 input[type="email"],
  .az-cf7 input[type="tel"],
  .az-cf7 textarea{
    font-size: 18px;
  }

  .az-cf7 .az-consent{
    font-size: 16px;
  }

  .az-cf7 .az-submit input[type="submit"]{
    font-size: 18px;
    padding: 18px 44px;
  }
}


