:root {
    --primary-color: #9ACD32;
    --primary-dark: #7CB31E;
    --secondary-color: #4ECDC4;
    --text-color: #2F3542;
    --heading-color: #2F3640;
    --bg-light: #F7F1E3;
    --bg-white: #FFFFFF;
    --bg-dark: #2F3542;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--heading-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(247, 241, 227, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo .tech {
    color: var(--secondary-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
}

.nav-links li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links li a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

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

.hamburger.toggle .line:nth-child(2) {
    opacity: 0;
}

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

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(154, 205, 50, 0.4);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(154, 205, 50, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 15px;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--secondary-color);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-bg {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    animation: blob 10s infinite alternate;
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(154, 205, 50, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.floating-card span {
    font-weight: 600;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 60%;
    right: 70%;
    animation-delay: 4s;
}

/* Services Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Projects Section */
.bg-light {
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card:hover .abstract-shape {
    transform: scale(1.2) rotate(45deg);
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.abstract-shape {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: rotate 10s infinite linear;
}

.project-info {
    padding: 20px;
    background: white;
}

.project-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Formations Section */
.formations {
    background-color: var(--bg-light);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.formation-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.formation-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.formation-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.formation-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.formation-card>p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.formation-details {
    margin-bottom: 25px;
    padding: 0;
}

.formation-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.formation-details i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.btn-formation {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
    font-family: inherit;
}

.btn-formation:not(:disabled):hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-formation:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}


/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stats li {
    text-align: center;
}

.stats .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact Section */
.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

.bg-dark h2,
.bg-dark p {
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details {
    margin: 40px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.detail-item i {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(154, 205, 50, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

footer {
    background-color: #222;
    color: #888;
    padding: 30px 0;
    text-align: center;
}

/* Modal WhatsApp */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 20px;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
}

.modal-content p {
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
    margin: 0;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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


/* Animations Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes blob {
    0% {
        transform: scale(1);
        border-radius: 50%;
    }

    50% {
        transform: scale(1.1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        transform: scale(1);
        border-radius: 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active,
.hero .active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {

    /* Navigation mobile */
    .navbar .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        padding: 20px;
        gap: 20px;
    }

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

    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Sections padding */
    .section-padding {
        padding: 60px 0;
    }

    /* Hero section mobile */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-visual {
        height: 300px;
    }

    .circle-bg {
        width: 280px;
        height: 280px;
    }

    /* Section headers mobile */
    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Projects grid mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Formations grid mobile */
    .formations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About section mobile */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-image img {
        height: 350px;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Contact section mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Petits écrans - Optimisation spéciale */
@media (max-width: 650px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Logo mobile */
    .logo {
        font-size: 1.4rem;
    }

    /* Navbar */
    .navbar {
        padding: 12px 0;
    }

    .navbar .nav-links {
        width: 85%;
        gap: 15px;
    }

    .navbar .nav-links li a {
        font-size: 1.1rem;
    }

    /* Sections padding */
    .section-padding {
        padding: 50px 0;
    }

    /* Hero section */
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        height: 250px;
    }

    .circle-bg {
        width: 200px;
        height: 200px;
    }

    .card-1,
    .card-2,
    .card-3 {
        padding: 12px;
        font-size: 0.75rem;
        margin: 5px;
    }

    .floating-card i {
        font-size: 1rem;
        padding: 8px;
    }

    .floating-card span {
        font-size: 0.75rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .section-header h2::after {
        width: 50px;
        height: 3px;
    }

    /* Service cards */
    .service-card {
        padding: 25px 18px;
    }

    .icon-box {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Project cards */
    .project-image {
        height: 200px;
    }

    .abstract-shape {
        width: 80px;
        height: 80px;
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    /* Formation cards */
    .formation-card {
        padding: 20px 15px;
    }

    .formation-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 15px;
        right: 15px;
    }

    .formation-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .formation-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .formation-card>p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .formation-details {
        margin-bottom: 20px;
    }

    .formation-details li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .btn-formation {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* About section */
    .about-image img {
        height: 250px;
    }

    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .stats .number {
        font-size: 1.8rem;
    }

    .stats .label {
        font-size: 0.9rem;
    }

    /* Contact section */
    .contact-wrapper {
        gap: 30px;
    }

    .contact-info h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .contact-details {
        margin: 25px 0;
    }

    .detail-item {
        font-size: 0.95rem;
        margin-bottom: 15px;
        justify-content: center;
    }

    .detail-item i {
        font-size: 1rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 25px 18px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Modal */
    .modal-content {
        padding: 25px 18px;
        max-width: 92%;
    }

    .modal-close {
        font-size: 1.5rem;
        top: 12px;
        right: 15px;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-buttons .btn-primary,
    .modal-buttons .btn-secondary {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 25px 0;
        font-size: 0.85rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .hero-visual {
        height: 200px;
    }

    .circle-bg {
        width: 180px;
        height: 180px;
    }

    .about-image img {
        height: 220px;
    }
}