@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.3px;
    width: 100%;
    max-width: 100vw;
}

/* ===== TYPOGRAPHY ===== */
.hero-title,
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
}

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

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

/* ===== MODAL POUR IMAGES ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(3px);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 95%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.modal-info {
    color: white;
    margin-top: 20px;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.modal-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3498db;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-info p {
    font-size: 16px;
    color: #ecf0f1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.modal-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-align: center;
}

.modal-instructions i {
    margin: 0 5px;
}

/* Cursor pointer pour les images cliquables */
.portfolio-image[data-image] {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-image[data-image]:hover {
    transform: scale(1.02);
}

.portfolio-image[data-image]::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.portfolio-image[data-image]:hover::after {
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 74, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 74, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 12px;
    border-radius: 6px;
    display: block;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 2px;
    background: linear-gradient(135deg, #888 0%, #555 100%);
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.nav-link:hover {
    color: #888;
}

.nav-link.active {
    color: #888;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero image styles */
.hero-main-image,
.about-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay léger optionnel pour améliorer la lisibilité du texte */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Fallback gradient si pas d'image */
.hero.no-background-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.title-sub {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    font-style: italic;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.hero-description {
    font-size: 1.3rem;
    color: #fff;
    margin: 2rem auto;
    line-height: 1.8;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-image {
    display: none; /* L'image est maintenant en background */
}

.image-placeholder {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px dashed #666;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.image-placeholder:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.image-placeholder i {
    font-size: 4rem;
    color: #888;
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: #aaa;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

.scroll-indicator:hover {
    animation: pulse 1s infinite;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #ccc);
    margin-bottom: 10px;
}

.scroll-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Styles spécifiques pour le hero */
.hero .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero .btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background: #fff;
}

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

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.service-description {
    color: #666;
    line-height: 1.6;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-preview {
    padding: 100px 0;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 15px;
    background: #f8f9fa;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-cta {
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000 100%);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
    color: #fff;
}

.about-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #6a6a6a;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.9rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

.about-image .image-placeholder {
    width: 100%;
    height: 500px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #666;
}

.contact-item i {
    width: 20px;
    margin-right: 15px;
    color: #6a6a6a;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

/* ===== CONTACT SIMPLE ===== */
.contact-simple {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-email h3 {
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
}

.contact-email p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.email-link:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.email-link i {
    font-size: 1.2rem;
}

.email-note {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo .logo {
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: #bbb;
    font-size: 14px;
}

.footer-admin {
    margin-top: 0.5rem;
}

.admin-link {
    color: #666;
    font-size: 11px;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.admin-link:hover {
    color: #999;
    opacity: 1;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Navbar responsive pour écrans moyens */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 10px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 1000px) {
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 8px;
    }
}

/* Desktop et écrans larges - garde côte à côte */
@media (min-width: 1001px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Écrans moyens - photo en dessous à partir de 1000px */
@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100vw;
        max-width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid #333;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 100px 1rem 60px;
        background-attachment: scroll !important; /* Meilleur rendu mobile */
    }
    
    .hero::before {
        background: rgba(0, 0, 0, 0.5); /* Overlay plus sombre pour mobile */
    }
    
    .hero-content {
        text-align: center;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 3rem 2rem;
        border-radius: 20px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        padding: 90px 0.5rem 40px;
        overflow-x: hidden;
        background-attachment: scroll !important;
    }
    
    .hero::before {
        background: rgba(0, 0, 0, 0.6); /* Overlay encore plus sombre pour la lisibilité mobile */
    }
    
    .title-main {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .title-sub {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .image-placeholder {
        width: 100% !important;
        height: 250px !important;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* ===== LOADING STATES ===== */
section {
    scroll-margin-top: 80px;
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.nav-link:focus,
.social-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid #6a6a6a;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-success {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: #fff;
}

.notification-error {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: #fff;
}

.notification .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification span {
    flex: 1;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.notification-close i {
    font-size: 0.9rem;
}

/* Ajustement du body quand une notification est présente */
body.has-notification {
    padding-top: 60px;
}

/* Responsive pour les notifications */
@media (max-width: 768px) {
    .notification .container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .notification span {
        font-size: 14px;
    }
    
    .notification i {
        font-size: 1rem;
    }
    
    .notification-close {
        width: 25px;
        height: 25px;
    }
}