/*RESET*/
*{margin:0;}

/* COLOR -------------------------------- */
:root {
  --color-bg-main: white;
  --color-bg-alter: #F2F2F2;
  --color-text-main: black;
  --color-text-alter: white;
  --color-trigger-main: #3977EB;
  --color-trigger-alter: #0e365d;
}

/* BACKGROUND COLORS -------------------------------- */
.backgr-TBD{background: #fafafa;}
.backgr-DarkBlue{background: #111931;}
.backgr-DarkSuperLightBlue{background: #0e365d;}
.backgr-lightGrey{background: #fafafa;}

/* FONT -------------------------------- */
@font-face{font-family: 'Montserrat';src: url(../fonts/Montserrat-VariableFont_wght.ttf);}
@font-face {font-family: 'Raleway'; src: url(../fonts/Raleway-VariableFont_wght.ttf);}

html, body {
    width: 100%;
    overflow-x: auto;
}

body {
    display: flex;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 1440px;
    min-width: 320px;
    margin: 0; 
    padding: 0 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ACCUEIL -------------------------------- */
#acc {
    display: flex;
    justify-content: center;
    min-height: 50vh;
    box-sizing: border-box;
}

.acc-container {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: var(--color-bg-alter);
    border-radius: 20px;
    box-sizing: border-box;
    padding: 5px;
    height: 70%;
    max-height: 600px;
}

.acc-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-right: 20px;
    height: 100%;
}

h1 {
    font-family: 'Montserrat';
    font-size: 3em;
    color: var(--color-text-main);
    margin: 0;
    text-align: end;
    font-weight: 500;
}

.logo_CMB3D {
    display: none;
    width: 100%;
    max-width: 250px;
    height: auto;
    padding: 20px;
    align-self: center;
}

.acc-img {
    object-fit: cover;
    width: 100%;
    height: 500px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* NOS SERVICES -------------------------------- */
#services {
    min-height: calc(100vh - 200px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0px;
    background-color: var(--color-bg-alter);
    border-radius: 20px;
}

.services-container h2 {
    padding-left: 40px;
    margin-bottom: 40px;
}

h2 {
    font-family: 'Montserrat';
    font-size: 2em;
    font-weight: 550;
    color: var(--color-text-main);
    text-align: left;
}

.container-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

/* Effet de groupe au survol */
.container-cards:hover .services-card {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Effet individuel au survol */
.container-cards .services-card:hover {
    transform: scale(1.1);
    opacity: 1;
    z-index: 2;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1);
}

.services-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-main);
    border-radius: 20px;
    position: relative;
    z-index: 2;
    width: 25%;
    margin: 0 15px;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    padding: 20px;
}

h3 {
    font-family: 'Montserrat';
    font-size: 1em;
    color: var(--color-text-main);
    text-transform: uppercase;
    text-align: center;
}

#services p {
    font-family: 'Montserrat';
    font-size: 1em;
    color: var(--color-text-main);
    text-align: justify;
    margin: 10px 0;
    padding: 0 10px;
}

#services img {
    width: 40%;
    height: auto;
    margin: 20px 0px;
}

/* CARROUSSEL -------------------------------- */

.carousel-agr, .carousel-conf {
    padding: 40px 0;
    text-align: center;
    background-color: var(--color-bg-alter);
    border-radius: 20px;
}

h4 {
    font-family: 'Montserrat';
    font-size: 1.5em;
    font-weight: 600;
    color: var(--color-trigger-main);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto; 
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, 
        var(--color-bg-alter) 0%, 
        rgba(242, 242, 242, 0.9) 10%, 
        rgba(242, 242, 242, 0.5) 40%, 
        transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, 
        var(--color-bg-alter) 0%, 
        rgba(242, 242, 242, 0.9) 10%, 
        rgba(242, 242, 242, 0.5) 40%, 
        transparent 100%);
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-track img {
    height: 80px;
    margin: 0 20px;
    flex-shrink: 0;
    object-fit: contain;
}

    @keyframes scroll {
      from {
        transform: translateX(0);
      }
      to {
        transform: translateX(-50%);
      }
    }

/* PROCESSUS-------------------------------- */

#process {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
    background-color: var(--color-bg-alter);
    border-radius: 20px;
    padding: 30px;
    gap: 30px;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.process-card {
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    background-color: var(--color-bg-main);
    padding: 5px;
    backdrop-filter: blur(15px); 
    border-radius: 20px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.process-card::before {
    content: attr(data-step);
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--color-trigger-main);
    color: var(--color-text-alter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat';
    font-weight: bold;
    font-size: 1.2em;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.process-card:hover::before {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--color-trigger-alter);
}

.process-card img {
    object-fit: cover;
    width: auto;
    height: 236px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: 5px;
}

.process-container .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 15px;
    gap: 8px;
}

#process p {
    font-family: 'Raleway';
    font-size: 16px;
    color: var(--color-text-main);
    text-align: center;
    padding: 0 10px;
}


/* FORMULAIRE DE CONTACT-------------------------------- */
#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.contact-form {
    width: 50%;
    padding: 20px;
    font-family: Poppins-Regular, sans-serif;
    color: #c9ced8;
    text-align: center;
    position: relative;
    background-color: var(--color-bg-alter);
    border-radius: 20px;
    box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.1), 
    -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.contact-form h3 {
    margin-bottom: 40px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    color: var(--color-text-main);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 0 auto 10px auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    box-sizing: border-box;
}

.name-fields {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.name-fields .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.name-fields .form-group input {
    width: 100%;
}

.btnForm button {
    background: var(--color-trigger-main);
    font-family: Poppins-Regular, sans-serif;
    color: var(--color-text-alter);
    margin-top: 20px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    align-items: center;
    position: relative;
    font-size: 1.1em;
}

.btnForm button:hover {
    background: var(--color-trigger-alter);
}



/* FOOTER-------------------------------- */


footer {
    color: var(--color-text-main);
    padding: 1em 2em;
    display: flex;
    justify-content: center;
    position: relative;
    background-color: var(--color-bg-alter);
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

footer span {
    text-transform: uppercase;
    color: var(--color-trigger-main);
    font-family: 'Montserrat';
    font-size: 0.8em;
    font-weight: bold;
}

footer ul {
    width: auto;
    font-family: 'Montserrat';
    font-size: 0.8em;
    margin-top: 0.6rem;
    text-transform:initial;
    list-style: none;
    padding: 0;
}

footer li {
    margin-top: 4px;
}

footer a {
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--color-text-main);
}

footer a:hover {
  text-decoration: underline;
}

footer a.social-icon {
    text-decoration: none;
    display: inline-block;
}

footer a:not(.social-icon):hover {
    text-decoration: underline;
}

footer a.social-icon:hover svg path {
    fill: var(--color-trigger-alter);
}

.social-icon {
    margin-top: 20px;
}

.linkedin {
    margin-left: 5px;
}



/* -------------------------------- MEDIA QUERIES -------------------------------- */



/* Medium devices (tablets, less/equal than 1024px) --------------------------*/
@media screen and (max-width: 1024px) {
/* ACCUEIL 1024px ------------- */
.acc-container {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.acc-content {
    padding-right: 0px;
    padding: 30px 20px;
}

.acc-img {
    object-fit: cover;
    order: 2;
    max-height: 300px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}
    
h1 {
    font-size: 2em;
    text-align: center;
}
    
.logo_CMB3D {
    max-width: 200px;
}

/* SERVICES 1024px ------------- */

.container-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

/* Effet de groupe au survol */
.container-cards:hover .services-card {
    transform: scale(0.95);
}

/* Effet individuel au survol */
.container-cards .services-card:hover {
    transform: scale(1.05);
}

.services-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-main);
    border-radius: 20px;
    position: relative;
    z-index: 2;
    width: auto;
    margin: 0 15px;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    padding: 20px;
}

#services img {
    width: 15%;
    height: auto;
    margin: 20px 0px;
}


/* CONTACT 1024px ------------- */
.contact-form {
    width: 50%;
}

}

/* Medium screens (less/equal than 980px) --------------------------------*/
@media screen and (max-width: 980px) {

/* ACCUEIL 980px ------------- */
.acc-container {
    padding: 5px;
    min-height: calc(100vh - 120px);
}

.acc-content {
    padding: 30px 40px;
}
    
h1 {
    font-size: 1.8em;
}

/* SERVICE 980px ------------- */
.services-container h2 {
    margin-bottom: 0px;
}

/* CONTACT 980px ------------- */
.contact-form {
    width: 60%;
}


}


/* Small screens (less/equal than 768px) --------------------------*/
@media screen and (max-width: 768px) {

.main-container {
    padding: 0px 0px;
}

/* ACCUEIL 768px ------------- */
.acc-container {
    gap: 15px;
    padding: 15px;
    border-radius: 0px;
}

h1 {
    font-size: 1.6em;
}

.acc-img {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* SERVICES 768px ------------- */

.services-container {
    border-radius: 0px;
}


.container-cards:hover .col.glass-effect {
    transform: scale(1);
}
    
.container-cards .col.glass-effect:hover {
    transform: scale(1.05);
}


/* CAROUSEL 768px ------------- */
.carousel-agr, .carousel-conf {
    border-radius: 0px;
}

/* PROCESSUS 768px ------------- */

#process {
    border-radius: 0px;
}

.process-card {
    width: calc(50% - 20px);
}

.process-card::before {
    width: 35px;
    height: 35px;
    font-size: 1em;
    top: -8px;
    left: -8px;
}

.process-card img {
    height: 180px;
}



/* CONTACT 768px ------------- */
.contact-form {
    width: 80%;
    border-radius: 20px;
}


/* FOOTER 768px ------------- */

footer{
    padding: 1em 0;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
}

.footer-grid {
    padding: 2rem 1rem 0 1rem;
}

}

/* Extra small screens (less/equal than 576px) --------------------------*/
@media screen and (max-width: 576px) {

/* ACCUEIL 576px ------------- */
.acc-container {
    padding: 10px;
    gap: 10px;
}
    
h1 {
    font-size: 1.4em;
}

.logo_CMB3D {
    max-width: 150px;
    padding: 10px;
}

/* PROCESSUS 576px ------------- */

.process-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-card {
    width: 100%;
}

.process-card::before {
    width: 30px;
    height: 30px;
    font-size: 0.9em;
    top: -6px;
    left: -6px;
}

/* CAROUSEL CONF 576px ------------- */

.carousel-track img {
    height: 50px;
}

/* CONTACT 576px ------------- */
.contact-form {
    width: 90%;
}


/* FOOTER 576px ------------- */

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

}

/* Mobile screens (less/equal than 414px) --------------------------*/
@media screen and (max-width: 414px) {

/* ACCUEIL 414px -------------*/
.acc-container {
    padding: 8px;
    gap: 8px;
}

h1 {
    font-size: 1.2em;
}

.logo_CMB3D {
    max-width: 120px;
    padding: 8px;
}

/* SERVICE 414px -------------*/

.services-container {
    padding: 30px 0px;
}

h3 {
    font-size: 1.2em;
}

.container-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 5px;
}

.container-cards:hover .services-card,
.container-cards .services-card:hover {
    transform: none;
    box-shadow: none;
    opacity: 1;
    z-index: auto;
    transition: none;
}

.services-card {
    width: auto;
    margin: 0 0px;
    padding: 5px;
}

#services img {
    width: 20%;
}

/* PROCESSUS 414px ------------- */
#process {
    padding: 30px 7px;
}

.process-card, .process-card::before,
.process-card:hover, .process-card:hover::before {
    box-shadow: none;
    transform: none;
}

.process-card:hover::before {
    background-color: var(--color-trigger-main);
}

.process-container .card-content {
    padding: 0px 15px 5px 15px;
}


/* CONTACT 414px ------------- */
.contact-form {
    width: 90%;
    padding: 10px;
}


}

/* Small mobile screens (less/equal than 375px) -------------------------- */
@media screen and (max-width: 375px) {

/* ACCUEIL 375px ------------- */
.acc-container {
    align-items: center;
    padding: 30px 5px;
    min-height: 50vh;
}

.acc-content {
    align-items: center;
    padding: 30px 0px;
}

.acc-content h1 {
    font-size: 2em;
}


/* CAROUSEL 375px ------------- */
.carousel {
    width: 100%;
}

/* SERVICE 375px ------------- */

.services-container h2 {
    padding-left: 10px;
}

/* CONTACT 375px ------------- */
.contact-form {
    width: 90%;
}

/* FOOTER 375px ------------- */
footer li {
    margin-top: 4px;
}

.social-icon {
    margin-top: 20px;
}

.linkedin {
    margin-left: 5px;
}

}





