/* Reset et Variables CSS Optimisés */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales */
    --primary-black: #1a1a1a;
    --secondary-black: #2d2d2d;
    --accent-beige: #f5f1e8;
    --light-beige: #faf8f3;
    --gold: #d4af37;
    --gold-light: #e6c547;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e5e5e5;
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Espacements */
    --section-padding: 4rem 0;
    --container-padding: 1rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles Optimisés */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 70px; /* Pour l'ancrage smooth avec navbar fixe */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-synthesis: none;
    text-rendering: optimizeSpeed;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
}

/* Performance optimizations */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Lazy loading styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

.lazy-loaded {
    animation: fadeInUp 0.6s ease-out;
}

/* Critical CSS for above-the-fold content */
.hero {
    will-change: transform;
}

.navbar {
    will-change: background-color, box-shadow;
}

/* Optimize animations for performance */
.service-card,
.btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce paint operations */
.service-card::before {
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gold {
    color: var(--gold);
}

/* Navigation Optimisée */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu li {
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.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="50" cy="50" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

/* Éléments décoratifs du hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Formes géométriques dorées */
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 60% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 20%),
        /* Lignes décoratives */
        linear-gradient(45deg, transparent 48%, rgba(212, 175, 55, 0.1) 49%, rgba(212, 175, 55, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(212, 175, 55, 0.05) 49%, rgba(212, 175, 55, 0.05) 51%, transparent 52%);
    background-size: 300px 300px, 400px 400px, 200px 200px, 100px 100px, 80px 80px;
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 1;
}

/* Formes géométriques flottantes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    border-radius: 50%;
}

.hero-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation-delay: -10s;
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
}

.hero-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 20%;
    animation-delay: -7s;
    border-radius: 50%;
}

.hero-shape:nth-child(5) {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 30%;
    animation-delay: -12s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Lignes décoratives */
.hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    height: 1px;
    animation: lineMove 25s linear infinite;
}

.hero-line:nth-child(1) {
    top: 25%;
    left: -100%;
    width: 200%;
    animation-delay: 0s;
}

.hero-line:nth-child(2) {
    top: 75%;
    left: -100%;
    width: 150%;
    animation-delay: -8s;
    transform: rotate(2deg);
}

.hero-line:nth-child(3) {
    top: 50%;
    left: -100%;
    width: 180%;
    animation-delay: -15s;
    transform: rotate(-1deg);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 var(--container-padding);
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-beige);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-black);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gold);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--light-beige);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: var(--transition-slow);
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

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

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}


/* Statistics Section */
.statistics {
    background: var(--primary-black);
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--accent-beige);
    opacity: 0.8;
}

/* About Section */
.about {
    background: var(--light-beige);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.feature i {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature h4 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-logo {
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    aspect-ratio: 1;
}

.about-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.about-logo-img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background: var(--primary-black);
    color: var(--white);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--accent-beige);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--secondary-black);
    border-radius: 10px;
    background: var(--secondary-black);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--primary-black);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--secondary-black);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--secondary-black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--accent-beige);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--accent-beige);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-black);
    color: var(--accent-beige);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations pour les éléments décoratifs du hero */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-5px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-30px) translateX(15px) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(100%) rotate(360deg);
        opacity: 0;
    }
}

/* Accessibilité et Focus States */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--gold);
    color: var(--primary-black);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    :root {
        --primary-black: #000000;
        --text-dark: #000000;
        --text-light: #333333;
        --gold: #B8860B;
    }
}

/* Support pour les utilisateurs préférant une motion réduite */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::after,
    .hero-shape,
    .hero-line {
        animation: none !important;
    }
}

/* Responsive Design - Mobile First avec breakpoints optimisés */

/* Extra Small devices (phones, 320px and up) */
@media (max-width: 320px) {
    :root {
        --section-padding: 2rem 0;
        --container-padding: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1.25rem 0.75rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .footer-logo {
        height: 55px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-logo {
        min-height: 200px;
        max-height: 250px;
        padding: 1rem;
        aspect-ratio: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small devices (landscape phones, 375px and up) */
@media (min-width: 321px) and (max-width: 480px) {
    :root {
        --section-padding: 2.5rem 0;
        --container-padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .footer-logo {
        height: 55px;
    }
    
    .about-logo {
        min-height: 220px;
        max-height: 280px;
        padding: 1.5rem;
        aspect-ratio: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.875rem 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Medium devices (tablets, 481px and up) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-logo {
        min-height: 250px;
        max-height: 320px;
        padding: 2rem;
        aspect-ratio: 1;
    }
    
    .about-description {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }
    
    .about-features {
        gap: 1.25rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Large devices (desktops, 769px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --section-padding: 4rem 0;
        --container-padding: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Extra large devices (large desktops, 1025px and up) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
}

/* Ultra large devices (1201px and up) */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    
    .about-content {
        gap: 4rem;
    }
    
    .contact-content {
        gap: 4rem;
    }
}

/* Navigation responsive optimisée */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-black);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        font-size: 1.1rem;
    }
}

/* Améliorations pour très petits écrans */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        padding: 1.5rem 0;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-logo {
        min-height: 180px;
        max-height: 220px;
        padding: 1rem;
        aspect-ratio: 1;
    }
    
    .about-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .feature {
        gap: 0.75rem;
    }
    
    .feature i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    /* Réduire les animations sur mobile pour les performances */
    .hero-shape {
        animation-duration: 25s;
    }
    
    .hero-line {
        animation-duration: 35s;
    }
    
    .hero::after {
        animation-duration: 30s;
    }
}

/* Hero responsive optimisé */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Améliorations spécifiques pour le formulaire de contact */
@media (max-width: 768px) {
    .contact-form {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem 1.25rem;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Centrer le bouton d'envoi sur mobile */
    .contact-form .btn {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 16px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Centrer le bouton d'envoi sur très petits écrans */
    .contact-form .btn {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 280px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .portfolio-item:active {
        transform: scale(0.95);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Améliorer la taille des éléments tactiles */
    .nav-toggle {
        padding: 0.5rem;
    }
    
    .bar {
        width: 28px;
        height: 3px;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
}

/* Améliorations pour les notifications sur mobile */
@media (max-width: 768px) {
    .notification {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        transform: translateY(-100%) !important;
    }
    
    .notification.show {
        transform: translateY(0) !important;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        width: auto;
        max-width: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .feature i,
    .contact-item i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --primary-black: #ffffff;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --light-beige: #2d2d2d;
        --accent-beige: #3d3d3d;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gold: #ffd700;
        --text-light: #000000;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .contact,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
    }
}
