/* Audiovisuel Page Specific Styles */
/* Palette: Blanc (fond), Noir (#000), Doré (#c28d2d) */

/* Base styles */
body {
    font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
    padding-top: var(--nav-height, 80px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
}

.hero-logo {
    width: 400px;
    height: 400px;
    object-fit: contain;
    filter: grayscale(100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #000000;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #333333;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, #c28d2d, #d4a574);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(194, 141, 45, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #c28d2d;
    border: 2px solid #c28d2d;
}

.cta-button:hover {
    transform: translateY(-5px);
}

.cta-button.primary:hover {
    box-shadow: 0 20px 40px rgba(194, 141, 45, 0.5);
    background: linear-gradient(135deg, #d4a574, #c28d2d);
}

.cta-button.secondary:hover {
    background: #c28d2d;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(194, 141, 45, 0.3);
}

/* Valeurs Section */
.valeurs-section {
    padding: 6rem 0;
    background: #ffffff;
}

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

.valeur-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.valeur-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #c28d2d;
}

.valeur-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.valeur-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c28d2d;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.valeur-card p {
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Expertise Section */
.expertise-section {
    padding: 6rem 0;
    background: #f8f8f8;
}

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

.expertise-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.expertise-text p {
    font-size: 1.2rem;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    color: #666666;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
}

.expertise-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c28d2d;
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(194, 141, 45, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-image {
    text-align: center;
}

.expertise-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* IFPA Section */
.ifpa-section {
    padding: 6rem 0;
    background: #ffffff;
}

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

.ifpa-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 10px 20px rgba(194, 141, 45, 0.3));
}

.ifpa-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
}

.ifpa-header p {
    font-size: 1.2rem;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.ifpa-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ifpa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #c28d2d;
}

.ifpa-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.ifpa-content {
    padding: 1.5rem;
}

.ifpa-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.ifpa-content p {
    color: #666666;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #f8f8f8;
}

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

.service-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: #c28d2d;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #c28d2d, #d4a574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(194, 141, 45, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(194, 141, 45, 0.4);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #000000;
}

.service-card p {
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: #666666;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-features li:hover {
    color: #000000;
    transform: translateX(5px);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c28d2d;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(194, 141, 45, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-features li:hover::before {
    background: rgba(194, 141, 45, 0.2);
    transform: scale(1.1);
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: #ffffff;
    text-align: center;
}

.video-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000000;
}

.formation-video {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.video-caption {
    color: #666666;
    font-size: 1rem;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #f8f8f8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    color: #000000;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #c28d2d;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(194, 141, 45, 0.2);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #c28d2d, #d4a574);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(194, 141, 45, 0.4);
    background: linear-gradient(135deg, #d4a574, #c28d2d);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #c28d2d, #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666666;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #000000;
    padding: 4rem 0 2rem;
    color: #ffffff;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: #c28d2d;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p, .footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c28d2d;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .expertise-text h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .valeurs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ifpa-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-text {
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Portfolio Gallery Section */
.portfolio-section {
    padding: 6rem 0;
    background: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    grid-auto-rows: masonry;
    align-items: start;
}

/* Fallback for browsers without masonry support */
@supports not (grid-auto-rows: masonry) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
        align-items: start;
    }
    
    .portfolio-item {
        display: flex;
        flex-direction: column;
    }
    
    .portfolio-image {
        flex: 1;
        min-height: 200px;
    }
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    break-inside: avoid;
}

.portfolio-item:nth-child(odd) {
    grid-row: span 2;
}

.portfolio-item:nth-child(3n) {
    grid-column: span 2;
}

.portfolio-item:nth-child(5n) {
    grid-row: span 3;
}

.portfolio-item:nth-child(7n) {
    grid-column: span 1;
    grid-row: span 2;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #c28d2d;
}

.portfolio-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.portfolio-item:nth-child(odd) .portfolio-image {
    height: 400px;
}

.portfolio-item:nth-child(even) .portfolio-image {
    height: 250px;
}

.portfolio-item:nth-child(3n) .portfolio-image {
    height: 300px;
}

.portfolio-item:nth-child(5n) .portfolio-image {
    height: 500px;
}

.portfolio-item:nth-child(7n) .portfolio-image {
    height: 350px;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

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

.portfolio-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.3;
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .portfolio-item:nth-child(odd) .portfolio-image {
        height: 300px;
    }
    
    .portfolio-item:nth-child(even) .portfolio-image {
        height: 200px;
    }
    
    .portfolio-item:nth-child(3n) .portfolio-image {
        height: 250px;
    }
    
    .portfolio-item:nth-child(5n) .portfolio-image {
        height: 350px;
    }
    
    .portfolio-item:nth-child(7n) .portfolio-image {
        height: 280px;
    }
    
    .portfolio-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .portfolio-item:nth-child(odd) .portfolio-image,
    .portfolio-item:nth-child(even) .portfolio-image,
    .portfolio-item:nth-child(3n) .portfolio-image,
    .portfolio-item:nth-child(5n) .portfolio-image,
    .portfolio-item:nth-child(7n) .portfolio-image {
        height: 250px;
    }
    
    .portfolio-overlay {
        padding: 0.8rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 0.9rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.75rem;
    }
}
