@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

@font-face {
    font-family: 'Foobar';
    font-style: normal;
    font-weight: normal;
    src: local('Foobar'), url('../fonts/Foobar\ Pro-Regular.woff') format('woff');
    font-display: swap;
}

:root {
    --primary: #646467c0;
    --secondary: #2095ea;
    --white: #f9f9f9;
    --border-radius: 5px;
    --box-shadow-default: 1px 1px 30px -10px rgba(0,0,0,.7);
}

/*********************  RESET CSS DEFAULT *********************/
* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

/******************** STRUCTURE *******************/
html,
body {
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--secondary);
   
}

h1 {
    font-size: 2.5em;
    color: #505050;
}

h2 {
    align-items: center;
    text-align: center;
    padding: 2em;
}

h3 {
    font-size: 1.8em;
    
}

a {
    color: inherit;
    display: inline-block;
}

.container {
    width: 90%;
    margin: auto;
}



p:not(:last-of-type), em {
    margin-bottom: 1em;
}

em {
    display: inline-block;
}

.btn {
    padding: .5em 1em;
    border-radius: var(--border-radius);
    border: none;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .7s ease;
    background: var(--primary);
    z-index: 1;
    color: #f9f9f9;
}

.btn-primary::before, .btn-primary::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background: var(--secondary);
    transition: 1s ease;
}

.btn-primary::before {
    top: -1em;
    left: -1em;
}
   
.btn-primary::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}

.btn-primary:hover::before, .btn-primary:hover::after {
    height: 410px;
    width: 410px;
}
   
.btn-primary:hover {
    color: rgb(132, 123, 123);
}

/* s
/*********************** NAVBAR ***********************/
.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar-content {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 50px;
    mix-blend-mode: color;
    object-fit: contain;
}

.navbar-links ul {
    display: flex;
    gap: 15px;
    list-style: none;
}
.navbar-burger {
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    position: relative;
    transition: all .4s ease;
}

.navbar-burger::before,
.navbar-burger::after {
    content: ""; 
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    position: absolute;
    transition: all .4s ease;
}
.navbar-burger::before {
    top: -7px;
}

.navbar-burger::after {
    top: 8px;
}

.link-burger {
    display: none;
}
.link-burger.open .navbar-burger {
    background: transparent;
}


.link-burger.open .navbar-burger::before {
    top: 0;
    transform: rotate(45deg);
}
.link-burger.open .navbar-burger::after {
    top: 0;
    transform: rotate(-45deg);
}
@media screen and (max-width:765px){
    .link-burger {
        display: inline-block;
    }
    .navbar-links ul {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary) ;
        color: var(--white);
        gap: 0;
        transform: scaleY(0);
        transform-origin: top center;
        transition: transform .4s ease;
    }
    .navbar-links ul li {
        width: 100%;
        padding: 1em 0;
        text-align: center;
    }
    .navbar-links ul li:not(:first-of-type) {
        border-top: 1px solid var(--white);
    }
    .navbar-links ul.open {
        transform: scaleY(1);
    }
}
/********************* BANNER ***********************/
.banner {
    background-image: url('../images/Info.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: calc(100vh - 68.24px);
    display: flex;
    justify-content: flex-end;
    align-items: center;    
}

.banner-header {
    width: 35%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    padding: 2em;
    box-shadow: 0 4px 30px rgba(0,0,0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 15%;
}

.banner-header h1 {
    font-size: 2em;
}

.banner-header .separator {
    border: none;
    border-top: 3px solid var(--primary);
    margin-bottom: 10px;
}

@media only screen and (max-width:768px){
    .banner {
        justify-content: center;
    }
    .banner-header {
        width: 80%;
        margin-right: unset;
        text-align: center;
    }
}

/********************* FEATURES ********************/
.separator {
    border: none;
    border-top: 3px solid var(--primary);
    margin-bottom: 10px;
}

.middle {
    width: 100%;
}

.features-list {
    margin-top: 2em;
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2em 0;
}

* { 
    margin: 0px;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg,#6b6a6a #07e425);
}


.card img {
    width: 60%;
    height: auto;
}
.card-content {
    padding: 15px;
}
.card-title {
    font-size: 1.5em;
    margin: 0;
}
.card-text {
    color: #555;
    font-size: 1em;
    margin-top: 10px;
}
.card {
    position: relative; 
    height: 350px;
    background: rgba(129, 129, 25, 0);
    box-shadow: 0 8px 20px #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    opacity: 0; /* Début invisible */
    transform: translateY(20px); /* Début légèrement en bas */
    animation: fadeIn 1s ease-in forwards; /* Animation au chargement */
    
}
.card::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease; 
    top: 50%;
    left: 20%;
    pointer-events: none;
}
.card:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.card h1 {
    color: #2095ea;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.card p {
    color: #2095ea;
    font-size: 1rem;
    text-align: center;
    padding: 0 20 px;
}
.card button {
    margin-top: 10px;
    padding: 10px 20px; 
    background: rgba(255, 255, 255, 0,2);
    border: 1px solid #2095ea;
    color: #646467c0;
    border-radius: 25px;
    cursor: pointer;
}

.card button:hover {
    background: rgba(8, 219, 19, 0.4);
    transform: translateY(-5px);
}


.card-img-overflow {
    overflow: hidden;
}

.card-img {
    transition: transform .5s ease-in-out;
}

.card-img:hover {
    transform: scale(1.5);
}

.card-body {
    text-align: center;
}

.card-body h3 {
    color:rgba(0,0,0,.7) ;
}

.card-body p {
    margin-bottom: 1em;
}
@media only screen and (max-width:768px){
    .card-body {
        justify-content: center;
        align-items:normal;
        width: 100%;
        text-align:center;
    }
    .card{     
        width: 100%;
        padding: 1em;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/************************** PROFIL ************************/
.profil-row {
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
}

.profil-img {
    width: 30%;
    object-fit: cover;
}

.profil-description {
    width: 65%;
}

.text-red {
    color: red;
}

.label-list {
    margin-top: 1em;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    color: #f9f9f9;
}

.label-list li {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: .5em 1em;
    box-shadow: var(--box-shadow-default);
}
@media only screen and (max-width:768px){
    .profil-img {
        
        align-items: center;
        width: 100%;
        height: 100%;
        border-bottom: 1px solid var(--border-color);
        text-align:center;
    }
    .profil-row {
        margin-top: 2em;
        flex-direction: column;
        text-align:center;

    }
    .profil-description {
        text-align: center;
        width: 100%;
    }
    
}
/************************ CV PROFIL ************************/
.cv-list {
    margin-top: 3em;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1em;
}

.cv-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-default);
    position: relative;
}


.cv-card:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.cv-card span {
    font-size: 4.4em;
    color: #646467c0;
    position: absolute;
    top: 50px;
    right: 5%;
}

.cv-card:hover span {
    color: #eb9505;
}

.cv-card h2 {
    background: #2095ea;
    display: inline-block;
    padding: 15px 30px;
    color: #f9f9f9;
    font-size: 1em;
    border-radius: 25px 25px 25px 25px;
    margin-bottom: 2em;
}

.cv-card:hover h2 {
    background: #000000;
    color: #eb9505;
    box-shadow: 1px 1px 1px 1px #eb9505;
    transform: translateY(-3px);
}

.cv-details {
    display: flex;
    justify-content: center;
    gap: 1em;
    color: var(--primary);
}

.cv-details i {
    font-size: 5em;
}

.cv-details h3 {
    color: var(--primary);
}

.cv-card:hover .cv-details,
.cv-card:hover .cv-details h3 {
    color: #f9f9f9;
}

.cv-card, 
.cv-card span,
.cv-card h2,
.cv-details,
.cv-details h3 {
    transition: all .4s ease-in-out;
}


/*********************** ABOUT **********************/
.about-row {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-desc {
    width: 50%;
}

.about-desc a {
    margin-top: 2em;
}

.about-img {
    width: 40%;
    position: relative;
}

.about-img img {
    width: 35%;
    margin: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-default);
    transition: all .4s ease-in-out;
}

.bg-square-about-1 {
    width: 40%;
    height: 70%;
    position: absolute;
    top: -10%;
    right: 3%;
    background: var(--primary);
    z-index: -1;
    border-radius: var(--border-radius);
}

.bg-square-about-2 {
    width: 70%;
    height: 90%;
    position: absolute;
    bottom: -10%;
    left: 3%;
    background: var(--secondary);
    z-index: -1;
    border-radius: var(--border-radius);
}

.about-img:hover img {
    transform: scale(1.1);
}

.about-row.reverse {
    flex-direction: row-reverse;
    margin-top: 6em;
}

@media only screen and (max-width:768px){
    .about h2 {
        text-align: center;
    }

    .separator.middle {
        width: 100%;
    }

    .about-row, 
    .about-row.reverse {
        flex-direction: column-reverse;
    }

    .about-desc {
        text-align: center;
        margin-top: 1em;
        width: 100%;
    }
    
    .about-img {
       width: 100%; 
    }
}

/************* CONTACT ******************/

section.contact{ 
    margin: 4em 0 0;
    background:linear-gradient(0deg, var(--primary), var(--secondary));
    padding: 1em 0;
}
.contact h2 {
    color:rgba(0,0,0,.7);
    text-align: center;
}
.contact-row {
    margin-top: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info{
    flex: 0 1 30%;
}
.contact-form-content {
    flex: 0 1 60%;
    position: relative;
}

.contact-from {
    margin: auto;
    border: 1px solid (255, 255, 255, .3);
    box-shadow: var(--box-shadow-default);
    backdrop-filter: blur(5px);
    --webkit-backdrop-filter: blur(5px);
}
.bg-contact-form-1, 
.bg-contact-form-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-default);
    transition: .8s ease;
}
.bg-contact-form-1 {
    top: 8%;
    left: 0;
    background: var(--secondary);
}
.bg-contact-form-2 {
    bottom: 8%;
    right: 0;
    background: var(--primary);
}
.contact-form-content:hover .bg-contact-form-1 {
    transform: translateX(555%);
}
.contact-form-content:hover .bg-contact-form-2 {
    transform: translateX(-555%);
}
.input-group {
    margin-bottom: 1em;
    grid-template-columns: 10% 80%;
    gap: 1em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary);
    padding: 5px;
}
.contact-form button {
    display:block;
    margin:auto;
}

@media only screen and (max-width:768px){
    .contact-row {
        width: 100%;
        height: 100%;
        display: flex;
        gap: 1em;
        text-align:center;
        justify-content: center;
    }
    .contact-info {
        width: 100%;
        height: 100%;
        flex-direction: column-reverse ;
        justify-content: center;
    }

}

/************************* Footer ****************/
footer {
    background: var(--primary);
    padding: 1em 0;
    text-align: center;
}
footer i {
    font-size: 18px;
    color: var(--secondary);
}

/************************ Formulaire Devis ****************/

form {
    margin: 60px auto;
    width: 339px;
    padding: 3em;
    border: 2px solid #646467c0;
    border-radius: 2em;
    background:rgba(0,0,0,.7);

  } 
  
  label {
    width: 90px;
    text-align: center;
    color: #f9f9f9;
  }
  
  input, textarea {
    font: 1em sans-serif;
    width: 200px;
    border-radius: var(--border-radius);
    border: 1px solid #b5b7b9;
  }
  
  input:focus, textarea:focus {
    border-color: #84e219;
  }
  
  textarea {
    vertical-align: center;
    height: 5em;
    resize: vertical;
  }
  
  button {
    margin-left: 0.5em;
  }

  /************************** NAVBAR *****************************/
.navbar {
    background: #646467c0;
    position: sticky;
    top: 0;
    z-index: 999999;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.navbar-content {
    padding: 1em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
}

.navbar-links {
    display: flex;
    gap: 1em;
    align-items: center;
}

.btn-nav {
    padding: .5em 1em;
    border-radius: 30px;
    background: #2095ea;
    color: var(--white);
}
 /*********************** FOOTER *****************/
footer {
    padding: 1em 0;
    background: #6b6a6a;
    color: #f9f9f9;
    text-align: center;
}

.footer-links {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

/*********************** ICONES CONTACT ********/

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    text-decoration: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ddd;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icons a img {
    width: 100px;
    height: 55px;
}

.social-icons a:hover {
    transform: scale(1.2) rotate(10deg);
    background-color: #0077b5; 
}

/*********************** COMPTEUR DE VUES ACCUEIL********/

.counter-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
      
p {
    margin: 0;
}

#counter {
          
    font-size: 2em;
    color: #00ffcc; /* Une teinte néon pour le compteur */
}
.counter:hover {
    transform: scale(1.1);
}

/*********************** COMPTEUR DE VUES ACCUEIL********/

.circle {
    margin: 7px auto;
    width: 40px;
    height: 40px;
    border: 5px solid white;
    border-radius: 50%;
    border-top-color: #2095ea;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    100%{
        transform: rotate(360deg);
    }
}
    
/********************** AVIS ***************************/

.avis {
    text-align: center;
}