/*
Theme Name: mateorie
Theme URI: https://www.jeremieberton.fr
Author: jberton
Author URI: 
Description: Thème Mateorie
Version: 1.0
*/

/*GENERAL*/
:root {
	--btn-color: rgb(5,6,42);
	--btn-color-hover: rgb(200,213,236);
	--bg-site: linear-gradient(to right,  #000014 0%,#090b3c 55%,#1c2157 100%);
	--bg-section: rgb(200, 213, 236);
	--txt-color: rgb(240, 240, 240);
	--header-height: 80px; /*pour gérer les liens d'ancrage avec le sticky menu*/
  }

/*  Chargement des polices Google */
@font-face {
	font-family: 'Gadugi';
	src: url('../fonts/Gadugi/gadugi.woff2');
  }
@font-face {
	font-family: 'LitSans';
	src: url('../fonts/LitSans/LitSans-Medium.woff2');
  }
@font-face {
	font-family: 'Imprint';
	src: url('../fonts/Imprint/imprint-mt-shadow.woff2');
  }

/* Masquer le titre des pages */
.post-title {
	opacity: 0;
}

/* Empecher les liens d’ancrage de défiler derrière le sticky menu */
html {
	scroll-padding-top: 7rem;
  }

body {
	font-family: "Gadugi" !important;
	background: var(--bg-site);
	font-size: 16px;
	margin:0;
	padding:0;
	border:0;
	height: 100% !important;
	width: 100%;
}

h1 {
	font-family: "LitSans" !important;
	font-weight: 400 !important;
	font-size: 2.5rem !important;
	color: var(--txt-color) !important;
	margin:0;
	padding:0;
}

h2 {
	font-family: "LitSans" !important;
	font-weight: 400 !important;
}

p {
	font-family: "Gadugi" !important;
}

a {
    color: inherit;
    text-decoration: none;
}

ul li { 
	font-family: "Gadugi" !important;
}

.page-container {
	margin: auto;
}

.page {
	margin: auto !important;
}

/* Mise en forme du bouton action */
.btn-action {
	color: var(--txt-color);
  border: 2px solid var(--txt-color);
	border-radius: 30px;
	padding: 5px 10px;
  font-size: 15px;
	transition: all .5s;
	-webkit-transition: all .5s;
}

.btn-action:hover {
	color: var(--btn-color);
    background-color: var(--btn-color-hover);
}

/* Mise en forme du bouton action après le scroll */
.btn-contact-accueil.is-visible .btn-action {
	border: 2px solid var(--btn-color-hover);
}

.btn-contact-accueil.is-visible .btn-action {
	color: var(--btn-color) !important;
}


/* FOOTER */
footer {
	width: 1200px;
	margin: auto;
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--txt-color);
}

/* Footer - bloc du haut */
.top-footer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
}

/* Footer - bouton contacter */
.top-footer-contact {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 30px;
}

.top-footer-contact:hover .fleche-contact {
	width: 80px;
	height: 80px;
	background: url('../images/Nous-contacter-mateorie-hover.png');
	background-size: contain;
}

.top-footer p {
	font-family: 'Imprint' !important;
	font-size: 60px !important;
}

.fleche-contact {
	width: 80px;
	height: 80px;
	background: url('../images/Nous-contacter-mateorie.png');
	background-size: contain;
	transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
	.fleche-contact {
		width: 50px;
		height: 50px;
	}
}

/* Footer - menu footer */
footer ul a {
	color: var(--txt-color);
	position: relative;
	font-size: 16px;
	transition: 0.4s;
}

footer ul {
	list-style-type: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

footer ul a:hover {
	color: var(--btn-color-hover);
  }

footer ul li a:before {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	background-color: var(--btn-color-hover);
	bottom: -3px;
	left: 0;
	transition: width 0.5s;
}

footer ul li a:hover::before {
  width: 100%;
}

/* Footer - bloc du bas */
.bottom-footer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.bottom-footer img {
	width: 8%;
}

.separateur-footer {
	border-top: 1px solid var(--txt-color);
	width:60%;
	position: relative;
}

/* FOOTER - RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
	.top-footer {
		justify-content: space-around;
	}
    .top-footer p {
		font-size: 30px !important;
	}
	.bottom-footer a {
		text-align: center;
	}
}


/* HEADER */
header {
	width: 100% !important;
	position: fixed;
	z-index: 10;
	height: var(--header-height);
	transition: 0.3s;
}

header.is-visible {
  	background-color: white;
}

header ul {
	list-style-type:none;
	padding: 0;
	margin: 0;
}

header li{
	text-decoration: none;
  }

header li a{
	text-decoration: none;
	color: var(--txt-color);
	font-size: 16px;
  }

header.is-visible li a{
	color: black;
  }

.logo img {
	height: 50px;	
}

.nom-logo p {
	font-family: "Imprint" !important;
	font-size: 60px !important;
}

@media screen and (max-width: 768px) {
	.nom-logo p {
		font-size: 40px !important;
	}
}


/* MENU Navigation bar */
nav {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	height: var(--header-height);
}

/* Ajout de la barre sous le menu après le scroll */
.is-visible nav {
	border-bottom: 2px solid var(--bg-section);
	box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px;
}

.btn-contact-accueil {
	display: flex;
	justify-content: center;
	gap: 30px;
	width: 40%;
}

@media screen and (max-width: 768px) {
	.btn-contact-accueil {
		gap: 10px;
		text-align: center;
	}
}

.navbar-nav {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
    list-style: none;
	width: 40%;
}

.navbar-nav li {
    display: inline-block;
}

.navbar-nav a {
	text-decoration: none;
	position: relative;
	font-size: 15px;
	transition: 0.4s;
	color: var(--btn-color-hover);
}

.navbar-nav a:hover {
	color: var(--txt-color);
}

/* changer la couleur quand le menu est scrollé */
.navbar-nav.is-visible a:hover {
	color: var(--btn-color);
}

.navbar-nav a:before {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	background-color: var(--btn-color-hover);
	bottom: -5px;
	left: 0;
	transition: width 0.5s;
}

.navbar-nav a:hover::before {
  width: 100%;
}

.logo {
	width: 20%;
}

@media screen and (max-width: 768px) {
	.logo {
		width: 30%;
	}
}

.logo a {
	display:flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
    color: black;
    text-decoration: none;
    font-size: 20px;
	height: var(--header-height);
}

/* changer le logo quand le menu est scrollé */
.logo {
  position: relative;
  display: inline-block;
  height: 80px;
}

.logo > img {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  transition: opacity 0.5s ease-in-out;
}

/* image par défaut */
.logo img.default {
  opacity: 1;
  display: block;
}

/* image alternative */
.logo img.alt {
  opacity: 0;
  display: none;
}

/* quand le menu est visible → inversion */
.is-visible .logo img.default {
  opacity: 0;
  display: none;
}

.is-visible .logo img.alt {
  opacity: 1;
  display: block;
}

.logo p {
	height: 5px;
	font-family: 'Imprint' !important;
	font-size: 15px !important;
	color: var(--txt-color);
	margin-top: 0px;
}

/* changer la couleur texte sous le logo quand le menu est scrollé */
 .is-visible.logo p {
	color: var(--btn-color);
}

.burger {
    display: none;
}

.line {
	height: 3px;
	background-color: white;
	display: block;
	margin: auto;
	margin-block: 2px;
	width: 20px;
}

.is-visible > .line {
	background-color: #000;
}

/* MENU Navigation bar - Animation du menu burger */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* MENU Navigation bar - Ajouter une toile de fond au menu mobile lorsqu’il est actif.  */
.menu-backdrop {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9; /* Ensure it's below the nav-links but above other content */
}

.fixed-position {
    overflow: hidden;
    height: 100%;
}


/* MENU Navigation bar - Responsive */
@media screen and (max-width: 768px) {
    nav{
		justify-content: space-around;
	}
	
	.navbar-nav {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 80px;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
		justify-content: flex-start;
		gap:20px;
        width: 100%;
        transform: translateX(-770px);
        transition: transform 0.5s ease-in-out;
		padding-top: 30px;
    }

    .navbar-nav li {
        opacity: 0;
    }

	.navbar-nav li a {
		color: black;
		font-size: 30px;
	}

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        margin: 5px;
        transition: all 0.3s ease;
    }

    .nav-active {
        transform: translateX(0);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .navbar-nav li {
        animation: navLinkFade 0.5s ease forwards 0.5s;
    }

	.line-top-footer{
		border-top:0;
	}

}

/* Responsive Design - largeur de bloc header conteneur principal */
@media screen and (max-width:1200px){
	header {
		width: 100% !important;
	}
	footer {
		width: 100%;
	}
}


/* ACCUEIL */

/* ANIMATIONS VIDEO */
#under-content {
	display: none;
}

#intro-video {
    width: 100vw !important;       /* 100% de la largeur de la fenêtre */
    max-width: 100% !important;
    margin-top: -80px;
    padding: 0;
	overflow: hidden;
}

@media screen and (max-width: 768px) {
	#intro-video {
		margin-top:80px;
		padding-top: 130px;
		padding-bottom: 130px;
	}
	
    #intro-video video.elementor-video {
	transform: scale(1.4);
	transform-origin: center;
    }
}

#intro-video .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    transform-origin: center center;
}

#intro-video video.elementor-video {
    width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover; /* Pour qu'elle s'ajuste bien */
}


/* ANIMATIONS SVG */

/* ANIMATIONS SVG - EXPLOSION DE CERCLES */
.conteneur-explosion {
	margin: 0;
  	display: flex;
  	justify-content: center !important;
}

.svg-explosion {
	width: 800px;
	height: 600px;
	overflow: visible;
	display: block;
}
/* Cercle central */
.center {
	fill: rgb(192,209,236);
}
/* Particules au repos */
.particle {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}
/* ANIMATIONS SVG - EXPLOSION DE CERCLES - RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
	.svg-explosion {
	width: 100%;
	height: 400px;
	}
}


/* ANIMATIONS SVG - CONNECTION DE POINTS */
#network {
  width: 100%;
  height: 700px;
}

/* ANIMATIONS SVG - CONNECTION DE POINTS - RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
	#network {
	width: 100%;
	height: 400px;
	}
}


/* ANIMATIONS SVG - CROISSANCE */
.croissance {
  width: 100%;
  height: 400px;
  display: block; /* évite les espaces indésirables */
}

@media screen and (max-width: 768px) {
	.croissance {
	width: 100%;
	height: 300px;
	}
}

.croissance line {
  stroke: #c0d1eb;
  stroke-width: 2;
}

.croissance circle {
  fill: #c0d1eb;
}

.croissance .highlight {
  fill: #f6ff00;
}

/* Animation générique */
.bounce line,
.bounce circle:last-child {
  transform-origin: center;
  animation: bounce 4s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  animation-delay: var(--delay);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(calc(-1 * var(--bounce-height))); }
}

/* Accueil - Vos besoins mise en forme des rectangles */
.vos-besoins {
 	display: flex;
  	align-items: center !important;
  	justify-content: center !important;
  	height: 40px;
}

/* Accueil - Rond bleu autour des numéros */
.badge {
    width: 40px;
    height: 40px;
    background: rgb(40,53,131);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    /* taille du chiffre relative à la taille du badge */
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    user-select: none;
}

/* Accueil - Rond bleu autour des numéros - Responsive design*/
@media screen and (max-width: 768px) {
    .badge{ 
		width: 30px;
    	height: 30px;
		font-size: 15px;
	}
}

/* Accueil - rond bleu en dessous de croissance */
.rond-croissance {
	width: 200px;
    height: 200px;
    background: rgb(40,53,131);
    border-radius: 50%;
	padding: 40px;
	font-size: 15px;
	display: inline-flex;
    align-items: center !important;
	justify-content: center !important;
	text-align: center;
}

/* Notre équipe - rond pour les photos */
.rond-photo {
	width: 200px !important;
    min-height: 200px !important;
	border-radius: 50% !important;
	opacity: 1 !important;
	transition: all 0.5s ease-out !important;
	cursor: pointer;
}

.rond-photo:hover {
	opacity: 0.6 !important;
}

/* Notre équipe - masquer ou afficher un oeil sur les photos si hover */
.icon-eye {
	opacity:0 !important;
	transition: all 0.5s ease-out !important;
}

.rond-photo:hover > .icon-eye {
	opacity:1 !important;
}

/* Page profil perso - rond photo sans le hover */
.rond-photo-solo {
	width: 300px !important;
    min-height: 300px !important;
	border-radius: 50% !important;
}

/* Les outils - bloque de mots qui s'affichent avec un effet */

/* Wrapper contenant l'écran et le pied */
  .pc-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* centre tout horizontalement */
  }

  .pc-screen {
    position: relative;
    width: 500px;
    height: 300px;
    background: var(--btn-color-hover);
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
  }

  @media screen and (max-width: 768px) {
	  .pc-screen {
		width: 400px;
	}
}

  .pc-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: #777;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  /* Pied vertical centré */
  .pc-stand {
    width: 40px;
    height: 60px;
    background: #444;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-top: -10px; /* rapproche du bas de l'écran si nécessaire */
  }

  /* Socle horizontal centré */
  .pc-foot {
    width: 200px;
    height: 15px;
    background: var(--txt-color);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-top: -5px;
  }

  .word-block {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 300px;
    padding: 10px 15px;
    background: var(--btn-color);
    color: var(--txt-color);
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    opacity: 0;
    transition: transform 3s ease, opacity 3s ease;
  }

/* Accompagnement des dirigeants - image avec rond blanc au milieu et fleches */
.container-dirigeants {
  position: relative;
  width: 800px;
  height: 600px;
  margin: auto;
}

/* RESPONSIVE DESIGN - Mise en forme Schéma Accompagnement des dirigeants */
@media screen and (max-width: 768px) {
	.container-dirigeants {
		width: 100%;
  		height: 500px;
	}
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* start petit */
  max-width: 220px;
  height: 220px;
  background: white;
  color: #0a123d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: bold;
  padding: 20px;
  z-index: 2;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

@media screen and (max-width: 768px) {
	.center-circle {
		height: auto;
		margin-top: -40px;
	}
}

.item {
  position: absolute;
  width: 200px;
  text-align: center;
  font-weight: bold;
  color: white;
  opacity: 0; /* start invisible */
  transition: opacity 0.5s ease;
}

/* Positions des items */
.top-left { top: 20%; left: 5%; }
.top-right { top: 20%; right: 5%; }
.right { top: 65%; right: 0%; transform: translateY(-50%); }
.bottom { bottom: 15%; left: 50%; transform: translateX(-50%); }
.left { top: 60%; left: 0%; transform: translateY(-50%); }

canvas#lines-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* derrière les textes et le cercle */
}

/* CONTACT - Formulaire de contact */
.wpcf7-form label{
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--txt-color);
}

.wpcf7-form-control-wrap input {
	width: 350px !important;
	height: 40px;
	border:solid 1px lightgray;
	border-radius: 10px !important;
	padding: 0 10px;
	font-size: 16px;
	color: var(--btn-color);
  margin-top: 5px;
}

.wpcf7-form-control-wrap textarea {
	width: 350px;
	height: 210px;
	border:solid 1px lightgray;
	border-radius: 10px;
	padding: 5px 10px;
	font-size: 16px;
	color: black;
  margin-top: 5px;
}

.wpcf7-submit {
	margin-top: 20px;
	height: 50px;
	width: 255px;
}

.btn-action-form {
	color: var(--txt-color);
  border: 3px solid var(--txt-color);
  background-color: transparent;
	border-radius: 30px;
	padding: 12px;
  font-size: 18px;
  cursor: pointer;
	transition: all .5s;
	-webkit-transition: all .5s;
}

.wpcf7-response-output {
	color: var(--txt-color) !important;
}

.wpcf7-not-valid-tip {
	color: #F3FF00 !important;
}

.btn-action-form:hover {
	color: var(--btn-color);
  background-color: var(--btn-color-hover);
}

/* Rappel - Pop up rappelez-nous */
/* Formulaire de contact */
.popup-overlay{
    position:fixed;
    width:100%;
    height:100%;
    background:#00000060;
    display:flex;
    justify-content: center;
    align-items:center;
    z-index: 999; /* à enlever */
    top:0;
    left:0;
	visibility: hidden;
	opacity: 0;
	transform: scale(0);
	transition: 0.5s ease-in-out;
}

.popup-overlay p {
	color:var(--bleu-fonce-color);
	font-size: 20px;
	text-align: center;
	width: 75%;
}

.popup-overlay-visible{
	visibility: visible !important;
	opacity: 1;
	transform: scale(1);
	transition: 1s ease-in-out;
}

.popup-container{
	background:var(--btn-color);
    border:3px solid white;
	color: var(--txt-color);
    width:500px;
	max-height:600px;
    position:relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.closebtn{
	border: none;
	background-image: url(../images/fermer-popup.png);
	background-color : transparent;
	background-size: cover;
	width: 22px;
	height: 22px;
	text-indent: -3000px;
	cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
	z-index: 12;
}

.popup-header{
	background-image: url(../images/logo-mateorie-rappel.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	width:30%;
	height: 100px;
	margin-top: 10px;
}

.wpcf7-form{
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Les étapes clés de la reprise - Mise en forme des 8 étapes */
.steps {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
max-width: 800px;
margin: 0 auto;
list-style: none;
padding: 0;
}

/* RESPONSIVE DESIGN - Mise en forme des 8 étapes*/
@media screen and (max-width: 768px) {
	.steps {
		grid-template-columns: repeat(1, 1fr);
	}
}

.steps li {
display: flex;
align-items: center;
padding: 14px 18px;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.steps li:hover {
transform: translateX(6px);
}
.steps li .num {
font-weight: bold;
font-size: 18px;
background: #4a6ee0;
color: white;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
}
.steps li span {
font-size: 16px;
}


/* Couleurs progressives, moins tiré vers le blanc */
.steps li:nth-child(1) { background: rgb(160,180,220); }
.steps li:nth-child(2) { background: rgb(175,190,225); }
.steps li:nth-child(3) { background: rgb(190,200,230); }
.steps li:nth-child(4) { background: rgb(200,210,235); }
.steps li:nth-child(5) { background: rgb(210,215,240); }
.steps li:nth-child(6) { background: rgb(220,220,245); }
.steps li:nth-child(7) { background: rgb(230,225,248); }
.steps li:nth-child(8) { background: rgb(240,235,250); }