/* Variables */
        :root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --accent: #e74c3c;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --text: #333;
            --shadow: 0 2px 4px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }

        /* Base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 70px;
        }

        body {
            color: var(--text);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        section {
            padding: 60px 0;
        }

        h1, h2, h3 {
            margin-bottom: 20px;
            color: var(--primary);
        }

        h2 {
            font-size: 1.8rem;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }

        h2:after {
            content: '';
            position: absolute;
            width: 60px;
            height: 3px;
            background: var(--accent);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }

        p {
            margin-bottom: 15px;
        }

        a {
            text-decoration: none;
            color: var(--secondary);
            transition: var(--transition);
        }

        a:hover {
            color: var(--accent);
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background: var(--secondary);
            color: white;
            border-radius: 4px;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow);
        }

        .btn:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-2px);
        }

        .btn-accent {
            background: var(--accent);
        }

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

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: var(--shadow);
            z-index: 1000;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--primary);
        }

        .logo span {
            color: var(--accent);
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 20px;
        }

        .nav-links a {
            color: var(--dark);
            font-weight: 600;
        }

        .hamburger {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 1002;
            position: relative;
            background: white;
            padding: 8px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        /* Hero section */
		/*
		#hero {
			position: relative;
			height: 100vh;
			display: flex;
			align-items: center;
			background: url('/cecure-hero.webp') no-repeat center center/cover;
			color: white;
			text-align: center;
		}*/
		
		#hero {
			position: relative;
			height: 100vh;
			display: flex;
			align-items: center;
			color: white;
			text-align: center;
			overflow: hidden; /* Empêche le flou de déborder */
		}

		/* Nouvel élément pour l'image de fond avec flou */
		#hero::after {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: url('/cecure-hero.webp') no-repeat center center/cover;
			filter: blur(5px); /* Ajout de l'effet de flou */
			z-index: 0; /* Sous le film alpha */
			transform: scale(1.1); /* Évite les bords blancs causés par le flou */
		}

		#hero::before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(22, 50, 79, 0.45); /* Film noir */
			z-index: 1; /* Pour s'assurer que le film est entre l'arrière-plan et le contenu */
		}

		.hero-content {
			max-width: 800px;
			margin: 0 auto;
			position: relative;
			z-index: 2; /* Pour placer le contenu au-dessus du film */
		}

        .hero-content h1 {
            font-size: 2.5rem;
            color: white;
            margin-bottom: .4rem;
			text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        /* Services section */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .service-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .service-image {
            height: 180px;
            overflow: hidden;
        }

        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .service-content {
            padding: 20px;
        }

        .service-icon {
            color: var(--accent);
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .service-features {
            list-style: none;
            margin: 15px 0;
        }

        .service-features li {
            padding: 5px 0;
            display: flex;
            align-items: center;
        }

        .service-features li i {
            color: #2ecc71;
            margin-right: 10px;
            font-size: 0.9rem;
        }

        /* Coverage section */
        #coverage {
            background: var(--light);
        }

        .cities-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .city-item {
            background: white;
            padding: 8px 15px;
            border-radius: 20px;
            box-shadow: var(--shadow);
            font-weight: 600;
            transition: var(--transition);
        }

        .city-item:hover {
            background: var(--accent);
            color: white;
        }

        /* Why us section */
        #why-us {
            background: var(--primary);
            color: white;
        }

        #why-us h2 {
            color: white;
        }

        #why-us h2:after {
            background: white;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 30px;
        }

        .benefit-item {
            text-align: center;
            padding: 25px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            transition: var(--transition);
        }

        .benefit-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--accent);
        }

        .benefit-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: white;
        }

        /* CTA section */
        #cta {
            background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/api/placeholder/1920/1080') no-repeat center center/cover;
            text-align: center;
            color: white;
        }

        #cta h2 {
            color: white;
        }

        .cta-content {
            max-width: 700px;
            margin: 0 auto;
        }

        /* Clients slider */
        #clients {
            padding: 50px 0;
            background: white;
        }
        
        .clients-slider-container {
            position: relative;
            max-width: 100%;
            margin: 0 auto;
            overflow: hidden;
        }
        
        .clients-slider {
            width: 100%;
            overflow: hidden;
            position: relative;
            margin: 30px 0;
            padding: 0 10px;
        }
        
        .clients-track {
            display: flex;
            animation: scroll 15s linear infinite;
            width: calc(200px * 12); /* Width of each logo * number of logos */
        }
        
        .clients-track:hover,
        .clients-slider-container:hover .clients-track {
            animation-play-state: paused;
        }
        
        .client-item {
            flex: 0 0 auto;
            width: 200px;
            height: 80px;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }
        
        .client-item:hover {
            transform: scale(1.1);
        }
        
        .client-item img {
            max-width: 100%;
            max-height: 100%;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: all 0.3s ease;
        }
        
        .client-item:hover img {
            filter: grayscale(0);
            opacity: 1;
        }
        
        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-200px * 8)); /* Half of the total width (for seamless loop) */
            }
        }
        
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: background 0.3s ease;
        }
        
        .slider-arrow:hover {
            background: var(--accent);
        }
        
        .prev-arrow {
            left: 10px;
        }
        
        .next-arrow {
            right: 10px;
        }
        
        @media (max-width: 768px) {
            .slider-arrow {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }
        }

        /* Contact section */
        #contact {
            background: var(--light);
        }

        .contact-wrapper {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .contact-info-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .contact-icon {
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .contact-hours {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
        }

        .hours-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .day-hours {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px dashed #ddd;
        }

        .day {
            font-weight: 600;
        }

        .contact-form {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: var(--shadow);
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .form-control {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }

        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 40px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-logo {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--accent);
            margin-bottom: 15px;
        }

        .footer-links h4 {
            color: white;
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #bbb;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            color: #aaa;
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }

            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100%;
                background: white;
                flex-direction: column;
                align-items: flex-start;
                padding: 80px 30px 30px;
                transition: var(--transition);
                z-index: 999;
                box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            }

            .nav-links.active {
                right: 0;
            }

            .nav-links li {
                margin: 0 0 15px 0;
                width: 100%;
                border-bottom: 1px solid rgba(0,0,0,0.1);
            }
            
            .nav-links a {
                display: block;
                padding: 10px 0;
            }

            .hero-content h1 {
                font-size: 1.8rem;
            }

            .hero-buttons {
                flex-direction: column;
                gap: 15px;
            }
        }

        @media (max-width: 576px) {
            section {
                padding: 40px 0;
            }

            h2 {
                font-size: 1.5rem;
            }

            .service-card, .benefit-item {
                padding: 15px;
            }
        }
		
.hero-content h1 {
    line-height: 1.4;
}

.typing-container {
    display: block;
    text-align: center;
    margin: 0 0 1em 0;
    min-height: 50px; /* Hauteur minimale pour éviter les sauts de mise en page */
    position: relative;
}

.typing-text {
    position: relative;
    display: inline-block;
    text-align: center;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.text-options {
    position: relative;
    display: inline-block;
}

.text-option {
    display: none;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out forwards;
    color: var(--accent);
    font-weight: 700;
    font-size: 2.2rem; /* Taille légèrement plus grande pour mettre en valeur */
}

.text-option.active {
    display: inline-block;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 768px) {
	.text-option {
		font-size: 1.7rem;
	}
	.hero-content h1 {
		line-height: 1.3;
	}
}




/* ============================================
   MESSAGES DU FORMULAIRE - STYLES MODERNES
   ============================================ */

/* Messages de base */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    display: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animation d'apparition */
.form-message.show {
    animation: slideInUp 0.4s ease-out;
}

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

/* Message de succès */
.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    border-left: 6px solid #28a745;
}

.form-message.success::before {
    content: "✅";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Message d'erreur */
.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    border-left: 6px solid #dc3545;
}

.form-message.error::before {
    content: "❌";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Message d'information */
.form-message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
    border-left: 6px solid #17a2b8;
}

.form-message.info::before {
    content: "ℹ️";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Message d'avertissement */
.form-message.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #ffc107;
    border-left: 6px solid #ffc107;
}

.form-message.warning::before {
    content: "⚠️";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Effet de brillance pour succès */
.form-message.success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s ease-in-out;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* États de chargement */
.form-message.loading {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #495057;
    border: 2px solid #6c757d;
    border-left: 6px solid #6c757d;
}

.form-message.loading::before {
    content: "⏳";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Validation en temps réel des champs */
.form-control.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Messages inline pour champs spécifiques */
.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

/* Icônes de validation dans les champs */
.form-group {
    position: relative;
}

.form-group.has-success::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
    pointer-events: none;
}

.form-group.has-error::after {
    content: "✗";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Bouton avec états de chargement */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.btn.loading::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Messages adaptatifs mobile */
@media (max-width: 768px) {
    .form-message {
        padding: 12px 16px;
        font-size: 0.9rem;
        margin-top: 15px;
        border-radius: 6px;
    }
    
    .form-message::before {
        font-size: 1rem;
        margin-right: 8px;
    }
    
    .field-error {
        font-size: 0.8rem;
    }
}

/* Animation de fermeture */
.form-message.hide {
    animation: slideOutDown 0.3s ease-in;
}

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

/* Message de confirmation spécial pour mailto */
.form-message.mailto {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
    border: 2px solid #2196f3;
    border-left: 6px solid #2196f3;
}

.form-message.mailto::before {
    content: "📧";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Style pour les conseils/aide */
.form-message.tip {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
    border: 2px solid #9c27b0;
    border-left: 6px solid #9c27b0;
}

.form-message.tip::before {
    content: "💡";
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* ============================================
   STYLES POUR LA CARTE LEAFLET
   ============================================ */

.map-container {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.map-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #0056b3, #007bff);
    border-radius: 17px;
    z-index: -1;
    opacity: 0.1;
}

#grand-est-map {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#grand-est-map:hover {
    box-shadow: 0 6px 20px rgba(0,123,255,0.2);
}

/* Styles pour les popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Arial', sans-serif;
}

.leaflet-popup-tip {
    background: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Animation pour les curseurs */
.cursor-icon {
    animation: cursorBounce 1.5s ease-in-out infinite;
}

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

/* Style pour le cercle de couverture */
.leaflet-interactive {
    cursor: pointer;
}

/* Animation au survol des curseurs */
.cursor-icon:hover {
    animation: cursorPulse 0.6s ease-in-out;
}

@keyframes cursorPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive pour la carte */
@media (max-width: 768px) {
    .map-container {
        margin: 20px 0;
        padding: 15px;
    }
    
    #grand-est-map {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .map-container {
        padding: 10px;
    }
    
    #grand-est-map {
        height: 250px !important;
    }
}
