body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 120px; /* Compenser le header fixe */
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%, center; }
    100% { background-position: 100% 100%, 0% 0%, 60% 40%, center; }
}

/* Particules flottantes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particlesFloat 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particlesFloat {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-200px) translateX(100px); }
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(46, 82, 152, 0.3); }
    100% { box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(118, 75, 162, 0.4); }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 40px;
    min-width: 100%;
}

.header-content img {
    height: 60px;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0,0,0,0.4)) brightness(1.1) contrast(1.2);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.header-content img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(16, 185, 129, 0.4)) brightness(1.2) contrast(1.3);
    background: rgba(255, 255, 255, 0.15);
}



nav {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    min-height: 60px;
    width: 100%;
}

/* Menu mobile avec organisation verticale si nécessaire */
@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap !important;
        justify-content: center;
        align-items: center;
        gap: 4px;
        min-height: auto;
        padding: 5px 0;
    }
}

nav ul li {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 24px;
    box-sizing: border-box;
    animation: menuItemFloat 6s ease-in-out infinite;
}

nav ul li:nth-child(1) a { animation-delay: 0s; }
nav ul li:nth-child(2) a { animation-delay: 0.5s; }
nav ul li:nth-child(3) a { animation-delay: 1s; }
nav ul li:nth-child(4) a { animation-delay: 1.5s; }
nav ul li:nth-child(5) a { animation-delay: 2s; }

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

nav ul li a span {
    font-size: 16px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

nav ul li a:hover span {
    filter: grayscale(0);
    transform: scale(1.1);
}

nav ul li a.active {
    background-color: #45a049;
    border: 2px solid #45a049;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul li a.active span {
    filter: grayscale(0);
    animation: pulse 2s infinite;
}

/* Sélecteur de langue */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    background: none;
    border: 2px solid transparent;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    min-height: 24px;
    box-sizing: border-box;
    vertical-align: middle;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.language-btn span {
    font-size: 16px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.language-btn:hover span {
    filter: grayscale(0);
    transform: scale(1.1);
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(30, 60, 114, 0.95);
    border-radius: 15px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.language-option.active {
    background: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

/* Support RTL pour l'arabe */
.lang-ar {
    direction: rtl;
    text-align: right;
}

.lang-ar .header-content {
    flex-direction: row-reverse;
}

.lang-ar nav ul {
    flex-direction: row-reverse;
}

/* Support LTR pour le français - forcer l'alignement sur une ligne */
.lang-fr nav ul {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.lang-fr nav ul li {
    display: flex;
    align-items: center;
}

.lang-ar .language-options {
    right: auto;
    left: 0;
}

.lang-ar .language-option:hover {
    transform: translateX(-5px);
}

/* Styles pour les pages admin */
.admin-actions {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

/* Tableaux admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* Styles pour les liens téléphone et email dans l'admin */
.phone-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #059669;
    transform: scale(1.05);
}

.admin-table a[href^="mailto:"] {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-table a[href^="mailto:"]:hover {
    color: #2563eb;
    text-decoration: underline;
}

.no-phone {
    color: #9ca3af;
    font-style: italic;
}

/* Amélioration de l'affichage des messages longs */
.admin-table td:nth-child(4) {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Style spécial pour le champ téléphone */
input[type="tel"] {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 18px;
    padding-left: 50px;
}

input[type="tel"]:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

/* Style pour RTL (arabe) */
.lang-ar input[type="tel"] {
    background-position: calc(100% - 15px) center;
    padding-left: 20px;
    padding-right: 50px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Menu hamburger pour mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Responsive menu */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Réduction de l'espace */
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 15px 20px;
        min-width: auto;
    }
    
    .header-content img {
        height: 45px;
        max-width: 180px;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #764ba2 100%);
        padding: 80px 20px 20px;
        border-radius: 0;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav.mobile-menu-open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0;
        min-height: auto;
        width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    nav.mobile-menu-open ul {
        opacity: 1;
        transform: translateY(0);
    }
    
    nav ul li {
        width: 100%;
        flex-shrink: 0;
    }
    
    nav ul li a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px 20px;
        font-size: 16px;
        min-height: auto;
        white-space: nowrap;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.1);
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    nav ul li a.active {
        background: rgba(69, 160, 73, 0.3);
        border-left: 4px solid #45a049;
    }
    
    nav ul li a span {
        font-size: 18px;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .language-selector {
        width: 100%;
        margin-top: 20px;
    }
    
    .language-dropdown {
        width: 100%;
    }
    
    .language-btn {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px 20px;
        font-size: 16px;
        min-height: auto;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .language-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .language-btn span {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .language-options {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        margin-top: 10px;
        min-width: auto;
        width: 100%;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        display: none;
    }
    
    .language-options.show {
        display: block;
    }
    
    .language-option {
        padding: 12px 20px;
        border-radius: 8px;
        margin: 5px 0;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .language-option:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(3px);
    }
    
    /* Overlay pour fermer le menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 15px;
    }
    
    .header-content img {
        height: 40px;
        max-width: 160px;
    }
    
    nav {
        width: 260px;
        padding: 70px 15px 15px;
    }
    
    nav ul li a {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .language-btn {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Responsive pour écrans très étroits */
@media (max-width: 360px) {
    nav {
        width: 240px;
    }
    
    nav ul li a {
        padding: 10px 12px;
        font-size: 14px;
        gap: 12px;
    }
    
    .language-btn {
        padding: 10px 12px;
        font-size: 14px;
        gap: 12px;
    }
    
    nav ul li a span,
    .language-btn span {
        font-size: 16px;
    }
}

h1 {
    margin: 0;
}

h2 {
    color: #35424a;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

form {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1), 
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    margin: 30px 0;
    position: relative;
    animation: formSlideIn 0.8s ease-out;
    transform-origin: center;
}

@keyframes formSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    border-radius: 20px 20px 0 0;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    box-sizing: border-box;
    position: relative;
    animation: inputSlideIn 0.6s ease-out backwards;
}

input[type="text"]:nth-of-type(1) { animation-delay: 0.1s; }
input[type="email"]:nth-of-type(1) { animation-delay: 0.2s; }
input[type="tel"]:nth-of-type(1) { animation-delay: 0.3s; }
textarea:nth-of-type(1) { animation-delay: 0.4s; }

@keyframes inputSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.15),
        0 8px 25px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-3px) scale(1.02);
    animation: inputPulse 0.3s ease-out;
}

@keyframes inputPulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    animation: buttonPulse 2s ease-in-out infinite alternate;
}

button::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;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 5px 15px rgba(118, 75, 162, 0.2);
    background-position: 100% 0%;
    animation: none;
}

button:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes buttonPulse {
    0% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2); }
    100% { box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3); }
}

/* Animations supplémentaires pour la validation de formulaire */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

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

/* Animations pour les éléments qui apparaissent au scroll */
.fade-in {
    animation: fadeInScale 0.8s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Particules de souris */
.mouse-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #667eea, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: mouseParticle 1s ease-out forwards;
}

@keyframes mouseParticle {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.5s ease-out;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

/* Animation de pulsation pour les éléments importants */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Effet de lueur pour les cartes et conteneurs */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent 30%
    );
    animation: rotateGlow 4s linear infinite;
    z-index: -1;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

button:active {
    transform: translateY(0);
}

/* Footer principal */
.main-footer {
    background: #1e3a8a;
    color: #ffffff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

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

.footer-section h3 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

/* Section Contact */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
}

.contact-icon {
    font-size: 1.1em;
    margin-right: 10px;
    color: #3b82f6;
}

.contact-link {
    color: #3b82f6;
    text-decoration: underline;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1em;
}

.contact-link:hover {
    color: #60a5fa;
    text-decoration: none;
}

.contact-text {
    color: #ffffff;
    font-size: 1.1em;
}

/* Section Liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

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

.footer-links a {
    color: #ffffff;
    text-decoration: underline;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    font-size: 1.1em;
    font-weight: 400;
}

.footer-links a:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* Section Réseaux sociaux */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #e5e7eb;
    backdrop-filter: blur(10px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}


.company-info {
    text-align: center;
    margin-top: 20px;
    background: none;
}

.company-info p {
    margin: 8px 0;
    font-size: 1.1em;
    color: #333333;
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 800px) {
  .company-info {
    background: rgba(30, 60, 114, 0.92);
    border-radius: 16px;
    padding: 18px 15px;
    margin-top: 20px;
  }
  .company-info p {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 0 #222;
    font-weight: 500;
    font-size: 1.08em;
    letter-spacing: 0.01em;
  }
}.company-info strong {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 15px;
    color: #ffffff;
    opacity: 0.9;
}

.footer-tagline {
    font-style: italic;
    font-size: 14px !important;
    color: #3b82f6;
    font-weight: 500;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3em;
        margin-bottom: 25px;
    }
    
    .contact-item {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Styles pour les tableaux admin */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #35424a;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background-color: #f5f5f5;
}

table tr:last-child td {
    border-bottom: none;
}

/* Styles pour les sections admin */
section {
    background: #ffffff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Messages de succès et d'erreur */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.error-message p {
    margin: 5px 0;
}

/* Styles pour la page d'accueil */
.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 300% 300%;
    border-radius: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    animation: heroGradientShift 8s ease-in-out infinite alternate, heroFloat 6s ease-in-out infinite;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

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

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    color: #ffffff;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: titleBounce 2s ease-out 0.5s both;
    position: relative;
}

@keyframes titleBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4em;
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.content-left, .content-right {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-left:hover, .content-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 3px 15px rgba(0, 0, 0, 0.1);
}

.intro-text {
    margin-bottom: 30px;
}

.intro-text p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.services-list h3 {
    color: #35424a;
    border-bottom: 2px solid #35424a;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.services-list ul {
    margin: 20px 0;
    padding-left: 0;
}

.services-list li {
    list-style: none;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #35424a;
    border-radius: 5px;
}

.quality-assurance {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin-top: 20px;
}

.company-info, .regional-presence {
    margin-bottom: 30px;
}

.company-info h3, .regional-presence h3 {
    color: #35424a;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #35424a;
}

.regional-presence {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* Carrousel d'images */
.image-carousel {
    margin: 50px 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.image-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
    z-index: 10;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 60, 114, 0.8);
    color: white;
    border: none;
    padding: 18px 22px;
    font-size: 26px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-btn:hover {
    background: rgba(30, 60, 114, 0.95);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: #35424a;
    transform: scale(1.2);
}

/* Animation de fondu */
.carousel-slide {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Effets généraux */
* {
    box-sizing: border-box;
}

/* Scroll bar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Animation d'apparition pour les éléments */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Styles pour les pages admin */
.admin-only {
    opacity: 0.7;
    font-size: 0.9em;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Page de login admin */
body.admin-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.admin-login main {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.admin-login form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-login h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Styles pour la page À propos */
.hero-about {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 25px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

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

.hero-about h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

.company-tagline {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.company-intro, .mission-vision, .partnerships, .expertise, .contact-cta {
    margin-bottom: 40px;
}

.company-intro h2, .mission-vision h2, .partnerships h2, .expertise h2, .contact-cta h2 {
    color: #1e3c72;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.values {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #1e3c72;
    margin-top: 20px;
}

.values h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.values ul {
    list-style: none;
    padding: 0;
}

.values li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.values li:last-child {
    border-bottom: none;
}

.operators-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.operator-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.operator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.operator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.operator-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expertise-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.expertise-item h4 {
    color: #1e3c72;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.contact-cta h2 {
    color: white;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive pour la page À propos */
@media (max-width: 768px) {
    .hero-about h1 {
        font-size: 2.5em;
    }
    
    .operators-grid {
        grid-template-columns: 1fr;
    }
    
    .operator-card {
        padding: 20px;
    }
    
    .company-tagline {
        font-size: 1.1em;
    }
}

/* Services spécialisés */
.services-specialized {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.services-section-title {
    text-align: center;
    color: #1e3c72;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

.services-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: #1e3c72;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

.service-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

/* Section Maintenance */
.maintenance-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 60px 0;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.maintenance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

.maintenance-content {
    max-width: 1200px;
    margin: 0 auto;
}

.maintenance-content h2 {
    text-align: center;
    color: #1e3c72;
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.maintenance-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.maintenance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left-color: #764ba2;
}

.maintenance-item h4 {
    color: #1e3c72;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}



/* Styles pour la page de contact */
.contact {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.contact h1 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.contact > p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: normal;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

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

.form-group input::placeholder {
    color: #999;
    font-style: italic;
}

form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

form button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Section informations de contact */
.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-info p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 14px;
    line-height: 1.4;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Alertes */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact {
        padding: 1rem;
    }
    
    .contact h1 {
        font-size: 1.5rem;
    }
}

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

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Section Témoignages */
.testimonials-section {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    color: #1e3c72;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid #667eea;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4em;
    color: #667eea;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.stars {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.testimonial-author {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    text-align: left;
}

.testimonial-author strong {
    display: block;
    color: #1e3c72;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9em;
}

/* Section CTA */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    margin: 80px 0 60px;
    border-radius: 25px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::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 100 100"><defs><pattern id="cta-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    opacity: 0.3;
}

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

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

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

.cta-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #ffffff;
}

.cta-btn.secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Animations améliorées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-element:nth-child(1) { animation-delay: 0.1s; }
.fade-in-element:nth-child(2) { animation-delay: 0.2s; }
.fade-in-element:nth-child(3) { animation-delay: 0.3s; }

/* Responsive pour mobile */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero h2 {
        font-size: 1.1em;
    }
    
    .content-left, .content-right {
        padding: 20px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    /* Services responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        margin: 0 10px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .services-section-title {
        font-size: 1.8em;
    }
    
    .maintenance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .maintenance-section {
        padding: 40px 15px;
        margin: 40px 0;
    }
    
    /* Responsive témoignages */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    /* Responsive CTA */
    .cta-section {
        padding: 50px 15px;
        margin: 50px 0 40px;
    }
    
    .cta-content h2 {
        font-size: 2em;
    }
    
    .cta-content p {
        font-size: 1.1em;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
}