/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #6c63ff #e8e6ff;
}

body,
html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f9f8ff;
    color: #333;

}

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

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    width: 90px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #6c63ff;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #8b5cf6;
    transition: 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* BURGER MENU */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #8b5cf6;
    transition: 0.3s;
}

.burger.toggle div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle div:nth-child(2) {
    opacity: 0;
}

.burger.toggle div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f9f8ff 0%, #ecebff 100%);
    padding: 0 1rem;
    margin-top: 60px;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero-content h1 {
    font-size: 3rem;
    color: #7c3aed;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    color: #6c63ff;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #fff;
    padding: 0.9rem 2.3rem;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* CARROUSEL VIDÉO */
.trusted-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.trusted-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.trusted-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.trusted-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OFFRES */
#offers {
    padding: 6rem 2rem;
    background: #faf9ff;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: #7c3aed;
    margin-bottom: 3rem;
    text-align: center;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.offer-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.offer-card h3 {
    color: #6c63ff;
    margin-bottom: 1rem;
}

.offer-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

.offer-card span {
    font-weight: 700;
    color: #7c3aed;
    font-size: 1.2rem;
}

/* RÉALISATIONS */
#projects {
    padding: 6rem 2rem;
    background: #f4f3ff;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

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

.project::after {
    content: "Voir le projet";
    position: absolute;
    inset: 0;
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
    font-weight: 600;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.project:hover::after {
    opacity: 1;
}

/* TECHNOS */
/* TECHNOS */
#stack {
    padding: 6rem 2rem;
    text-align: center;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.tech {
    position: relative;
    display: inline-block;
}

.tech img {
    height: 60px;
    opacity: 0.7;
    transition: 0.3s;
}

.tech:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.tech::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: white;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-in-out;
}

.tech:hover::after {
    opacity: 1;
}



/* TÉMOIGNAGES */
#testimonials {
    background: #faf9ff;
    padding: 6rem 2rem;
    text-align: center;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    font-style: italic;
    color: #555;
}

.testimonial.active {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
}

.testimonial strong {
    display: block;
    margin-top: 1rem;
    color: #7c3aed;
}

/* FAQ */
#faq {
    padding: 6rem 2rem;
    background: #f4f3ff;
}

.faq-item {
    max-width: 800px;
    margin: 1rem auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    color: #6c63ff;
}

.faq-item p {
    display: none;
    margin-top: 0.5rem;
    color: #444;
}

/* CONTACT + CTA */
#contact {
    padding: 6rem 2rem;
    text-align: center;
    background: #faf9ff;
}

form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 0.8rem 1rem;
    border-radius: 15px;
    border: 1px solid #ddd;
    outline: none;
}

button {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
}

.cta-final {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-final button {
    background: #fff;
    color: #7c3aed;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-final a:hover {
    transform: scale(1.05);
}

footer {
    padding: 3rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    text-align: center;
    color: #fff;
    font-family: sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-logo h2 {
    color: #6c63ff;
    margin: 0;
}

.footer-links a,
.footer-socials a {
    color: #1d1d1d;
    text-decoration: none;
    margin: 0 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: #6c63ff;
}

.footer-socials a svg {
    vertical-align: middle;
    fill: currentColor;
    transition: transform 0.3s, color 0.3s;
}

.footer-socials a:hover svg {
    transform: scale(1.2);
    color: #6c63ff;
}

footer p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}



/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: flex;
    }
}

#skills-showcase {
    padding: 6rem 2rem;
    background: #f4f3ff;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.skill-card h3 {
    color: #6c63ff;
    margin-bottom: 1rem;
}

.skill-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 1000;
}

.chat-header {
    background: #6a0dad;
    color: #fff;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.chat-body {
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.message {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
}

.robot {
    background: #eee;
    align-self: flex-start;
}

.user {
    background: #6a0dad;
    color: #fff;
    align-self: flex-end;
}

.options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.options button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #6a0dad;
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.options button:hover {
    background: #4b007f;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-header-minibot {
    margin-bottom: -14px;
    width: 70px;
    height: auto;
}

/* ACCORDION / SERVICES DÉTAILLÉS */
.accordion {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}
.accordion .section-title { display:flex; align-items:center; justify-content:space-between; gap:0.6rem; cursor: pointer; }
.section-toggle-chev { font-size:1.05rem; color:#6c63ff; transition: transform 0.25s ease; }
.accordion-item {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    overflow: hidden;
}
.accordion-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:1rem 1.2rem;
    cursor: pointer;
}
.accordion-header h4 { margin:0; color:#6c63ff; }
.accordion-content {
    max-height:0;
    overflow:hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.2rem;
}
.accordion-content.open {
    padding: 1rem 1.2rem 1.5rem;
}
.chevron {
    width:20px;height:20px;transition:transform 0.3s ease;flex-shrink:0;
}
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-list { list-style:none;padding-left:0;margin:0; }
.accordion-list li { padding:0.4rem 0;color:#444 }

/* container that holds all accordion items so the whole group can be folded */
.accordion-items { overflow: hidden; transition: max-height 0.35s ease; }

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #e8e6ff;      /* un violet très clair pour la track */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #6c63ff;      /* ta couleur */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #857dff;      /* un léger éclaircissement au hover */
}



