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

html {
    scroll-behavior: smooth;
    font-size: 16px;

}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;



}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1e3a8a;
}

/* Color Variables */
:root {
    --deep-blue: #1e3a8a;
    --royal-blue: #1d4ed8;
    --gold: #d97706;
    --gold-dark: #b45309;
    --soft-gray: #f8fafc;
    --text-gray: #64748b;
    --white: #ffffff;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    cursor: pointer;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--deep-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
        url('c.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    animation: changeBackground 20s linear infinite;
}

/* Définition de l'animation pour changer l'image */
@keyframes changeBackground {
    0% {
        background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
            url('c.jpeg') center/cover;
    }

    25% {
        background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
            url('c.jpeg') center/cover;
    }

    33% {
        background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
            url('fd.jpg') center/cover;
    }

    45% {
        background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
            url('fd.jpg') center/cover;
    }

    50% {
        background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
            url('pap.jpeg') center/cover;
    }

    100% {
        background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 64, 175, 0.7)),
            url('pap.jpeg') center/cover;
    }


}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-avatar {
    margin-bottom: 2rem;
}

.avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 4px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0;
    animation: slideUp 1s ease 0.7s forwards;
}

.hero-quote {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-style: italic;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 1s ease 1.1s forwards;
}

.hero-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--soft-gray);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gold), var(--deep-blue));
    transform: translateX(-50%);
    animation: timelineGrow 2s ease;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.4s;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-left {
    justify-content: flex-start;
}

.timeline-left .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-right {
    justify-content: flex-end;
}

.timeline-right .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 4px solid white;
    z-index: 10;
    animation: dotScale 0.5s ease forwards;
}

.timeline-gold {
    background: var(--gold);
}

.timeline-blue {
    background: var(--deep-blue);
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

/* Vision Section */
.vision {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8)),
        url('vision.jpeg') center/cover;
    color: white;
    text-align: center;
    background-attachment: fixed;
}

.vision-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: white;
}

.vision-quote {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-style: italic;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.keyword-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.keyword-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Realizations Section */
.realizations {
    background: var(--soft-gray);
}

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

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

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

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

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--gold);
}

.project-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card:hover .project-link {
    color: var(--deep-blue);
}

/* Testimonials Section */
.testimonials {
    background: white;
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--soft-gray);
    border-radius: 15px;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--deep-blue);
    font-size: 1.1rem;
}

.author-company {
    color: var(--text-gray);
}

.quote-icon {
    font-size: 2rem;
    background: var(--gold);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.testimonial-prev,
.testimonial-next {
    background: var(--deep-blue);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--royal-blue);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--gold);
}

/* Gallery Section */
.gallery {
    background: var(--soft-gray);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--deep-blue);
    color: white;
}

.filter-btn:not(.active):hover {
    background: var(--gold);
    color: white;
}

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

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.gallery-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.presse-item {
    height: auto;
}

.presse-content {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.presse-icon {
    font-size: 2rem;
    color: var(--gold);
}

.presse-info h4 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.presse-info p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.presse-date {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

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

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

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

.contact-message h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-message p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-btn.primary {
    background: var(--gold);
    color: white;
}

.contact-btn.primary:hover {
    background: var(--gold-dark);
}

.contact-btn.secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.contact-btn.secondary:hover {
    background: var(--gold);
    color: white;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.form-submit {
    width: 100%;
    background: var(--gold);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: var(--gold-dark);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #ccc;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    color: #ccc;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: #333;
    margin: 2rem 0;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Download Button */
.download-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gold);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes timelineGrow {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes dotScale {
    from {
        transform: translate(-50%, -50%) scale(0);
    }

    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .timeline-line {
        left: 2rem;
    }

    .timeline-item {
        flex-direction: row;
        padding-left: 4rem;
    }

    .timeline-left,
    .timeline-right {
        justify-content: flex-start;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        margin: 0;
        max-width: none;
    }

    .timeline-dot {
        left: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .keywords-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-controls {
        position: static;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .download-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .keywords-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

/* Utility Classes */
.animate-in {
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

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

.hidden {
    display: none;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 80%;
    margin: auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}