/* HAMS maj17 — styles des pages intérieures repris de l'ancien gabarit « digital » (en-tête et pied ne sont plus utilisés). */

        :root {
            --primary-color: #263371;
            --secondary-color: #ea5a2a;
            --accent-color: #ff8c5a;
            --dark-color: #1a1f40;
            --light-bg: #f8f9fc;
            --gradient-primary: linear-gradient(135deg, #263371, #1a1f40);
            --gradient-secondary: linear-gradient(135deg, #ea5a2a, #ff8c5a);
            --gradient-tech: linear-gradient(135deg, #263371, #764ba2);
            --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
            --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
            --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
            --shadow-hover: 0 30px 50px rgba(234,90,42,0.2);
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            color: #333;
            overflow-x: hidden;
        }
        
        /* ===== MENU MODERNE DIGITAL ===== */
        .navbar-digital {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 0;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            border-bottom: 1px solid rgba(38,51,113,0.05);
        }
        
        .navbar-digital.scrolled {
            padding: 0.5rem 0;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: var(--shadow-md);
        }
        
        /* Logo moderne digital */
        .navbar-brand-digital {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
        }
        
        .logo-wrapper {
            position: relative;
            width: 150px;
            height: 60px;
        }
        
        .logo-icon {
            width: 100%;
            height: 100%;
            background: var(--gradient-tech);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 2;
            box-shadow: var(--shadow-md);
            transform: rotate(0deg);
            transition: transform 0.3s;
        }
        
        .navbar-brand-digital:hover .logo-icon {
            transform: rotate(5deg) scale(1.05);
        }
        
        .logo-icon i {
            font-size: 2rem;
            color: white;
        }
        
        .logo-ring {
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            border: 2px solid var(--secondary-color);
            border-radius: 18px;
            animation: pulse 2s infinite;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .navbar-brand-digital:hover .logo-ring {
            opacity: 1;
        }
        
        .logo-text {
            display: flex;
            flex-direction: column;
        }
        
        .logo-main {
            font-size: 1.4rem;
            font-weight: 800;
            background: var(--gradient-tech);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }
        
        .logo-main span {
            background: var(--gradient-secondary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .logo-sub {
            font-size: 0.7rem;
            color: #6c757d;
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        
        /* Navigation links */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .nav-item-digital {
            position: relative;
        }
        
        .nav-link-digital {
            padding: 0.6rem 1.2rem !important;
            color: #333 !important;
            font-weight: 500;
            border-radius: 50px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .nav-link-digital::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 100%;
            height: 100%;
            background: rgba(102,126,234,0.1);
            border-radius: 50px;
            transition: transform 0.3s;
            z-index: -1;
        }
        
        .nav-link-digital:hover::before,
        .nav-link-digital.active::before {
            transform: translate(-50%, -50%) scale(1);
        }
        
        .nav-link-digital:hover,
        .nav-link-digital.active {
            color: var(--primary-color) !important;
        }
        
        .nav-indicator {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background: var(--secondary-color);
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s;
        }
        
        .nav-link-digital.active .nav-indicator {
            opacity: 1;
            bottom: 5px;
        }
        
        /* Bouton devis moderne digital */
        .btn-devis-digital {
            background: var(--gradient-tech);
            color: white !important;
            border-radius: 50px;
            padding: 0.6rem 1.8rem !important;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            z-index: 1;
            margin-left: 0.5rem;
        }
        
        .btn-devis-digital::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--gradient-secondary);
            transition: left 0.3s;
            z-index: -1;
        }
        
        .btn-devis-digital:hover::before {
            left: 0;
        }
        
        .btn-devis-digital i {
            margin-right: 0.5rem;
            transition: transform 0.3s;
        }
        
        .btn-devis-digital:hover i {
            transform: translateX(3px);
        }
        
        /* Menu mobile */
        .navbar-toggler-digital {
            border: none;
            padding: 0.5rem;
            background: rgba(102,126,234,0.1);
            border-radius: 12px;
        }
        
        .navbar-toggler-digital:focus {
            box-shadow: none;
        }
        
        .hamburger {
            width: 30px;
            height: 20px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .hamburger span {
            display: block;
            height: 2px;
            background: var(--primary-color);
            border-radius: 2px;
            transition: all 0.3s;
        }
        
        .navbar-toggler-digital[aria-expanded="true"] .hamburger span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }
        
        .navbar-toggler-digital[aria-expanded="true"] .hamburger span:nth-child(2) {
            opacity: 0;
        }
        
        .navbar-toggler-digital[aria-expanded="true"] .hamburger span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }
        
        /* ===== FOOTER MODERNE DIGITAL ===== */
        .footer-digital {
            background: linear-gradient(135deg, #1a1f40, #263371);
            color: white;
            position: relative;
            overflow: hidden;
            padding: 5rem 0 2rem;
        }
        
        /* Éléments décoratifs du footer */
        .footer-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
        }
        
        .footer-wave {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.02" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
            background-repeat: no-repeat;
            background-position: bottom;
            background-size: cover;
            opacity: 0.1;
            pointer-events: none;
        }
        
        .footer-bubble {
            position: absolute;
            width: 300px;
            height: 300px;
            background: var(--gradient-tech);
            border-radius: 50%;
            bottom: -150px;
            right: -100px;
            opacity: 0.1;
            filter: blur(50px);
        }
        
        /* Logo dans le footer */
        .footer-logo-digital {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .footer-logo-icon {
            width: 60px;
            height: 60px;
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
        }
        
        .footer-logo-icon i {
            font-size: 2rem;
            color: var(--secondary-color);
        }
        
        .footer-logo-text {
            display: flex;
            flex-direction: column;
        }
        
        .footer-logo-main {
            font-size: 1.5rem;
            font-weight: 800;
            color: white;
            line-height: 1.2;
        }
        
        .footer-logo-main span {
            color: var(--secondary-color);
        }
        
        .footer-logo-sub {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.6);
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        
        /* Description footer */
        .footer-description {
            color: rgba(255,255,255,0.8);
            margin-bottom: 2rem;
            line-height: 1.8;
        }
        
        /* Réseaux sociaux */
        .social-links-digital {
            display: flex;
            gap: 0.8rem;
        }
        
        .social-link-digital {
            width: 45px;
            height: 45px;
            background: rgba(255,255,255,0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.2);
        }
        
        .social-link-digital::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 100%;
            height: 100%;
            background: var(--gradient-tech);
            transition: transform 0.3s;
            z-index: 0;
        }
        
        .social-link-digital:hover::before {
            transform: translate(-50%, -50%) scale(1);
        }
        
        .social-link-digital i {
            position: relative;
            z-index: 1;
            font-size: 1.2rem;
            transition: transform 0.3s;
        }
        
        .social-link-digital:hover {
            transform: translateY(-5px);
        }
        
        .social-link-digital:hover i {
            transform: scale(1.2);
        }
        
        /* Titres des colonnes */
        .footer-title {
            color: white;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 1rem;
        }
        
        .footer-title::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--gradient-tech);
            border-radius: 3px;
        }
        
        .footer-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 45px;
            width: 10px;
            height: 3px;
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
        }
        
        /* Liens du footer */
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: 1rem;
        }
        
        .footer-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
            position: relative;
            padding-left: 0;
        }
        
        .footer-links a i {
            font-size: 0.8rem;
            color: var(--secondary-color);
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }
        
        .footer-links a:hover i {
            opacity: 1;
            transform: translateX(0);
        }
        
        /* Contact info */
        .contact-info-digital {
            margin-top: 1rem;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 0.8rem;
            background: rgba(255,255,255,0.05);
            border-radius: 12px;
            transition: all 0.3s;
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        .contact-item:hover {
            background: rgba(255,255,255,0.1);
            transform: translateX(5px);
            border-color: rgba(102,126,234,0.3);
        }
        
        .contact-icon {
            width: 40px;
            height: 40px;
            background: var(--gradient-tech);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .contact-icon i {
            font-size: 1rem;
            color: white;
        }
        
        .contact-text {
            flex: 1;
        }
        
        .contact-text .label {
            display: block;
            font-size: 0.7rem;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .contact-text .value {
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
        }
        
        /* Newsletter */
        .newsletter-digital {
            background: rgba(255,255,255,0.05);
            border-radius: 20px;
            padding: 1.5rem;
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
        }
        
        .newsletter-title {
            color: white;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .newsletter-text {
            color: rgba(255,255,255,0.6);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .newsletter-form {
            position: relative;
        }
        
        .newsletter-input {
            width: 100%;
            padding: 1rem 1.2rem;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50px;
            color: white;
            font-size: 0.9rem;
            transition: all 0.3s;
        }
        
        .newsletter-input::placeholder {
            color: rgba(255,255,255,0.5);
        }
        
        .newsletter-input:focus {
            outline: none;
            border-color: var(--secondary-color);
            background: rgba(255,255,255,0.15);
            box-shadow: 0 0 20px rgba(102,126,234,0.3);
        }
        
        .newsletter-btn {
            position: absolute;
            top: 50%;
            right: 5px;
            transform: translateY(-50%);
            width: 45px;
            height: 45px;
            background: var(--gradient-tech);
            border: none;
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .newsletter-btn:hover {
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 0 20px var(--secondary-color);
        }
        
        .newsletter-btn i {
            transition: transform 0.3s;
        }
        
        .newsletter-btn:hover i {
            transform: rotate(45deg);
        }
        
        /* Badges de services */
        .service-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .service-badge {
            padding: 0.4rem 1rem;
            background: rgba(255,255,255,0.1);
            border-radius: 50px;
            color: white;
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s;
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        .service-badge:hover {
            background: var(--gradient-tech);
            transform: translateY(-2px);
            border-color: transparent;
        }
        
        /* Copyright */
        .copyright-digital {
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .copyright-text {
            color: rgba(255,255,255,0.6);
            font-size: 0.9rem;
        }
        
        .copyright-links {
            display: flex;
            gap: 2rem;
        }
        
        .copyright-links a {
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }
        
        .copyright-links a:hover {
            color: var(--secondary-color);
        }
        
        /* Bouton retour en haut */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--gradient-tech);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 1000;
            border: none;
        }
        
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            color: white;
        }
        
        .back-to-top i {
            transition: transform 0.3s;
        }
        
        .back-to-top:hover i {
            transform: translateY(-3px);
        }
        
        /* Loader */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s;
        }
        
        .loader.fade-out {
            opacity: 0;
            pointer-events: none;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Animations */
        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.5; }
            70% { transform: scale(1.1); opacity: 0; }
            100% { transform: scale(1); opacity: 0; }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        /* Responsive */
        @media (max-width: 991px) {
            .navbar-collapse {
                background: white;
                padding: 1rem;
                border-radius: 20px;
                margin-top: 1rem;
                box-shadow: var(--shadow-lg);
            }
            
            .nav-links {
                flex-direction: column;
                width: 100%;
            }
            
            .nav-link-digital {
                width: 100%;
                text-align: center;
            }
            
            .btn-devis-digital {
                margin-left: 0;
                width: 100%;
                text-align: center;
            }
            
            .copyright-digital {
                flex-direction: column;
                text-align: center;
            }
            
            .copyright-links {
                justify-content: center;
            }
        }
    