/* GLOBAL & UILITIES */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
    /* Colors */
    --light-blue : #30C88F;
    --strong-blue : #2D314D;
    --grey : #9597A5;

    /* Linear Gradient */
    --light-green-blue: linear-gradient(to left, #33D35E, #2AB6D9);

    /* Font */
    --base-font : "Public Sans", sans-serif;

    /* Font-Size */
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-22: 1.375rem;
    --fs-24: 1.5rem;
    --fs-26: 1.625rem;
    --fs-40: 2.5rem;
    --fs-42: 2.625rem;
    --fs-64: 4rem;
    --fs-72: 4.5rem;
}

body{
    font-family: var(--base-font);
}


/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

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

.logo img {
    height: 40px; /* Ajuste selon ton logo */
    width: auto;
}

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

.nav-link {
    color: var(--grey);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--light-blue); /* Vert hover */
}

.cta-button {
    background: var(--light-green-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 800px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* couvre toute la hauteur visible sous le header */
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        justify-content: flex-start;
        background-color: rgba(255, 255, 255, 0.98);
        text-align: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        transition: left 0.3s ease;
        z-index: 1100; /* au-dessus du reste du contenu */
    }

    .nav-menu.active {
        left: 0;
    }

    .burger {
        display: flex;
    }

    .cta-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo img {
        height: 35px;
    }
}


/* ACCUEIL */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    background: linear-gradient(135deg, #1a1e35 0%, #2a2f4f 50%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--strong-blue);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.3rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: inline-block;
    background: var(--light-green-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.5);
}

/* Mockups iPhone */
.hero-mockups {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.mockup {
    max-width: 180px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.mockup:hover {
    transform: translateY(-8px);
}

.mockup-top { align-self: flex-end; }
.mockup-left { align-self: flex-start; }
.mockup-bottom { align-self: flex-end; }
.mockup-right { align-self: flex-start; }

/* Formes décoratives */
.hero-shape {
    position: absolute;
    z-index: 1;
}

.shape-blue {
    top: 10%;
    left: 0;
    width: 300px;
    height: 300px;
    background: url('../img/element_vert_clair.svg') no-repeat center/cover;
    border-radius: 50% 20% 60% 40% / 40% 50% 30% 60%;
    transform: rotate(-15deg);
    opacity: 0.8;
}

.shape-dark {
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #1a1e35;
    border-radius: 40% 60% 20% 80% / 60% 40% 80% 20%;
    opacity: 0.7;
}

/* Features Section */
.features {
    padding: 100px 2rem;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-header {
    position: relative;
    margin-bottom: 3rem;
}

.features-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--strong-blue);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.features-subtitle {
    font-size: 1.2rem;
    color: var(--grey);
    margin-bottom: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-mockup {
    position: absolute;
    top: -50px;
    right: 0;
    max-width: 200px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 170, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1e35;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Articles Section */
.articles {
    padding: 100px 2rem;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.articles-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--strong-blue);
    margin-bottom: 4rem;
    line-height: 1.1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.article-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--strong-blue);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.article-content p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Form Section */
.contact {
    padding: 120px 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f5ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1a1e35 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1rem;
    background: #fafbff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
    background: white;
}

.contact-submit {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.5);
}

.contact-submit:active {
    transform: translateY(0);
}

.error-message {
    position: absolute;
    bottom: -6px;
    left: 0;
    color: #ef4444;
    font-size: 0.8rem;
    display: none;
}

.contact-success {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #10b981;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin-top: 80px;
    }

    .hero-mockups {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .mockup {
        max-width: 140px;
    }

    .hero-shape {
        display: none; /* Masqué mobile pour perf */
    }
    .features {
        padding: 80px 1.5rem;
    }

    .features-mockup {
        position: static;
        max-width: 160px;
        margin: 2rem auto 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }
    .articles {
        padding: 80px 1.5rem;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .article-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 1rem 60px;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    .features-title {
        font-size: 2.2rem;
    }
    .articles-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .contact {
        padding: 80px 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}



/* FOOTER */
.footer {
    background: var(--strong-blue);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

.footer-cta {
    background: var(--light-green-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--light-blue);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link img {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-nav {
        gap: 1.5rem;
        flex-direction: column;
    }

    .social-icons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-logo img {
        height: 30px;
    }
}