:root {
    --bg: #070a12;
    --bg-alt: #0f172a;
    --card-bg: #111827;
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.1);
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2933;
    --danger: #ef4444;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
    --radius-lg: 18px;
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 60%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.96), rgba(15,23,42,0.88));
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f9fafb;
}

.logo a img {
    height: 2rem;
    width: auto;
}

.menu-toggle {
    display: none;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    width: 36px;
    height: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.menu-toggle:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 50%;
    transform-origin: center;
}

.menu-toggle span:nth-child(1) {
    top: calc(50% - 6px);
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
    top: calc(50% + 6px);
    transform: translateX(-50%);
}

.menu-toggle:hover span {
    background: #bbf7d0;
}

.menu-toggle[aria-expanded="true"] {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.menu-toggle[aria-expanded="true"]:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
}

.menu-toggle[aria-expanded="true"] span {
    background: #ef4444;
    width: 18px;
    top: 50%;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.main-nav a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e5e7eb;
}

.cta-button-mobile {
    display: none;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.cta-button {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.7);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%);
    font-size: 0.9rem;
    font-weight: 500;
    color: #bbf7d0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 18px 40px rgba(22, 163, 74, 0.3);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.cta-button:hover {
    transform: translateY(-1px);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.25), transparent 60%);
    box-shadow: 0 22px 45px rgba(22, 163, 74, 0.45);
}

main {
    padding-bottom: 4rem;
}

.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 2.5rem;
    align-items: start;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.4rem;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.hero-note {
    font-size: 0.85rem;
    color: #9ca3af;
}

.hero-carousel-wrapper {
    position: relative;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 420px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), #020617);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem 2.2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.hero-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

.hero-card.prev {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    z-index: 0;
}

.hero-card .card-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.hero-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    padding-right: 5rem;
}

.carousel-controls {
    position: absolute;
    bottom: 6.7rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}

.carousel-dots .dot:hover {
    background: rgba(148, 163, 184, 0.6);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background: #22c55e;
    width: 1.5rem;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.hero-card ul {
    margin: 0.8rem 0 1rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-card li {
    margin-bottom: 0.2rem;
}

.price {
    font-weight: 600;
    color: #bbf7d0;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.1s;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.45);
    font-weight: 600;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px rgba(22, 163, 74, 0.6);
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.btn.secondary:hover {
    background: #020617;
}

.btn.small {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

.btn.full {
    width: 100%;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.section {
    padding: 2.5rem 0;
}

.section.alt {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.6), #020617);
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.section-intro {
    color: var(--text-muted);
    max-width: 44rem;
    margin-bottom: 1.8rem;
    font-size: 0.98rem;
}

.grid.three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.card {
    background: linear-gradient(145deg, #020617, #020617);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.1rem;
    border: 1px solid rgba(51,65,85,0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
}

.card.highlight {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.08), #020617);
}

.card-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.card h2, .card h3 {
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.card ul {
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.card li {
    margin-bottom: 0.2rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5f5;
}

.steps .step {
    position: relative;
    padding-left: 2.4rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #bbf7d0;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
}

.contact-layout > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form {
    background: linear-gradient(145deg, #020617, #020617);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.field {
    margin-bottom: 1.2rem;
}

.field:last-of-type {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    border-radius: 0.6rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 0.7rem 0.8rem;
    background: rgba(2, 6, 23, 0.6);
    color: var(--text);
    font-size: 0.93rem;
    transition: border-color 0.2s, outline 0.2s, background 0.2s;
    font-family: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

.field input:hover,
.field textarea:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(2, 6, 23, 0.8);
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(34, 197, 94, 0.5);
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(2, 6, 23, 0.9);
}

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

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.contact-side {
    background: linear-gradient(145deg, #020617, #020617);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    font-size: 0.95rem;
    color: var(--text-muted);
    position: sticky;
    top: 6rem;
}

.contact-side h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #e5e7eb;
    font-weight: 600;
}

.contact-side p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

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

.contact-side strong {
    color: #cbd5e1;
    font-weight: 600;
}

.contact-side a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
    font-weight: 500;
}

.contact-side a:hover {
    color: #16a34a;
    text-decoration: underline;
}

.contact-side .small {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.small {
    font-size: 0.85rem;
    color: #9ca3af;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.8rem 0 0.8rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 0.8rem;
}

.footer-inner h3 {
    margin-bottom: 0.4rem;
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    padding-top: 0.4rem;
    margin-top: 0.4rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: linear-gradient(145deg, #020617, #020617);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(51,65,85,0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    border-color: rgba(34, 197, 94, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.8));
    position: relative;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(15, 23, 42, 0.9));
    border-bottom: 2px solid rgba(34, 197, 94, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: object-position 2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image img {
    object-position: bottom;
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.2rem 1.1rem;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Animations au scroll - toutes de bas en haut */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Délais d'animation pour effet cascade */
.scroll-animate.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-4 {
    transition-delay: 0.4s;
}

.status-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e293b, #020617);
}

.status-card {
    background: #020617;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    width: min(420px, 100% - 3rem);
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51,65,85,0.9);
}

.status-card h1 {
    margin-bottom: 0.6rem;
}

.status-card p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.status-card .error-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #fca5a5;
    text-align: left;
}

.status-card .error-details p {
    margin: 0.5rem 0;
    word-break: break-word;
}

.status-card .error-details a {
    color: #4ade80;
    text-decoration: underline;
    font-weight: 500;
}

.status-card .error-details a:hover {
    color: #22c55e;
}

.feature-card {
    background: linear-gradient(145deg, #020617, #020617);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.3rem;
    border: 1px solid rgba(51,65,85,0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
    border-color: rgba(34, 197, 94, 0.3);
}

.feature-card h3 {
    margin-bottom: 0.7rem;
    color: #bbf7d0;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Améliorations pour la page services */
.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
    color: #e5e7eb;
    line-height: 1.3;
}

.card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #bbf7d0;
    margin: 1rem 0 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.card ul {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
}

.card li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.card .btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-carousel-wrapper {
        order: -1;
    }

    .grid.three {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid.two {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    
    .contact-side {
        position: static;
        top: auto;
    }

    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 1002;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle[aria-expanded="true"] {
        top: 1rem;
        right: 1rem;
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    }

    .menu-toggle[aria-expanded="true"]:hover {
        background: rgba(239, 68, 68, 0.3);
        border-color: rgba(239, 68, 68, 0.7);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,0.95));
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid rgba(148, 163, 184, 0.2);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

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

    .menu-overlay {
        display: block;
    }

    .menu-overlay.active {
        opacity: 1;
    }

    .main-nav a {
        width: 100%;
        padding: 0.9rem 1.2rem;
        border-radius: var(--radius-md);
        font-size: 1rem;
        color: var(--text);
        border: 1px solid transparent;
    }

    .main-nav a:hover {
        background: rgba(34, 197, 94, 0.1);
        color: #bbf7d0;
        border-color: rgba(34, 197, 94, 0.2);
    }

    .cta-button {
        display: none;
    }

    .cta-button-mobile {
        display: block;
        width: 100%;
        margin-top: 1rem;
        padding: 0.9rem 1.2rem;
        text-align: center;
        border-radius: var(--radius-md);
        border: 1px solid rgba(34, 197, 94, 0.7);
        background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%);
        font-size: 1rem;
        font-weight: 500;
        color: #bbf7d0;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 18px 40px rgba(22, 163, 74, 0.3);
        transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
    }

    .cta-button-mobile:hover {
        transform: translateY(-1px);
        background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.25), transparent 60%);
        box-shadow: 0 22px 45px rgba(22, 163, 74, 0.45);
    }

    .footer-inner {
        flex-direction: column;
    }

    .card-badge {
        top: 0.6rem;
        right: 0.6rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.2rem;
    }

    .logo a img {
        height: 1.75rem;
    }

    .main-nav {
        width: 100%;
        right: -100%;
    }
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25d366, #20ba5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 
                0 0 0 0 rgba(37, 211, 102, 0.7);
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.whatsapp-float.scroll-up-active {
    bottom: calc(2rem + 64px + 1rem);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 
                0 0 0 8px rgba(37, 211, 102, 0.1);
    background: linear-gradient(135deg, #2ee576, #25d366);
}

.whatsapp-float:active {
    transform: translateY(-2px) scale(1.02);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    display: block;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(10deg) scale(1.1);
}

@media (max-width: 840px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float.scroll-up-active {
        bottom: calc(1.5rem + 44px + 0.75rem);
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Bouton remonter en haut */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(148, 163, 184, 0.2);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    cursor: pointer;
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(148, 163, 184, 0.4);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    color: #e5e7eb;
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top-icon {
    width: 32px;
    height: 32px;
    display: block;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.scroll-to-top:hover .scroll-to-top-icon {
    transform: translateY(-2px);
    opacity: 1;
}

@media (max-width: 840px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .scroll-to-top-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-float.scroll-up-active {
        bottom: calc(1.5rem + 56px + 0.75rem);
    }
}

/* Section statistiques */
.stats-section {
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.6));
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85),
                0 0 0 1px rgba(34, 197, 94, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95),
                0 0 30px rgba(34, 197, 94, 0.2),
                0 0 0 1px rgba(34, 197, 94, 0.3);
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.7));
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    transition: all 0.4s ease;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #bbf7d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.6rem;
}

.stat-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .stats-section {
        padding: 2.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1.2rem;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Styles pour la page blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: linear-gradient(145deg, #020617, #020617);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(51,65,85,0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    border-color: rgba(34, 197, 94, 0.3);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.8));
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: block;
}

.blog-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #e5e7eb;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1.2rem;
    }
    
    .blog-content h2 {
        font-size: 1.15rem;
    }
}

/* Styles pour la page de détails du blog */
.blog-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.back-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: #bbf7d0;
    text-decoration: underline;
}

.blog-detail {
    max-width: 900px;
    margin: 0 auto;
}

.blog-detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
    font-weight: 700;
}

.blog-detail-image {
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.blog-detail-description {
    text-align: center;
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.blog-detail-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
    font-weight: 700;
    line-height: 1.3;
}

.blog-detail-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #e5e7eb;
    font-weight: 600;
    line-height: 1.4;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #cbd5e1;
}

.blog-detail-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.blog-detail-content a {
    color: #22c55e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-detail-content a:hover {
    color: #bbf7d0;
}

.blog-detail-content strong {
    color: #e5e7eb;
    font-weight: 600;
}

.blog-detail-footer {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .blog-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-detail-title {
        font-size: 1.75rem;
    }
    
    .blog-detail-header {
        margin-bottom: 2rem;
    }
    
    .blog-detail-header .blog-date {
        position: static;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        text-align: right;
    }
    
    .blog-detail-header h1 {
        font-size: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .blog-detail-image {
        padding: 1rem;
    }
    
    .blog-detail-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .blog-detail-content {
        font-size: 1rem;
    }
    
    .blog-detail-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .blog-detail-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .blog-detail-footer {
        flex-direction: column;
    }
    
    .blog-detail-footer .btn {
        width: 100%;
        text-align: center;
    }
}
