@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');     
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
        padding: 0;
    /* overflow-x: hidden; */
}


.header-container {
/* position: relative; */
z-index: 50;
/* padding-top: -25px; */
}


.hero-section {
    background-image: linear-gradient(rgba(29, 24, 50, 0.5), rgba(29, 24, 50, 0.5)), url('/assets/images/pexels-mikhail-nilov-7534804\ 1.png');
    background-size: cover;
    background-position: center;
    height: 895px;
    margin-top: -235px; /* Ajouter un padding en bas */
    /* width: 100%; */
    
    
}

.hero-content {
    margin-top: 6rem;
}

.portfolio-button {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    height: 85px;
    border-radius: 9999px;
}

.portfolio-button span {
    font-size: 1.5rem;
    padding: 0 1rem;
    align-items: center;

}

.icon-container {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 0;
}

.portfolio-button svg {
    height: 1rem;
    width: 1rem;
    display: block;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 35px;
    z-index: 50;
}


@media (max-width: 1024px) {

    .hero-content {
        margin-left: 5% !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    

    .hero-content {
        margin-left: 0 !important;
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        text-align: center;
    }
    
    .portfolio-button {
        height: 70px;
        margin: 2rem auto;
    }
    
    .icon-container {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
 
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .portfolio-button {
        height: 60px;
    }
    
    .icon-container {
        width: 40px;
        height: 40px;
    }
}


  /* section we secure the way */ 
  .bg-white.rounded-section {
    position: relative;
    z-index: 10;
    border-radius: 100px;
    margin-top: -100px;
    width: 100%;
    max-width: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.secure-section {
    padding: 2.5rem;
}

.secure-section h2 {
    margin-bottom: 1rem;
    color: #454F9D;
}

.secure-section p {
    margin-bottom: 2rem;
    color: #5A9BD4;
}

/* Conteneur principal */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Image et rectangle bleu */
.image-container {
    position: relative;
    height: auto;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.blue-rectangle {
    top:30px;
    position: absolute;
    background-color: #1D1832;
    border-radius: 70px;
    z-index: 1;
    width: 518px;
    height: 511px;
    transform: translate(40px, -40px);
}

.image-container img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 500px;
    border-radius: 0.75rem;
}

/* Keypoints */
.keypoints-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.keypoint {
    display: flex;
    align-items: center;
    background-color: #454F9D;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    color: white;
    width: 100%;
    max-width: 580px;
    transition: all 0.3s ease;
}

.keypoint-first {
    margin-left: 0;
    align-self: flex-start;
}

.keypoint-middle {
    align-self: center;
}

.keypoint-last {
    margin-right: 0;
    align-self: flex-end;
}

.keypoint-icon {
    background-color: #5A9BD4;
    border-radius: 9999px;
    padding: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keypoint-icon img {
    width: 3rem;
    height: 3rem;
}

.keypoint p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: white;
}

/* Media Queries */
@media (max-width: 1280px) {
    .blue-rectangle {
        width: 450px;
        height: 500px;
        transform: translate(30px, -30px);
    }
    
    .keypoint {
        max-width: 520px;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .blue-rectangle {
        width: 400px;
        height: 450px;
        transform: translate(20px, -20px);
    }
    
    .keypoints-container {
        margin-top: 2rem;
        margin-left: 0;
    }
    
    .keypoint {
        align-self: center !important;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .keypoint-icon {
        padding: 0.75rem;
    }
    
    .keypoint-icon img {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 768px) {
    .bg-white.rounded-section {
        border-radius: 50px;
    }
    
    .secure-section {
        padding: 2rem 1.5rem;
    }
    
    .secure-section h2 {
        font-size: 1.75rem;
    }
    
    .secure-section p {
        font-size: 1rem;
    }
    
    .image-container {
        padding: 1rem 0;
        max-height: 400px;
        margin: 0 auto;
        width: 90%;
    }
    
    .blue-rectangle {
        width: 300px;
        height: 350px;
        transform: translate(15px, -15px);
    }
    
    .keypoint {
        padding: 0.75rem 1.25rem;
        max-width: 95%;
    }
    
    .keypoint-icon {
        padding: 0.5rem;
    }
    
    .keypoint-icon img {
        width: 2rem;
        height: 2rem;
    }
    
    .keypoint p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .bg-white.rounded-section {
        border-radius: 30px;
        margin-top: -150px;
    }
    
    .secure-section {
        padding: 1.5rem 1rem;
    }
    
    .secure-section h2 {
        font-size: 1.5rem;
    }
    
    .image-container {
        max-height: 300px;
    }
    
    .blue-rectangle {
        width: 220px;
        height: 270px;
        transform: translate(10px, -10px);
        border-radius: 40px;
    }
    
    .keypoint {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .keypoint-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .keypoint p {
        font-size: 0.8rem;
    }
}

/* animation hero section et we secure  */


.blue-rectangle {
opacity: 0;
animation: floatIn 1.2s forwards ease-out;
animation-delay: 0.3s;
}

.image-container img {
opacity: 0;
animation: slideIn 1s forwards ease-out;
animation-delay: 0.5s;
}

        @keyframes floatIn {
0% {
    transform: translate(80px, -80px) rotate(5deg);
    opacity: 0;
}
100% {
    transform: translate(40px, -40px) rotate(0deg);
    opacity: 1;
}
}

@keyframes slideIn {
0% {
    transform: translateY(100px);
    opacity: 0;
}
100% {
    transform: translateY(0);
    opacity: 1;
}
}



/* Pour les écrans plus petits */
@media (max-width: 768px) {
@keyframes floatIn {
    0% {
    transform: translate(40px, -40px) rotate(5deg);
    opacity: 0;
    }
    100% {
    transform: translate(15px, -15px) rotate(0deg);
    opacity: 1;
    }
}
}
