/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: rgba(255, 255, 255, 0.5);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e40af;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #60a5fa;
}

.nav-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 8px 12px;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1e40af;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1e40af;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.nav-external {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb;
}

.nav-external-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-external-link:hover {
    color: #1e3a8a;
    background: rgba(96, 165, 250, 0.1);
}

.nav-external-link svg {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #4b5563;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/accueil/MontBlanc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 400px;
}

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

.hero-image img {
    max-width: 500px;
    height: auto;
}

.hero-text {
    flex: 1;
    flex-grow: 1;
    color: white;
    text-align: center;
    min-width: 0;
    word-wrap: break-word;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/projets/Fond_Projets.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), transparent);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.page-hero-text {
    max-width: 500px;
    color: white;
}

.page-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn .arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: #1e40af;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

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

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.btn-accent {
    background: #1e40af;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-accent:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

.section-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.project-content {
    padding: 24px;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.project-category[data-filter="tous"] {
    background: #dbeafe;
    color: #4d97b2;
}

.project-category[data-filter="courts-metrages"] {
    background: #BDE6FA;
    color: #1f2937;
}

.project-category[data-filter="series"] {
    background: #FAE0BD;
    color: #1f2937;
}

.project-category[data-filter="clip"] {
    background: #CBFABD;
    color: #1f2937;
}

.project-category[data-filter="films"] {
    background: #FABFBF;
    color: #1f2937;
}

.project-category[data-filter="concert"] {
    background: #DCBFFA;
    color: #1f2937;
}

.project-category[data-filter="pub"] {
    background: #F8FABF;
    color: #1f2937;
}

.project-category[data-filter="divers"] {
    background: #BFC4FA;
    color: #1f2937;
}



.filter-btn[data-filter="courts-metrages"].active {
    background: #BDE6FA;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(189, 230, 250, 0.4);
}

.filter-btn[data-filter="series"].active {
    background: #FAE0BD;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(250, 224, 189, 0.4);
}

.filter-btn[data-filter="clip"].active {
    background: #CBFABD;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(203, 250, 189, 0.4);
}

.filter-btn[data-filter="films"].active {
    background: #FABFBF;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}





.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: #60a5fa;
}

.project-content p {
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.5;
}



/* Recent Projects Layout */
.recent-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.recent-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card-horizontal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image-horizontal {
    position: relative;
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.project-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content-horizontal {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content-horizontal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-card-horizontal:hover .project-content-horizontal h3 {
    color: #60a5fa;
}

.project-content-horizontal p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Filters */
.filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f3f4f6;
    color: #4b5563;
}

.filter-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.filter-btn.active {
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn[data-filter="tous"].active {
    background: #4d97b2;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.filter-btn[data-filter="nature"].active {
    background: #CBFABD;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(203, 250, 189, 0.4);
}

.filter-btn[data-filter="animaux"].active {
    background: #FAE0BD;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(250, 224, 189, 0.4);
}

.filter-btn[data-filter="divers"].active {
    background: #BFC4FA;
    box-shadow: 0 4px 12px rgba(191, 196, 250, 0.4);
}


.filter-btn.active {
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn[data-filter="films"].active {
    background: #FABFBF;
    box-shadow: 0 4px 12px rgba(250, 191, 191, 0.4);
}

.filter-btn[data-filter="series"].active {
    background: #FAE0BD;
    box-shadow: 0 4px 12px rgba(250, 224, 189, 0.4);
}

.filter-btn[data-filter="courts-metrages"].active {
    background: #BDE6FA;
    box-shadow: 0 4px 12px rgba(189, 230, 250, 0.4);
}

.filter-btn[data-filter="pub"].active {
    background: #F8FABF;
    box-shadow: 0 4px 12px rgba(248, 250, 191, 0.4);
}

.filter-btn[data-filter="concert"].active {
    background: #DCBFFA;
    box-shadow: 0 4px 12px rgba(220, 191, 250, 0.4);
}



/* Photos Gallery */
.photos-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.photos-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.photo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.camera-icon,
.eye-icon {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.photo-content {
    padding: 20px;
}

.photo-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.photo-category[data-filter="tous"] {
    background: #dbeafe;
    color: #4d97b2;
}

.photo-category[data-filter="nature"] {
    background: #CBFABD;
    color: #1f2937;
}

.photo-category[data-filter="animaux"] {
    background: #FAE0BD;
    color: #1f2937;
}

.photo-category[data-filter="divers"] {
    background: #BFC4FA;
    color: #1f2937;
}

.photo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.photo-card:hover .photo-content h3 {
    color: #60a5fa;
}

.photo-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 8px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Contact Page */
.main-content {
    margin-top: 70px;
    padding: 80px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 60px;
}

.contact-profile {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-profile h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 20px;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-location svg {
    width: 18px;
    height: 18px;
}

.profile-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-info {
    padding: 60px 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: #f9fafb;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #bfdbfe;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: #1e40af;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-value {
    color: #1e40af;
}

.availability {
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.availability h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.availability p {
    color: #6b7280;
    line-height: 1.6;
}

.contact-cta {
    background: linear-gradient(135deg, #60a5fa, #1e3a8a);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-cta .btn {
    background: white;
    color: #60a5fa;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-cta .btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    color: #60a5fa;
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    color: #d1d5db;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.footer-credits a {
    color: #60a5fa;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #1e3a8a;
}

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

.project-card,
.photo-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hidden elements for filtering */
.hidden {
    display: none !important;
}






/* Error 404 */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('/assets/img/photos/Fond404.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 2rem 0;
}

.error-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.error-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20rem;
    align-items: center;
    text-align: left;
}

.error-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: -500px;
}

.error-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(74, 145, 226, 0.5);
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #60a5fa 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

.error-film-strip {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 2px solid #3a3a3a;
    position: relative;
    overflow: hidden;
}

.error-film-strip::before,
.error-film-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    background: repeating-linear-gradient(
        to bottom,
        #3a3a3a 0px,
        #3a3a3a 8px,
        transparent 8px,
        transparent 16px
    );
}

.error-film-strip::before {
    left: 0;
}

.error-film-strip::after {
    right: 0;
}

.film-frame {
    width: 40px;
    height: 30px;
    background: #4a4a4a;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.film-frame.broken {
    background: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    animation: flicker 1.5s infinite;
}

.film-frame.broken::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.error-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.error-text p {
    font-size: 1.5rem;
    color: #ffffff;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-suggestions {
    margin-top: 2rem;
}

.error-suggestions h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.error-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.error-links a:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateX(0.5rem);
}

.error-links a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element svg {
    width: 80px;
    height: 80px;
    color: #60a5fa;
}

.floating-element.camera {
    top: 15%;
    right: 10%;
    animation-duration: 8s;
}

.floating-element.lens {
    bottom: 20%;
    left: 15%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.floating-element.film {
    top: 60%;
    right: 20%;
    animation-duration: 9s;
    animation-delay: 4s;
}

/* Modification de l'animation glow pour retirer le flou */
@keyframes glow {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Modification pour descendre le 404 sur mobile */
@media (max-width: 768px) {
    .error-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin-top: 2rem;
    }
    
    .error-number {
        font-size: clamp(4rem, 20vw, 8rem);
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
    
    .error-film-strip {
        scale: 0.8;
    }
    
    .error-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .error-links a {
        justify-content: center;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 1rem 0;
    }
    
    .error-container {
        padding: 0 1rem;
    }
    
    .error-content {
        gap: 2rem;
    }
    
    .error-text p {
        font-size: 1rem;
    }
    
    .film-frame {
        width: 30px;
        height: 22px;
    }

    .error-visual {
        margin-left: 0; /* Assure que le margin-left est supprimé */
        padding: 0 10px; /* Padding réduit pour les très petits écrans */
    }

    .error-number {
        font-size: clamp(3rem, 12vw, 4.5rem); /* Encore plus petit pour les très petits écrans */
        margin-bottom: 0.8rem;
    }

    .error-film-strip {
        scale: 0.6; /* Réduit davantage la taille du film strip */
        padding: 0.4rem;
    }

    .film-frame {
        width: 25px; /* Frames encore plus petits */
        height: 18px;
    }
}