:root {
    --primary-color: #0b1930;
    --secondary-color: #4a6fa5;
    --accent-color: #638dff;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --gray-light: #e2e8f0;
    --gray-medium: #a0aec0;
    --neon-glow: 0 0 10px rgba(108, 99, 255, 0.2);
    --accent-color-rgb: 108, 99, 255; /* Valeur RGB de l'accent-color */
}

/* Import des polices Google Fonts - Modification pour n'utiliser que Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header ajustements */
header {
    background-color: var(--primary-color);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 35px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo h1 span {
    color: var(--accent-color);
    font-weight: 400;
}

.logo-subtitle {
    color: var(--gray-medium);
    font-size: 0.85rem;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

/* Menu mobile */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header central */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.header-phone {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.header-slogan {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    header {
        padding: 0.5rem 1rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        flex: 1;
        margin-right: 1rem;
    }

    .header-center {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        margin-right: 3.5rem;
        text-align: right;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-top: 1rem;
        order: 3;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 576px) {
    header {
        padding: 0.5rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .header-center {
        margin-right: 3rem;
    }

    .header-phone {
        font-size: 0.9rem;
    }

    .header-slogan {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .menu-toggle {
        right: 0.5rem;
        font-size: 1.3rem;
    }
}

/* Hero Section ajustements */
.hero {
    min-height: 100vh;
    padding-top: calc(70px + 2rem);
    padding-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c3d5d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Effet Matrix */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    opacity: 0.1;
}

.matrix-bg canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-services {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
}

.hero-service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.hero-service-item i {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 40px;
    text-align: center;
}

.hero-service-item .service-text {
    text-align: left;
}

.hero-service-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.hero-service-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-text {
    text-align: left;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Terminal Window */
.terminal-window {
    background: rgba(11, 25, 48, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-family: 'Consolas', monospace;
    color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.close { background-color: #ff5f56; }
.terminal-button.minimize { background-color: #ffbd2e; }
.terminal-button.maximize { background-color: #27c93f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: 1rem;
}

.terminal-content {
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: restart 13s infinite;
}

.terminal-line {
    display: flex;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    width: 0;
    animation: typing 2s steps(30, end) forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0s; }
.terminal-line:nth-child(2) { animation-delay: 2s; }
.terminal-line:nth-child(3) { animation-delay: 3.5s; }
.terminal-line:nth-child(4) { animation-delay: 5s; }

.terminal-prompt {
    color: var(--accent-color);
    margin-right: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
    animation-delay: inherit;
}

.terminal-command {
    color: white;
    position: relative;
}

.terminal-output {
    color: var(--accent-color);
    margin-left: 1rem;
}

@keyframes typing {
    0% { 
        width: 0;
        opacity: 1;
    }
    100% { 
        width: 100%;
        opacity: 1;
    }
}

@keyframes restart {
    0%, 75% { opacity: 1; }
    80% { opacity: 0; }
    90% { opacity: 0; }
    100% { opacity: 1; }
}

.terminal-line:last-child::after {
    content: '|';
    color: var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* Services */
.services {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c3d5d 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    z-index: 2;
}

.services-grid {
    position: relative;
    min-height: 500px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    z-index: 2;
}

/* Style de base des cartes */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-light);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    color: var(--text-color);
}

/* Animation des autres cartes */
.service-card.collapsed {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animation d'expansion */
.service-card.expanded {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 3rem;
    cursor: default;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    min-height: 400px;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Réorganisation des éléments dans la carte développée */
.service-card.expanded .service-gallery {
    grid-column: 1;
    grid-row: 1 / span 2;
    opacity: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-card.expanded i {
    grid-column: 2;
    grid-row: 1;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
}

.service-card.expanded .service-content {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
}

/* Style des détails et CTA */
.service-details {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-color);
}

.service-card.expanded .service-details {
    opacity: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.details-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.details-content ul li {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.details-content ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.service-card.expanded .cta-button {
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
}

/* Animation du contenu */
.service-content {
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.service-card.expanded .service-content {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de la galerie */
.service-gallery {
    opacity: 0;
    grid-column: 2;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.expanded .service-gallery {
    display: grid;
    opacity: 1;
}

/* Icône */
.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.expanded i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Bouton de fermeture */
.close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.expanded .close-button {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .service-card.expanded {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .service-card.expanded .service-gallery {
        grid-column: 1;
        grid-row: 2;
        margin-top: 1rem;
    }

    .service-card.expanded i {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 1rem;
    }

    .service-card.expanded .service-content {
        grid-column: 1;
        grid-row: 3;
    }

    .details-content {
        margin-bottom: 1.5rem;
    }

    .service-card.expanded .cta-button {
        align-self: center;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto 0;
    }

    .terminal-window {
        margin-bottom: 1.5rem;
        font-size: 0.8rem;
    }
    
    .terminal-button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .service-card.expanded {
        padding: 1.5rem;
    }

    .details-content {
        margin-bottom: 1rem;
    }

    .details-content ul li {
        font-size: 0.9rem;
    }

    .logo-img {
        width: 30px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }
}

/* Contact */
.contact {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background-color: var(--light-bg);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    background-color: white;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    padding: 0 0.5rem;
    color: var(--gray-medium);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: var(--light-bg);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: white;
}

.submit-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
}

/* Boutons avec effet néon */
.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.15);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

footer .social-icons {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    header nav {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        padding: 0.5rem 1rem;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
        padding: 0.5rem;
    }

    .header-center {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0.3rem 0 0.5rem 0;
    }

    .header-slogan {
        display: none;
    }

    .header-phone {
        font-size: 1rem;
        margin: 0;
        padding-left: 0.2rem;
        display: block;
        color: var(--accent-color);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: calc(var(--item-index) * 0.1s);
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .hero {
        padding-top: calc(90px + 4rem);
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .hero-services {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
    }

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

    .hero-text .cta-button {
        margin: 0 auto;
        display: block;
        max-width: 300px;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    header nav {
        padding: 0.3rem 0.8rem;
    }

    .logo-img {
        width: 30px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .header-phone {
        font-size: 0.9rem;
        color: var(--accent-color);
        font-weight: 600;
    }

    .menu-toggle {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    .hero {
        padding-top: calc(85px + 6rem);
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-text .cta-button {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icons a {
        font-size: 1.1rem;
    }
}

/* Modification des titres pour la cohérence */
h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Nouvelle section À propos */
.about {
    padding: 8rem 2rem;
    background: white;
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        padding-right: 0;
    }

    .about-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(90px + 5rem);
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-service-item {
        padding: 0.8rem;
    }

    .services {
        padding: 4rem 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card.expanded {
        padding: 1.5rem;
        min-height: 300px;
    }

    .service-gallery {
        grid-template-columns: 1fr;
    }

    form {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: calc(85px + 6rem);
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .services h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .service-card i {
        font-size: 2rem;
    }

    .service-card.expanded {
        left: 1rem;
        right: 1rem;
        padding: 1.2rem;
    }

    .close-button {
        top: 1rem;
        right: 1rem;
    }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 360px) {
    .hero {
        padding-top: 85px;
    }

    .hero-service-item {
        padding: 0.6rem;
    }

    .hero-service-item .service-text {
        text-align: center;
    }

    .service-card.expanded {
        padding: 1rem;
        gap: 1.5rem;
    }

    input, textarea {
        padding: 0.8rem 1rem;
    }
}

/* Ajustements pour la hauteur */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-top: 85px;
        padding-bottom: 2rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-service-item {
        padding: 0.5rem;
    }

    .service-card.expanded {
        min-height: 250px;
    }
}

/* Ajustements pour les grands écrans */
@media (min-width: 1400px) {
    .hero-content,
    .services-grid,
    .about-container,
    .contact-container {
        max-width: 1300px;
    }

    .hero-text h2 {
        font-size: 3.5rem;
    }
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
}

.header-phone {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    text-decoration: none;
}

.header-slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.header-slogan span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .header-center {
        display: none;
    }
}

/* Amélioration du style des éléments cliquables dans le hero */
.hero-service-item.clickable {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-service-item.clickable::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.hero-service-item.clickable:hover::after {
    width: 100%;
}

.hero-service-item.clickable:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.hero-service-item.clickable:active {
    transform: translateX(5px);
}

/* Effet de survol sur les cartes */
.service-card:not(.expanded):not(.collapsed):hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

/* Ajustement de l'opacité du Matrix pour la section services */
.services .matrix-bg {
    opacity: 0.05;
}

/* Image validé dans le hero */
.hero-valid-img {
    position: absolute;
    top: 200px;
    right: 200px;
    width: 230px;
    height: auto;
    transform: rotate(10deg);
    mix-blend-mode: screen;
    opacity: 0.9;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@media (max-width: 992px) {
    .hero-valid-img {
        width: 140px;
        top: 100px;
        right: 30px;
    }
}

@media (max-width: 576px) {
    .hero-valid-img {
        width: 120px;
        top: 100px;
        right: 20px;
    }
}

/* Style des images */
.about-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 1rem;
    background-color: var(--primary-color);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Style des images de la galerie */
.gallery-item {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 0.5rem;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Ajustements responsive */
@media (max-width: 992px) {
    .about-image {
        height: 350px;
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .about-image {
        height: 300px;
    }

    .gallery-item {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .about-image {
        height: 250px;
    }

    .gallery-item {
        height: 150px;
    }
}

/* Style des réseaux sociaux */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Ajustement du header pour les réseaux sociaux */
.header-top {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Style des icônes dans la galerie de conseil */
.service-card[data-service] .gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card[data-service] .gallery-item i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.service-card[data-service] .gallery-item span {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card[data-service] .gallery-item p {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin: 0;
    line-height: 1.2;
}

.service-card[data-service] .gallery-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card[data-service] .gallery-item:hover i {
    transform: scale(1.1);
}

.hero-robot {
    position: fixed;
    left: 50px;
    bottom: -100px;
    width: 200px;
    height: auto;
    z-index: 5;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
    filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.3));
    cursor: pointer;
}

.hero-robot:hover {
    filter: drop-shadow(0 0 30px rgba(108, 99, 255, 0.5));
    transform: translateY(-10px);
}

/* Ajout de l'effet de parallaxe au scroll */
@media (min-width: 993px) {
    .hero-robot {
        transform: translateY(calc(var(--scroll) * -0.05px));
    }
    .hero-robot:hover {
        transform: translateY(calc((var(--scroll) * -0.10px) - 10px));
    }
}

@media (max-width: 992px) {
    .hero-robot {
        width: 100px;
        left: 20px;
        bottom: -30px;
    }
}

@media (max-width: 576px) {
    .hero-robot {
        width: 100px;
        left: 10px;
        bottom: -30px;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 99999;
    text-decoration: none;
}

.whatsapp-button i {
    color: white;
    font-size: 32px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .whatsapp-button {
        width: 65px;
        height: 65px;
        bottom: 25px;
        right: 25px;
    }

    .whatsapp-button i {
        font-size: 32px;
    }
}

@media screen and (max-width: 576px) {
    .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 20px;
    }

    .whatsapp-button i {
        font-size: 30px;
    }
}

/* Messages de formulaire */
.success-message, .error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.success-message {
    background-color: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid #48bb78;
}

.error-message {
    background-color: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid #f56565;
}

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

/* Popup de confirmation */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 25, 48, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.popup-icon i {
    font-size: 2.5rem;
}

.popup-success .popup-icon {
    background-color: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.popup-error .popup-icon {
    background-color: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.popup-message {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-close {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 141, 255, 0.3);
}

@media (max-width: 576px) {
    .popup-content {
        padding: 2rem 1.5rem;
    }

    .popup-icon {
        width: 60px;
        height: 60px;
    }

    .popup-icon i {
        font-size: 2rem;
    }

    .popup-title {
        font-size: 1.3rem;
    }
} 