/* ============================================
   KUROSI COMPANY - FEUILLE DE STYLE PRINCIPALE
   ============================================ */

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

:root {
    --primary-color: #00BFFF; /* Deep Sky Blue, pour correspondre au bleu électrique du logo */
    --secondary-color: #1E90FF; /* Dodger Blue, pour un contraste harmonieux */
    --accent-color: #fbbc04;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-dark: #202124;
    --text-light: #5f6368;
    --border-color: #dadce0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5a96 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(251, 188, 4, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5a96 50%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 188, 4, 0.3);
}

/* ============================================
   CAROUSEL CIRCULAIRE
   ============================================ */

.carousel-section {
    padding: 0;
    background-color: var(--light-bg);
    text-align: center;
    margin: 0;
}

.carousel-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding: 2rem 2rem 0 2rem;
}

.carousel-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.circular-carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block; /* Pour empiler les éléments */
    /* align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem; */
}

.carousel-item {
    position: absolute; /* Empilement */
    top: 0;
    left: 0;
    transform: translate(0, 0);
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: none;
    transition: var(--transition);
    cursor: pointer;
    animation: slideOneByOne 20s linear infinite; /* Animation pour 4 images (5s par image * 4 images) */
    flex-shrink: 0;
    opacity: 0; /* Caché par défaut */
    z-index: 10; /* Premier plan */
}

.carousel-item:nth-child(1) {
    animation-delay: 0s;
}

.carousel-item:nth-child(2) {
    animation-delay: -5s;
}

.carousel-item:nth-child(3) {
    animation-delay: -10s;
}

.carousel-item:nth-child(4) {
    animation-delay: -15s;
}



.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.carousel-item:hover {
    transform: translate(0, 0) scale(1);
    box-shadow: none;
}

.carousel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 191, 255, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.carousel-center img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

@keyframes slideOneByOne {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% {
        opacity: 1;
        transform: translate(0, 0);
    }
    20% {
        opacity: 1;
        transform: translate(0, 0);
    }
    25% {
        opacity: 0;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 4rem 2rem;
    background-color: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
}

/* ============================================
   STEPS SECTION
   ============================================ */

.steps {
    padding: 4rem 2rem;
    background-color: white;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5a96 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.contact-item span {
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .circular-carousel {
        width: 100%;
        height: 650px;
    }

    .carousel-item {
        width: 550px;
        height: 550px;
    }

    @keyframes slideOneByOne {
        0% {
            opacity: 0;
            transform: translate(-100%, -50%);
        }
        2.5% {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
        12.5% {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
        15% {
            opacity: 0;
            transform: translate(0%, -50%);
        }
        100% {
            opacity: 0;
            transform: translate(-100%, -50%);
        }
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .circular-carousel {
        width: 100%;
        height: 500px;
    }

    .carousel-item {
        width: 400px;
        height: 400px;
    }

    @keyframes slideOneByOne {
        0% {
            opacity: 0;
            transform: translate(-100%, -50%);
        }
        2.5% {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
        12.5% {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
        15% {
            opacity: 0;
            transform: translate(0%, -50%);
        }
        100% {
            opacity: 0;
            transform: translate(-100%, -50%);
        }
    }
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    order: -1;
    position: relative;
    background-image: url('img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 800px 800px;
    background-attachment: fixed;
}

.form-group {
    margin-bottom: 0;
}

.form-group:nth-child(n+5) {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: white;
    color: var(--text-dark);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    grid-column: 1 / -1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

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

.form-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    grid-column: 1 / -1;
}

/* Responsive contact container */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
        order: -1;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}
