/* 
Theme Name: Divi-child
Description: Divi Enfant, theme enfant de Divi 
Author: 24-7
Template: Divi
*/

html {
  scroll-behavior: smooth;
}

/* HEADER */
#main-header {
  top: 0 !important;
  box-shadow: none;
  transition: top 0.5s ease-out;
}

#main-header.et-fixed-header .sub-menu > li a {
  color: #fff !important;
}

#main-header.remove-ff {
  top:-165px !important;
}

/* #page-container:not(.et-vb-root-ancestor) {
  padding-top: 164px !important;
} */

#top-header {
  display: none !important;
}

#et-top-navigation {
	font-weight: 400;
  margin-top: 30px;
}

#top-menu > li {
  position: static;
}

ul.sub-menu {
  display: flex;
  justify-content: center;
  width: 100% !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  left: 0;
}

ul.sub-menu li {
  background-color: rgba(0,0,0,0.7);
  padding: 20px !important;
  /* width: 14%; */
}

@media(max-width:980px) {
  ul.sub-menu li {
    padding: 10px !important;
  }
}

ul.sub-menu li:hover {
  background-color: rgba(227,28,23,0.7);
}

@media(min-width:981px) {
  ul.sub-menu li.current_page_item {
    border-top: 4px solid #e32518;
  }
}

@media(max-width:980px) {
  #mobile_menu ul.sub-menu li.current_page_item a {
    border-left: 3px solid #e32518;
    padding-left: 5px !important;
  }
}

#main-header ul#top-menu ul.sub-menu li.current_page_item a {
  color: #fff !important;
}

ul.sub-menu li a {
  font-size: 20px !important;
  padding: 0 !important;
}

ul.sub-menu li:hover a {
  opacity: 1;
}

/* Menu mobile */

@media(max-width:980px) {
  #main-header #et-top-navigation {
    position: initial !important;
  }
}

#main-header #et-top-navigation #et_mobile_nav_menu {
  margin-top: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

#main-header #et-top-navigation #et_mobile_nav_menu .select_page {
  display: none;
}

#et_mobile_nav_menu .mobile_nav {
  background-color: transparent !important;
}

/* #mobile_menu > li.menu-item-type-custom {
  display: none !important;
} */

#mobile_menu > li > a {
  font-size: 20px;
  background-color: rgba(0,0,0,.03);
}

#mobile_menu .sub-menu li {
  background-color: transparent;
}

#main-header #mobile_menu ul.sub-menu li a {
  font-size: 16px !important;
}

#main-header.et-fixed-header #mobile_menu .sub-menu li a {
  color: #9a939c !important;
}

/* Boutons */

.btn-link {
  background-color:#e31c17;
  padding: 8px 10px;
  color: #fff !important;
  margin-top: 15px;
  display: inline-block;
}

#header-image {
  transition: background-image 0.4s ease-in-out, opacity 0.4s ease-in-out;
  background-size: cover;
  background-position: center;
}

#header-image.fade-out {
  opacity: 0;
}

#encart-header {
  animation-name: encart-slide;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-delay: 1s;
  animation-fill-mode: both;
  margin-bottom: 0;
}

@keyframes encart-slide {
  from {
    transform: translate(100%, 100%);
  }

  to {
    transform: translate(0%, 0%);
  }
}

#encart-header h1 {
  opacity: 0;
  animation-name: fade-in;
  animation-duration: 2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header-imgs {
  transition: transform 0.5s ease;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 99;
  transition: left 0.7s ease-in-out;
}

.header-imgs.leftSide {
  left: -100%;
}

.header-imgs.rightSide {
  left: 100%;
}

/* BOUTON REALISATIONS */
#quick-btn {
  background-color: #e31c17;
  color:#fff;
  display: inline-block;
  font-size: 1.5em;
  font-style: italic;
  padding: 10px;
  border-radius: 30px 0 0 30px;
  position: fixed;
  transform: translateX(75%);
  right: 0;
  bottom: 30%;
  transition: transform 0.5s ease-in-out;
  z-index: 10000;
}

#quick-btn:hover {
  transform: translateX(0%) !important;
  cursor: pointer;
}

#quick-btn a {
  color: #fff;
}

#quick-btn img {
  vertical-align: middle;
  margin-right: 15px;
}

/* TITRES ANIMÉS */
.section-title {
  transition: transform 0.5s ease-in-out;
  z-index: 0;
}

/* ENCART SECTEURS D'ACTIVITES */
.tma-secteurs-wrapper .et_pb_code_inner {
  display: flex;
  flex-wrap: nowrap;
}

@media (max-width:800px) {
  .tma-secteurs-wrapper .et_pb_code_inner {
    flex-direction: column;
}
}

.tma-secteurs-wrapper .et_pb_code_inner a {
  position: relative;
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden; /* pour couper le zoom qui déborde */
  transition: flex-grow 0.5s ease-in-out;
  margin: 5px 0;
}

@media(min-width:801px) {
  .tma-secteurs-wrapper .et_pb_code_inner a:not(:last-of-type) {
    margin-right: 20px;
  }
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur span {
  font-size: 0.7em;
}



/* Calque image + dégradé */
.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  transform: scale(1);
  transition: transform 0.5s ease-in-out;
  z-index: 0;
}

/* Hover : agrandit le bloc + zoom sur le bg */
@media(min-width:800px) {
  .tma-secteurs-wrapper .et_pb_code_inner a:hover {
    flex-grow: 1.5;
    cursor: pointer;
  }
  .tma-secteurs-wrapper .et_pb_code_inner .tma-secteur:hover::before {
  transform: scale(1.1); /* zoom fluide */
}
}

:root {
  --tma-secteur-gradient: linear-gradient(to top, rgb(0, 0, 0, 0.7), rgba(0,0,0,0) 50%);
}

/* Variantes par secteur : on applique ici l'image + dégradé */
.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-hotel::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/resto-kleber-paris.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-musees::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/scenographie-musee-charencon.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-bureaux::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/bureaux-Ve-arrond-Paris.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-commerce::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/boutique-Leo-et-Capucine.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-archi::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/espace-de-relaxation-elegant.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-prof-lib::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/cabinet-dentiste-amenage.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-medical::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/medical.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-juridique::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/juridique.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.secteur-conseil::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/conseil.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.particulier-cuisine::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/cuisine-sur-mesure.jpg");
}

.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.particulier-dressing-bibli::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/dressing-sur-mesure.jpg");
}
.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.particulier-meuble-deco::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/meuble-design-sur-mesure.jpg");
}
.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur.particulier-sdb::before {
  background-image: var(--tma-secteur-gradient), url("https://preprod.tmagencement.com/wp-content/uploads/TM-vignette-carrousel-dressing.jpg");
}


/* Titre au-dessus du background */
.tma-secteurs-wrapper .et_pb_code_inner .tma-secteur h3 {
  position: absolute;
  bottom: 0;
  right: 20px;
  color: #fff;
  z-index: 1;
  margin: 0;
  font-size: 1.5em;
  text-align: right;
}

@media(max-width:980px) {
  .tma-secteurs-wrapper .et_pb_code_inner .tma-secteur h3 {
    font-size: 1.2em;
  }
}

/* PAGE NOTRE DÉMARCHE */
#innovation-engagements > .et_pb_row {
  transition: all 1s ease;
}

/* FORMULAIRE DE CONTACT */
#formulaire-contact input:not([type="submit"]) {
	height: 50px;
	margin-bottom: 20px !important;
	transition: all 0.2s ease;
}

#formulaire-contact input:not([type="submit"]), #formulaire-contact textarea {
	width: 100%;
	padding: 10px;
	border: none;
	background-color: #f9f9f9;
	color: #575756;
	font-size: 16px;
}

/* #formulaire-contact input:not([type="submit"]):focus {
	font-size: 1em;
} */

#formulaire-contact textarea:focus, #formulaire-contact input:not([type="submit"]):focus {
	background-color: rgba(148, 148, 148, 0.2);
  font-size: 18px;
}

#formulaire-contact textarea.completed, #formulaire-contact input:not([type="submit"]).completed {
	background-color:rgba(0, 169, 171, 0.1);
}

#formulaire-contact .wrapper-half-inputs {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

#formulaire-contact .half-input {
	width: 48%;
}

@media screen and (max-width: 750px) {
	#formulaire-contact .half-input {
		width: 100%;
	}
}

#formulaire-contact input[type="submit"] {
	cursor: pointer;
	margin-top: 20px;
  padding: 5px;
  background-color: #e31c17;
  color: #fff;
  border-color:#e31c17;
  transition: padding 0.2s ease-in-out;
}

#formulaire-contact input[type="submit"]:hover {
  padding: 7px 10px;
}

@media(max-width:980px) {
  #formulaire-contact .tma-submit-btn p {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* RECAPTCHA */
.grecaptcha-badge {
  display: none;
}

/* WP GRID BUILDER */
.wpgb-area {
  justify-content: center;
}

/* Modal d'annonce du nouveau site */
#new_website_modal_overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	transition: opacity 500ms;
	visibility: hidden;
	opacity: 0;
	z-index: 50;
}

#new_website_modal {
	width: 50%;
	height: auto;
	margin: 70px auto;
	padding: 20px;
	border-radius: 25px;
	transition: all 2s ease-in-out;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	overflow-y: auto;
	/* background: linear-gradient(90deg, rgba(227, 28, 24, 0.65) 0%, rgba(123, 16, 14, 0.65) 100%); */
  backdrop-filter: blur(3px);
  color: #565656;
  background-color: rgba(255,255,255,0.6);
}

@media screen and (max-width: 576px){
	#new_website_modal {
		margin: 0 auto;
		width: 95%;
	}
}

#new_website_modal_header {
	text-align: right;
}

#new_website_modal .close {
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	padding: 0 10px;
	border-radius: 5px;
	z-index: 2;
    cursor: pointer;
}

/* Etat visible de la modale */
#new_website_modal_overlay.show {
    visibility: visible;
    opacity: 1;
}

#faci-modal-title {
	text-align: center;
	font-size: 1.4em;
	line-height: 1.5em;
}

#faci-modal-title span:first-of-type {
	text-align: center;
	font-size: 1.7em;
  font-family: comfortaa;
  color: #e31c18;
}

#faci-modal-title span.light {
	font-weight: 200;
}

/* =======================
   Compte à rebours (base)
   ======================= */
#rebours {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 10px;
    text-align: center;
}

/* ===========================
   Compte à rebours — container
   (mise en colonnes)
   =========================== */
#new_website_modal #rebours {
  display: inline-flex;
  gap: clamp(.6rem, 2vw, 1.25rem);
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  white-space: normal; /* évite un nowrap hérité */
  letter-spacing: 0;   /* pas d’espacement entre les chiffres */
}

/* ===========================
   Compte à rebours — cartes
   (style moderne type maquette)
   =========================== */
#new_website_modal #rebours .rebours__cell {
  position: relative;
  display: flex;
  flex-direction: column;  /* nombre au-dessus, label dessous */
  align-items: center;
  justify-content: space-between;

  padding: clamp(.6rem, 1.8vw, .9rem) clamp(.8rem, 2vw, 1.1rem);
  min-width: clamp(72px, 12vw, 112px);
  border-radius: 16px;

  background: linear-gradient(180deg, rgba(227, 28, 24, 0.92) 0%, rgba(123, 16, 14, 0.92) 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22),
  inset 0 1px 0 rgba(255,255,255,0.12);

  overflow: hidden; /* pour la pseudo-séparation */
}

/* moitié basse légèrement plus sombre pour l’effet "bandeau" */
#new_website_modal #rebours .rebours__cell::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 54%;
  height: 999px; /* remplit la partie basse */
  background: rgba(0,0,0,0.10);
  pointer-events: none;
}

#new_website_modal #rebours .rebours__num {
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums; /* chiffres monospaces */
  color: #fff;
  font-size: clamp(1.4rem, 5.2vw, 2.2rem);
}

#new_website_modal #rebours .rebours__label {
  margin-top: .35rem;
  color: #e7f6ff;
  opacity: .95;
  font-size: clamp(.78rem, 1.8vw, .95rem);
  line-height: 1.1;
}



/* Compact sur mobile */
@media (max-width: 480px) {
  #new_website_modal #rebours .rebours__cell {
    min-width: 84px;
    padding: .6rem .8rem;
  }
}
