@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #003f88;
    --navy-light: #00509d;
    --navy-dark: #00296b;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --accent: #60a5fa;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
         */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-menu a:hover {
    background-color: var(--navy);
    color: var(--white);
    border-radius: 8px;
}

.btn-contact {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 17, 216, 0.3);
}

/* Hero */
.hero {
    margin-top: 0 auto;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-shape {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--navy-light) 100%
    );
    top: 10%;
    right: 20%;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    top: 50%;
    right: 10%;
    border-radius: 50%;
    animation-delay: 1s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(
        135deg,
        var(--navy-light) 0%,
        var(--accent) 100%
    );
    bottom: 20%;
    right: 40%;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
    top: 30%;
    right: 60%;
    border-radius: 50%;
    animation-delay: 3s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats */
.stats {
    padding: 4rem 0;
    background: var(--white);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-600);
}

/* Solutions */
.solutions {
    padding: 6rem 0;
    background: var(--gray-50);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--navy);
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-shape {
    width: 60px;
    height: 60px;
    background: var(--navy);
    transition: all 0.3s;
}

.solution-card:hover .icon-shape {
    transform: scale(1.1) rotate(10deg);
    background: var(--navy-light);
}

.hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}
.diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.pentagon {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.octagon {
    clip-path: polygon(
        30% 0%,
        70% 0%,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0% 70%,
        0% 30%
    );
}
.star {
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}
.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.square {
    clip-path: none;
}
.circle {
    border-radius: 50%;
}
.rounded-square {
    border-radius: 15px;
}
.cross {
    clip-path: polygon(
        40% 0%,
        60% 0%,
        60% 40%,
        100% 40%,
        100% 60%,
        60% 60%,
        60% 100%,
        40% 100%,
        40% 60%,
        0% 60%,
        0% 40%,
        40% 40%
    );
}

.solution-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.solution-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Clients */
.clients {
    padding: 4rem 0;
    background: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--gray-50);
    transition: all 0.3s;
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

/* CTA */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content {
    color: var(--white);
}

.link-btn {
    text-decoration: none;
    padding: 15px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--navy);
}

.cta-visual {
    position: relative;
    height: 300px;
}

.floating-element {
    position: absolute;
    border-radius: 20px;
    animation: float 5s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    top: 10%;
    right: 20%;
}

.element-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    bottom: 20%;
    right: 50%;
    border-radius: 50%;
    animation-delay: 1.5s;
}

.element-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 3s;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

/* Responsive */
/* À partir de 1025px : 3 colonnes */
@media (min-width: 1025px) {
    .solutions-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (max-width: 1024px) {
    .hero .container,
    .cta .container {
        grid-template-columns: 1fr;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .nav-menu {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }
}

/* De 577px à 1024px : 2 colonnes */
@media (min-width: 577px) and (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* du plus petit jusqu'à 576px 1colonne */
@media (max-width: 576px) {
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1rem;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .btn-contact {
        background: var(--navy);
        color: var(--white);
        border: none;
        padding: 0.5rem 0.5rem;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 200px) and (max-width: 359px) and (orientation: portrait) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        color: var(--gray-600);
        margin-bottom: 2rem;
        max-width: 90%;
    }
}

/* Ajoutez cette animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modifiez la règle .icon-shape */
.icon-shape {
    width: 60px;
    height: 60px;
    background: var(--navy);
    animation: spin 8s linear infinite; /* 8s pour une rotation lente */
}

.solution-card:hover .icon-shape {
    transform: scale(1.1);
    background: var(--navy-light);
    animation: spin 4s linear infinite; /* Accélère au survol */
}

/* ========================================
   PARTENAIRES
   ======================================== */

.partenaires-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.partenaires-title h3 {
    color: #000000;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 2rem;
}

.logo-carousel {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.logo-item {
    min-width: 25%; /* 4 logos par défaut */
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-item img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    /* border: 1px solid black; */
}

.logo-item img:hover {
    opacity: 1;
}

/* 3 logos sur tablettes */
@media (max-width: 992px) {
    .logo-item {
        min-width: 33.333%;
    }
}

/* 2 logos sur petites tablettes */
@media (max-width: 768px) {
    .logo-item {
        min-width: 50%;
    }
}

/* 1 logo sur mobile */
@media (max-width: 576px) {
    .logo-item {
        min-width: 100%;
    }
    .partenaires-title h3 {
        color: #000000;
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        padding-bottom: 2rem;
    }
}
