Bannière Bootstrap 5 - 300x300 v4

🏷️ Extraits de code HTML 📅 17/04/2026 👤 Mezgani said
Bootstrap Bootstrap5 Banniere 300X300 Animation Html

Dernière variante Bootstrap 5 de bannière 300x300 avec animations fluides et interactions utilisateur.

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bannière MNXDEV - Transformation Digitale</title>
    
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1929 100%);
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
        }

        /* ========== BANNIÈRE ========== */
        .banner {
            width: 300px;
            height: 300px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(19, 68, 132, 0.25),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 25px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(19, 68, 132, 0.4);
        }

        .banner:hover {
            transform: translateY(-8px);
            box-shadow: 
                0 30px 80px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(19, 68, 132, 0.35),
                inset 0 0 30px rgba(255, 255, 255, 0.08);
            border-color: rgba(19, 68, 132, 0.7);
        }

        /* Background dégradé MNXDEV */
        .banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(19, 68, 132, 0.15) 0%,
                rgba(31, 103, 184, 0.15) 50%,
                rgba(19, 68, 132, 0.15) 100%
            );
            animation: gradientShift 8s ease infinite;
            z-index: 0;
        }

        .banner::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                45deg,
                transparent 0%,
                rgba(255, 255, 255, 0.03) 50%,
                transparent 100%
            );
            animation: shimmer 3s ease-in-out infinite;
            z-index: 0;
        }

        @keyframes gradientShift {
            0% {
                background: linear-gradient(135deg, rgba(19, 68, 132, 0.15) 0%, rgba(31, 103, 184, 0.15) 50%, rgba(19, 68, 132, 0.15) 100%);
            }
            50% {
                background: linear-gradient(135deg, rgba(31, 103, 184, 0.2) 0%, rgba(19, 68, 132, 0.15) 50%, rgba(31, 103, 184, 0.2) 100%);
            }
            100% {
                background: linear-gradient(135deg, rgba(19, 68, 132, 0.15) 0%, rgba(31, 103, 184, 0.15) 50%, rgba(19, 68, 132, 0.15) 100%);
            }
        }

        @keyframes shimmer {
            0%, 100% {
                transform: translateX(-100%);
            }
            50% {
                transform: translateX(100%);
            }
        }

        /* Contenu relatif */
        .banner-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            height: 100%;
        }

        /* Logo en haut à droite */
        .banner-logo {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #134484 0%, #1f67b8 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.1rem;
            box-shadow: 0 5px 20px rgba(19, 68, 132, 0.4);
            z-index: 3;
            animation: logoFloat 3s ease-in-out infinite;
        }

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

        /* Icône animée */
        .banner-icon {
            font-size: 3.5rem;
            background: linear-gradient(135deg, #134484 0%, #1f67b8 50%, #0d4799 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: float 3s ease-in-out infinite;
            margin-bottom: 15px;
        }

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

        /* Titre */
        .banner-title {
            color: #1f67b8;
            font-size: 0.7rem;
            font-weight: 700;
            line-height: 1.4;
            text-transform: uppercase;
            letter-spacing: 2px;
            animation: slideInDown 0.8s ease;
            margin: 8px 0;
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Texte principal */
        .banner-text {
            color: rgba(255, 255, 255, 0.95);
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.5;
            animation: fadeInUp 0.8s ease 0.2s both;
            margin: 12px 0;
            background: linear-gradient(135deg, #ffffff 0%, #d0e0f0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Bouton animé */
        .banner-btn {
            background: linear-gradient(135deg, #134484 0%, #1f67b8 100%);
            border: 2px solid transparent;
            color: white;
            padding: 10px 24px;
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            animation: fadeInUp 0.8s ease 0.4s both;
            position: relative;
            overflow: hidden;
            display: inline-block;
            box-shadow: 0 5px 20px rgba(19, 68, 132, 0.4);
        }

        .banner-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
            z-index: -1;
        }

        .banner-btn:hover::before {
            left: 100%;
        }

        .banner-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 35px rgba(19, 68, 132, 0.6);
            border-color: rgba(255, 255, 255, 0.3);
            background: linear-gradient(135deg, #0d4799 0%, #134484 100%);
        }

        /* Badge bottom left */
        .banner-badge {
            position: absolute;
            bottom: 15px;
            left: 15px;
            background: rgba(19, 68, 132, 0.2);
            border: 1px solid rgba(31, 103, 184, 0.4);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            color: #1f67b8;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 3;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 0.6;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
        }

        /* Particules animées */
        .particle {
            position: absolute;
            background: radial-gradient(circle, rgba(19, 68, 132, 0.4) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: 1;
        }

        .particle-1 {
            width: 80px;
            height: 80px;
            top: -40px;
            right: -40px;
            animation: pulse-particle 4s ease-in-out infinite;
        }

        .particle-2 {
            width: 60px;
            height: 60px;
            bottom: -30px;
            right: -30px;
            animation: pulse-particle 5s ease-in-out infinite 1s;
        }

        .particle-3 {
            width: 50px;
            height: 50px;
            top: 50%;
            left: -25px;
            animation: pulse-particle 4.5s ease-in-out infinite 0.5s;
        }

        @keyframes pulse-particle {
            0%, 100% {
                opacity: 0.2;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(1.3);
            }
        }

        /* Cercles décoratifs */
        .banner-circle {
            position: absolute;
            border: 1px solid rgba(19, 68, 132, 0.25);
            border-radius: 50%;
            z-index: 0;
            animation: rotate 20s linear infinite;
        }

        .circle-1 {
            width: 180px;
            height: 180px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .circle-2 {
            width: 140px;
            height: 140px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: rotate 25s linear infinite reverse;
            border-color: rgba(31, 103, 184, 0.25);
        }

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

        /* Ligne animée */
        .banner-line {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(19, 68, 132, 0.5), transparent);
            z-index: 0;
            animation: slideRight 3s ease-in-out infinite;
        }

        .line-1 {
            width: 100px;
            top: 30%;
            left: -100px;
        }

        .line-2 {
            width: 100px;
            bottom: 30%;
            right: -100px;
            animation: slideLeft 3s ease-in-out infinite;
        }

        @keyframes slideRight {
            0%, 100% {
                left: -100px;
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            100% {
                left: 100%;
                opacity: 0;
            }
        }

        @keyframes slideLeft {
            0%, 100% {
                right: -100px;
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            100% {
                right: 100%;
                opacity: 0;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            body {
                padding: 20px;
            }

            .banner {
                width: 280px;
                height: 280px;
                padding: 20px 15px;
            }

            .banner-icon {
                font-size: 2.8rem;
            }

            .banner-title {
                font-size: 0.65rem;
            }

            .banner-text {
                font-size: 0.85rem;
            }

            .banner-logo {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }
    </style>
</head>
<body>
    <!-- BANNIÈRE PRO MNXDEV ANIMÉE -->
    <div class="banner">
        <!-- Cercles décoratifs -->
        <div class="banner-circle circle-1"></div>
        <div class="banner-circle circle-2"></div>

        <!-- Particules -->
        <div class="particle particle-1"></div>
        <div class="particle particle-2"></div>
        <div class="particle particle-3"></div>

        <!-- Lignes animées -->
        <div class="banner-line line-1"></div>
        <div class="banner-line line-2"></div>

        <!-- Logo Top Right MNXDEV -->
        <div class="banner-logo">
            MX
        </div>

        <!-- Badge Bottom Left -->
        <div class="banner-badge">
            <i class="bi bi-lightning-charge-fill me-1"></i>Digital
        </div>

        <!-- Contenu -->
        <div class="banner-content">
            <!-- Icône -->
            <div class="banner-icon">
                <i class="bi bi-rocket-takeoff"></i>
            </div>

            <!-- Titre -->
            <div class="banner-title">
                MNXDEV
            </div>

            <!-- Texte Principal -->
            <div class="banner-text">
                La transformation digitale au cœur de votre métier.
            </div>

            <!-- Bouton -->
            <a href="#" class="banner-btn">
                Découvrir<i class="bi bi-arrow-right ms-2"></i>
            </a>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>