:root {
    /* Palette 2 de palette-couleur.webp - Turquoise/Orange/Noir */
    --primary-color: #17A2B8;        /* Turquoise/Teal - Couleur principale */
    --primary-dark: #0E7A8A;         /* Teal foncé */
    --primary-light: #5DADE2;        /* Bleu clair lumineux */
    --secondary-color: #FFA500;      /* Orange vif - Accent énergique */
    --secondary-dark: #FF6B35;       /* Orange corail */
    --background-color: #1C1C1C;     /* Noir charbon profond */
    --background-gradient: linear-gradient(135deg, #1C1C1C 0%, #17A2B8 100%);
    --font-color: #2C3E50;           /* Gris foncé pour texte */
    --accent-color: #FFA500;         /* Orange pour les CTA */
    --white: #ffffff;
    --light-gray: #f0f4f8;
    --light-teal: #E0F7FA;           /* Teal très clair pour backgrounds */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-gradient);
    color: var(--font-color);
    margin: 0;
    padding-bottom: 60px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

/* En-tête */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #130220;
    padding: 30px 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerGlow 15s linear infinite;
}

@keyframes headerGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-weight: 600;
    margin: 15px 0 5px;
    animation: fadeInDown 0.8s ease;
}

header h2 {
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInDown 1s ease;
}

.logo {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    animation: fadeInDown 0.6s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

nav.scrolled {
    padding: 10px 15px;
    background: rgba(27, 179, 116, 0.95);
    backdrop-filter: blur(15px);
}

.nav-menu {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    position: absolute;
    top: 60px;
    right: 10px;
    width: 220px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    color: #0e0104;
    text-decoration: none;
    padding: 15px 20px;
    transition: all var(--transition-normal);
    display: block;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-menu a::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 var(--transition-slow);
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    background-color: var(--secondary-color);
    padding-left: 30px;
    color: var(--white);
}

/* Section des services */
.services-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e0e7ef 100%);
    text-align: center;
    position: relative;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.service-overview {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.service-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 179, 116, 0.1), transparent);
    transition: left var(--transition-slow);
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.service-item p {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.8;
}

.service-item .button {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all var(--transition-normal);
    display: inline-block;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-item .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.service-item .button:hover::before {
    width: 300px;
    height: 300px;
}

.service-item .button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (min-width: 768px) {
    .service-overview {
        flex-direction: row;
        justify-content: center;
    }

    .service-item {
        flex: 1;
        margin: 0 10px;
    }
}

/* Menu hamburger */
.menu-icon {
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    display: block;
    transition: all var(--transition-normal);
    padding: 5px;
    border-radius: 8px;
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.menu-icon:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    nav {
        justify-content: center;
    }

    .menu-icon {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: blanchedalmond;
        width: auto;
    }

    .nav-menu a {
        padding: 10px 20px;
        transition: background-color 0.3s ease;
    }
}

/* Héros */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #0a0101;
    text-align: center;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero .content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Boutons */
.button {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--transition-normal);
    display: inline-block;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #ffed4e);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.button:hover::before {
    opacity: 1;
}

.button:hover::after {
    width: 300px;
    height: 300px;
}

.button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: #333;
    border-color: var(--accent-color);
}

.button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Boutons flottants */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-button {
    padding: 14px 20px;
    font-size: 15px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.contact-button:active {
    transform: translateY(-2px) scale(1.05);
}

.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.signal {
    background: linear-gradient(135deg, #3A76F0, #2C5BB5);
}

.signal:hover {
    background: linear-gradient(135deg, #2C5BB5, #3A76F0);
}

.call {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.call:hover {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
}


/* Style pour la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 10% auto;
    padding: 35px;
    border-radius: 20px;
    width: 85%;
    max-width: 550px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.4s ease;
    border: 2px solid rgba(27, 179, 116, 0.2);
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-normal);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 179, 116, 0.1);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
    background: rgba(0, 0, 0, 0.05);
}

.close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
}


/* Pied de page */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #080004;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: footerShine 3s infinite;
}

@keyframes footerShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

footer p {
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Animations globales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effets de scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet ripple pour les boutons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Effet de parallaxe */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Amélioration responsive mobile */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        right: 10px;
        gap: 10px;
    }

    .contact-button {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 100px;
    }

    .service-item {
        padding: 20px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .logo {
        width: 200px;
    }

    .modal-content {
        width: 90%;
        padding: 25px;
    }
}

/* Grille de services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Icônes de services */
.service-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.05);
}

/* Description de service */
.service-description {
    margin: 20px 0;
    text-align: left;
}

.service-description h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Scroll bar personnalisée */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}
