* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Nexa', 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}


/* NAVBAR */
nav {
    background-color: #000000;
    padding: 0.6rem 1rem;
    position: sticky;
    position: fixed;
    z-index: 1000;
    left: 0;
    width: 100%;
}
.nav-logo {
    height: 40px;
    vertical-align: middle;
}
.nav-title {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 15px;
    display: inline-block;
    vertical-align: middle;
}

/* SECTION HERO */
.section-blue {
    background-color: #2185ff; 
    
    background-image: 
        radial-gradient(circle at 0% 0%, #cd42ff 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, #00e5ff 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, #00ffd5 0%, transparent 50%),
        radial-gradient(circle at 100% 50%, #0033ff 0%, transparent 60%),
        radial-gradient(circle at 60% 100%, #ffffff 0%, #d5b8ff 25%, transparent 60%);
    padding: 4rem 2rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-blue::before,
.section-blue::after,
.main-content::before,
 .main-content::after,
 body::before,
 body::after,
 footer::after,
footer::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section-blue::before {
    top: 8%;
    right: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.34) 0%, rgba(0, 229, 255, 0.06) 55%, transparent 72%);
}

.section-blue::after {
    right: -70px;
    top: 80px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(205, 66, 255, 0.28), rgba(205, 66, 255, 0.05));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(-10deg);
}

.hero-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-left {
    flex: 1.2;
    color: #ffffff;
    order: 1;
}

.hero-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-left p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #ffffff;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.logo-box {
    border-radius: 5px;
    display: inline-block;
}

.logo-box img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.specialites-box {
    color: #ffffff;
}

.specialites-box p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.specialites-box ul {
    list-style: none;
    font-size: 1rem;
    color: #222;
}

/* SLIDERS */
.main-content {
    padding-bottom: 4rem;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.main-content::before {
    top: 1400px;
    right: -80px;
    width: 210px;
    height: 210px;
    background: linear-gradient(135deg, rgba(0, 68, 255, 0.14), rgba(0, 68, 255, 0.02));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(20deg);
}

.main-content::after {
    top: 900px;
    right: 50%;
    width: 700px;
    height: 210px;
    background: linear-gradient(135deg, rgba(0, 68, 255, 0.14), rgba(0, 68, 255, 0.02));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(-12deg);
}

body::before {
    z-index: 100;
    top: 80%;
    left: 30%;
    width: 2100px;
    height: 210px;
    background: linear-gradient(135deg, rgba(24, 220, 255, 0.144), rgba(181, 59, 211, 0.411));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(8deg);
}

body::after {
    top: 120vh;
    left: -80%;
    width: 2010px;
    height: 210px;
    background: linear-gradient(135deg, rgba(0, 68, 255, 0.14), rgba(0, 68, 255, 0.02));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(-18deg);
}

.main-content::before {
    top: 140px;
    right: -80px;
    width: 210px;
    height: 210px;
    background: linear-gradient(135deg, rgba(0, 68, 255, 0.14), rgba(0, 68, 255, 0.02));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(20deg);
}

.slider-wrapper {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.slider-card {
    background-color: #ebdffd;
    border-radius: 40px;
    padding: 40px;
}

.slides-container {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
}

.slide {
    display: none;
    gap: 40px;
    align-items: center;
    opacity: 0;
}

.slide.active {
    display: flex;
}

.slide-left {
    animation: slideFromRight 0.5s ease forwards;
}

.slide-right {
    animation: slideFromLeft 0.5s ease forwards;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-image {
    flex: 1;
}

.slide-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
}

.slide-image img.fit-contain {
    object-fit: contain;
    height: auto;
    max-height: 350px;
}

.slide-text {
    flex: 1;
    color: #4a4a52;
    font-size: 0.95rem;
}

.slide-text p {
    margin-bottom: 15px;
}

.presentation-text {
    font-size: 1.1rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.btn-nav {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-nav svg {
    width: 28px;
    height: 28px;
    stroke: #000;
}

.btn-nav:disabled svg {
    stroke: #bda8c4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    color: #111;
}

.center-title {
    text-align: center;
}

/* NOS COMPÉTENCES */
.section-competences {
    margin: 4rem 0;
}

.comp-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
}

.comp-box {
    flex: 1;
    background-color: #d0fcf4;
    border-radius: 20px;
    padding: 30px;
}

.comp-box ul {
    list-style: none;
}

.comp-box ul li {
    font-size: 1.1rem;
    color: #4a4a52;
    margin-bottom: 5px;
}



/* FORMULAIRE DE CONTACT */
.section-formulaire {
    padding: 4rem 20px;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}



.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 15px 15px 20px;
    background-color: #d8d8d8;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #000;
    caret-color: #000;
    transition: all 0.25s ease;
}

/* Bordures visibles */
.input-cyan {
    box-shadow: inset 6px 0 0 #00f0ff;
}

.input-purple {
    box-shadow: inset 6px 0 0 #a64aff;
}

.input-blue {
    box-shadow: inset 6px 0 0 #0044ff;
}

.input-black {
    box-shadow: inset 6px 0 0 #111;
    height: 150px;
    resize: none;
}



.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateX(4px);
    background-color: #d8d8d8;
}

/* Glow localisé (subtil) */
.input-cyan:focus {
    box-shadow: inset 10px 0 0 #00e5ff, 2px 0 8px rgba(0,229,255,0.3);
}

.input-purple:focus {
    box-shadow: inset 10px 0 0 #9b4dff, 2px 0 8px rgba(155,77,255,0.3);
}

.input-blue:focus {
    box-shadow: inset 10px 0 0 #0033ff, 2px 0 8px rgba(0,51,255,0.3);
}

.input-black:focus {
    box-shadow: inset 10px 0 0 #000, 2px 0 6px rgba(0,0,0,0.2);
}





.rgpd-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: -5px;
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn-envoyer {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 10px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-envoyer:hover {
    background: #000;
    color: #fff;
}



/* FOOTER */
footer {
    background-color: black;
    padding: 4rem 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

footer::before {
    top: -60px;
    left: 55%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(164, 74, 255, 0.22) 0%, rgba(164, 74, 255, 0.05) 58%, transparent 75%);
    border-radius: 50%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-right: 200px;
    display: flex;
    gap: 200px;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.footer-left {
    flex: 2;
}

.footer-logo-box {
    background: rgb(0, 0, 0);
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-box img {
    height: 80px;
}

.footer-left p {
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-right {
    flex: 1;
}

.footer-right h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-right p {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 10px;
}


.hero-container {
    flex-direction: column-reverse; /* logo au-dessus du texte */
    align-items: center;
}
.hero-right {
    width: 100%;
    align-items: center; /* Centre le logo sur mobile */
    text-align: center;
}
.hero-left {
    text-align: center; /* centre le titre et le paragraphe sous le logo */
    padding: 0 1rem;
}
.specialites-box ul {
    text-align: left; /* Garde la liste alignée à gauche */
}
.comp-container {
    flex-direction: column;
}
.footer-container {
    flex-direction: column;
    gap: 40px;
}
.logo-box img {
    max-width: 800px;
    width: 80%;
    height: auto;
}



@media (max-width: 768px) {
    .slide.active {
        flex-direction: column;
        gap: 20px;
    }
    .slide-image img {
        height: 250px;
    }
    .form-row {
        flex-direction: column;
    }
    .slider-card {
        padding: 20px;
    }

    .main-content::after {
    top: 900px;
    right: 0%;
    width: 700px;
    height: 210px;
    background: linear-gradient(135deg, rgba(0, 68, 255, 0.14), rgba(0, 68, 255, 0.02));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(-12deg);
}
.logo-box img {
    width: 100%;
    max-width: 500px;
    height: auto;
}
}

html, body {
    width: 100%;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

p,
.slide-text,
.hero-left p,
.specialites-box p,
.contact-footer-text p,
.footer-left p,
.footer-right p,
.rgpd-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

