/* === COULEURS PRIMECODE === */
:root {
    --prime-green: #1dbf73;
    --prime-blue: #0077ff;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #1a1a1a;
}

/* ----- HEADER ----- */
.header {
    background: white;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
	box-shadow: 0 2px 20px 0 rgb(0 0 0 / 22%);

    transition:
        padding 0.25s ease;

}
.header.scrolled {
    padding: 10px 20px;
}

.header.scrolled .logo {
    font-size: 1.6rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--prime-green);
	transition:
	font-size 0.25s ease;
}

/* NAV desktop */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover {
    color: var(--prime-blue);
}

/* ----- HERO ----- */
#vanta-bg {
    height: 500px;
	background:url('../img/bg_home.png');
	background-position: 60% 50%;
	position:relative;
}

/* Overlay noir qui disparaît */
#vanta-bg::after {
    content: "";
    position: absolute;
    inset: 0;
	height: 500px;
    background: #171717; /* ton noir */
    animation: fadeOutOverlay 10s ease forwards;
    pointer-events: none; /* Pour ne pas bloquer les clics */
}

/* Animation d'opacité */
@keyframes fadeOutOverlay {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.2;
    }
}

.hero {
	position:relative;
    text-align: center;
    max-width: 800px;
	height:100%;
    margin: 0 auto;
    padding: 40px;
	display: flex;
    flex-direction: column;
    justify-content: center;
	z-index:2;
}

.hero h1 {
    font-size: 3rem;
    color: var(--prime-green);
    margin-bottom: 20px;
    text-shadow: 1px 0 black;
}

.hero p {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 60px;
    text-shadow: 1px 0 black;
}

.cta {
    cursor: pointer;
    position: relative;
    overflow: hidden;
	text-decoration:none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    color: white;

    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: bold;

    text-shadow: 1px 0px 3px rgba(0, 0, 0, 0.5);

    box-shadow: 
        0 0 12px rgba(29, 191, 115, 0.2),
        0 0 18px rgba(0, 119, 255, 0.15);

    transition: 
        transform 0.2s ease,
        box-shadow 0.3s ease;

    animation: pulse 2.4s infinite ease-in-out;
}

/* Overlay pour hover */
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

/* Hover */
.cta:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 18px rgba(29, 191, 115, 0.5),
        0 0 30px rgba(0, 119, 255, 0.4);
}

.cta:hover::before {
    opacity: 1;
}

/* Pulse doux */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 12px rgba(29, 191, 115, 0.25),
            0 0 18px rgba(0, 119, 255, 0.15);
    }
    50% {
        transform: scale(1.01);
        box-shadow:
            0 0 18px rgba(29, 191, 115, 0.35),
            0 0 28px rgba(0, 119, 255, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 12px rgba(29, 191, 115, 0.25),
            0 0 18px rgba(0, 119, 255, 0.15);
    }
}

/* ----- BURGER MENU ----- */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* ANIMATION BURGER */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.burger.active span{
	background:#ffffff;
}

/* ===== MENU MOBILE FULLSCREEN ===== */
@media (max-width: 800px) {

    .nav {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: 0.4s ease;
    }

    .nav a {
        color: white;
        font-size: 2rem;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .burger {
        display: flex;
        z-index: 1000;
    }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* === GRADIENT TEXTE PRIME-CODE === */
.gradient-text {
    background: linear-gradient(170deg, var(--prime-green) 20%, var(--prime-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	width: 50px;
	height: 1.2em;
}

/* === CV CONTAINER === */
#CVcontainer {
    width: 100%;
    background-image: url(../img/zigzag.jpg);
}

#CV {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
    padding: 2em 4em;
}

.titleCv {
	margin:0 auto;
    width: 90%;
    text-align: center;
    font-size: 2.5em;
	position: relative;
    display: inline-block;
	padding-bottom: 16px;
    margin-bottom: 16px;
}

.titleCv::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
	background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: width 1.0s ease-out;
}

.titleCv.visible::after {
    width: 100%;
}

.cvCard {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1em;
    width: 22.8%;
}

#CV h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5em;
}

.cvTable {
    width: 100%;
    border-collapse: collapse;
	margin-top:10px;
}

.cvTable tr {
    height: 38px; /* hauteur uniforme clean */
}

.cvTable td {
    border: none;
    padding: 6px 4px;
}

.cvIcon {
    width: 36px;              /* colonne fixe pour aligner toutes les icônes */
    text-align: left;
}

.cvIcon i {
    font-size: 1.2em;
}

.cvText {
    text-align: left;
    font-size: 16px;
    color: #333;
}


@media (max-width: 1300px) {
    #CV {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .cvCard {
        width: 100%;
    }
}

/* ===== ANIMATIONS AU SCROLL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* STAT */

/* ===== STATS CORPORATE ===== */

.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 90px 40px;
	padding-bottom:20px;
    background: #f8f9fb;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat i {
    font-size: 1.8rem;
    color: var(--prime-blue);
    margin-bottom: 6px;
}

.stat .number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .label {
    font-size: 0.95rem;
    color: #555;
}

/* Responsive */
@media (max-width: 800px) {
    .stats {
        flex-direction: column;
        gap: 40px;
    }
}

/* Text corporate */

.corporate-text {
	text-align: center;
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 80px 40px;
	background:#f8f9fb;
}

.corporate-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.corporate-text p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.corporate-dark {
    position: relative;
    background: url("../img/bg-dark-corporate.jpg") center / cover fixed no-repeat;
    padding: 100px 40px;
    color: #ffffff;
}

/* léger overlay pour lisibilité */
.corporate-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.corporate-dark-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.corporate-dark h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.corporate-dark p {
    font-size: 1.5rem;
    line-height: 1.9;
    color: #eaeaea;
    margin-bottom: 18px;
}

/* ===== ANIMATION CORPORATE DARK ===== */

.corporate-dark-content {
    opacity: 0;
    transform: translateY(10px);
    transition: 
        opacity 0.8s ease 0.2s,
        transform 0.8s ease 0.2s;
}

.corporate-dark.reveal.visible .corporate-dark-content {
    opacity: 1;
    transform: translateY(0);
}


.corporate-dark.reveal {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(20px);
    transition:
        opacity 1s ease,
        filter 1.2s ease,
        transform 1s ease;
}

.corporate-dark.reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}




/* PROCESS */

.process {
    background: #ffffff;
    padding: 80px 40px;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.step {
    width: 22%;
}

.step span {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--prime-blue);
}

.step p {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}

/* Contact */

/* ===== CONTACT SECTION ===== */

.contact-section {
    background: linear-gradient(180deg, #0f0f0f, #151515);
    padding: 120px 40px;
    color: #fff;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtitle {
    color: #bdbdbd;
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* ===== FORM ===== */

.contact-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 14px 10px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--prime-green);
}

.contact-form textarea {
    resize: none;
    margin-bottom: 30px;
}

/* Bouton = CTA existant */
.contact-form .cta {
    width: 100%;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
}


/* Footer */

/* ===== FOOTER ===== */

.footer {
    background: #0b0b0b;
    color: #cfcfcf;
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--prime-green);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #9e9e9e;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-nav a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--prime-blue);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}


/* ===== PROCESS HORIZONTAL ===== */

.process-horizontal {
    padding: 100px 40px;
    text-align: center;
    background: #ffffff;
}

.process-horizontal h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.process-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    width: 18%;
}

.step-number {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-step p {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* ===== FLÈCHES ===== */

.arrow {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--prime-green), var(--prime-blue));
    position: relative;
    margin: 0 10px;
}

.arrow::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--prime-blue);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .process-line {
        flex-direction: column;
        gap: 30px;
    }

    .arrow {
        width: 2px;
        height: 30px;
        margin: 0;
        background: linear-gradient(180deg, var(--prime-green), var(--prime-blue));
    }

    .arrow::after {
        right: 50%;
        top: auto;
        bottom: -6px;
        transform: translateX(50%);
        border-left: none;
        border-top: 8px solid var(--prime-blue);
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
    }

    .process-step {
        width: 100%;
    }
}


/* ===== CTA FORMULAIRE : FLAT (sans relief) ===== */

.contact-form .cta {
    box-shadow: none !important;
    border: none;
    outline: none;
    transform: none;
}

.contact-form .cta:hover,
.contact-form .cta:active,
.contact-form .cta:focus {
    box-shadow: none;
    transform: none;
}

/* ===== TESTIMONIALS ===== */

.testimonials {
    padding: 100px 40px;
    background: #f8f9fb;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: left;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.testimonial-author {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .testimonials-grid {
        flex-direction: column;
    }
}


/* ===== PROJECTS SHOWCASE ===== */

.projects.showcase {
    padding: 110px 40px;
    background: #ffffff;
    text-align: center;
}

.projects.showcase h2 {
    font-size: 2.2rem;
    margin-bottom: 70px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 360px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.85)
    );
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
}

/* Hover effects */
.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 300px;
    }
}


/*****/

.captcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.contact-alert{margin:15px 0;padding:12px 14px;border-radius:8px;font-size:14px}
.contact-alert-success{background:#0f2a16;border:1px solid #1f7a38}
.contact-alert-error{background:#2a0f0f;border:1px solid #7a1f1f}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}