/* Page d'accueil moderne - Design premium */

/* Hero Section Moderne */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 60%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 90%; animation-delay: 5s; }
.particle:nth-child(7) { top: 40%; left: 30%; animation-delay: 6s; }
.particle:nth-child(8) { top: 90%; left: 40%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title-line {
    display: block;
}

.hero-title .highlight {
    color: #ffd166;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #3498db;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-hero {
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-primary-hero {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.btn-primary-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.05);
    color: white;
    text-decoration: none;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.hero-visual {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.45), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(0, 184, 148, 0.35), transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(231, 76, 60, 0.28), transparent 45%),
        linear-gradient(140deg, #0b1630 0%, #0f3460 45%, #1f6feb 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-glow {
    position: absolute;
    inset: 18% 24%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    filter: blur(1px);
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    animation: spinRing 14s linear infinite;
}

.hero-ring.ring-1 {
    width: 290px;
    height: 290px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-ring.ring-2 {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 255, 255, 0.18);
    animation-direction: reverse;
    animation-duration: 18s;
}

.hero-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(11, 18, 32, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-center-badge i {
    color: #ffd166;
}

.hero-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.88rem;
    animation: floatNode 4.5s ease-in-out infinite;
}

.hero-node i {
    color: #ffd166;
}

.node-security {
    top: 70px;
    left: 56px;
}

.node-hospitality {
    right: 44px;
    top: 160px;
    animation-delay: 0.8s;
}

.node-food {
    left: 100px;
    bottom: 84px;
    animation-delay: 1.4s;
}

@keyframes spinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 10px;
    border-radius: 2px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #34495e;
}

.service-features li i {
    color: #27ae60;
    font-size: 0.9rem;
}

.service-btn {
    display: inline-block;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Témoignages Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i {
    color: #ffd700;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.author-info span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid rgba(31, 111, 235, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1f6feb;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1rem;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.contact-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6feb, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 18px rgba(31, 111, 235, 0.28);
}

.contact-link-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.35);
}

.contact-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(31, 111, 235, 0.25);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cta-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 40px 30px;
    border-radius: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cta-card:hover::before {
    opacity: 1;
}

.cta-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-card p {
    margin: 0 0 25px 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

/* Carrousel des entites */
.entities-carousel {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 56px 42px;
}

.entities-carousel .carousel-item {
    padding: 4px 0;
}

.entity-carousel-card {
    display: grid;
    grid-template-columns: 44% 56%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 52, 96, 0.15);
}

.entity-carousel-media {
    position: relative;
    min-height: 330px;
}

.entity-carousel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.entity-carousel-body {
    padding: 28px 30px;
}

.entities-carousel .carousel-control-prev,
.entities-carousel .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(15, 52, 96, 0.8);
}

.entities-carousel .carousel-control-prev {
    left: 4px;
}

.entities-carousel .carousel-control-next {
    right: 4px;
}

.entities-carousel .carousel-indicators {
    bottom: -6px;
}

.entities-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }

    .entities-carousel {
        padding: 0 20px 38px;
    }

    .entity-carousel-card {
        grid-template-columns: 1fr;
    }

    .entity-carousel-media {
        min-height: 240px;
    }

    .entity-carousel-body {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .entities-carousel {
        padding: 0 12px 34px;
    }

    .entities-carousel .carousel-control-prev,
    .entities-carousel .carousel-control-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-hero {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}

/* Optimisations mobiles supplémentaires */
@media (max-width: 768px) {
    .hero-particles {
        display: none;
    }

    .hero-section {
        align-items: flex-start;
        padding-top: calc(118px + env(safe-area-inset-top));
    }

    .hero-content {
        width: 100%;
    }

    .hero-visual {
        height: 420px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    }

    .service-card:hover,
    .testimonial-card:hover,
    .entity-card:hover,
    .btn-primary-hero:hover,
    .btn-secondary-hero:hover {
        transform: none;
    }

    .hero-section {
        min-height: 100dvh;
        padding-top: calc(118px + env(safe-area-inset-top));
        padding-bottom: 28px;
    }

    .hero-container {
        gap: 26px;
        padding: 0 14px;
    }

    .hero-badge {
        margin-bottom: 1.25rem;
        text-align: left;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.95rem, 8vw, 2.7rem);
        line-height: 1.2;
        margin-bottom: 1.2rem;
        color: #ffffff;
        text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    .hero-title .highlight {
        background: none;
        -webkit-text-fill-color: #ffd166;
        color: #ffd166;
        text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.6rem;
    }

    .hero-ring.ring-2 {
        width: 320px;
        height: 320px;
    }

    .hero-node {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .node-security {
        top: 54px;
        left: 26px;
    }

    .node-hospitality {
        right: 20px;
        top: 138px;
    }

    .node-food {
        left: 50px;
        bottom: 56px;
    }

    .floating-card {
        width: 100%;
        max-width: 260px;
        padding: 14px 16px;
    }

    .hero-cta {
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    .service-card,
    .testimonial-card,
    .contact-item,
    .entity-carousel-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: calc(106px + env(safe-area-inset-top));
    }

    .hero-title {
        font-size: clamp(1.7rem, 8.4vw, 2.2rem);
    }

    .hero-visual {
        height: 320px;
    }

    .hero-ring.ring-1 {
        width: 220px;
        height: 220px;
    }

    .hero-ring.ring-2 {
        width: 280px;
        height: 280px;
    }

    .hero-node {
        display: none;
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }

    .hero-stat .stat-label {
        font-size: 0.85rem;
    }

    .entity-carousel-media {
        min-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .floating-card,
    .scroll-indicator {
        animation: none !important;
    }

    .service-card,
    .testimonial-card,
    .entity-card,
    .btn-hero {
        transition: none !important;
    }
}
