/* Reset et Variables */
:root {
    --navbar-height: 70px;
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --primary-light: #e6c965;
    --secondary-color: #f39c12;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4af37;
}

.nav-logo span {
    color: #d4af37;
}

.nav-logo .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

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

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('img/hero.png') center/cover no-repeat;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text-white);
    background-attachment: fixed;
    z-index: 0;
    padding: calc(var(--navbar-height) + 20px) 20px 36px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    margin-top: clamp(40px, 8vh, 90px);
}

.hero-logo {
    position: absolute;
    top: calc(var(--navbar-height) + 10px);
    left: clamp(12px, 3vw, 38px);
    transform: none;
    z-index: 1;
    margin: 0;
    animation: fadeInDown 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    height: clamp(72px, 12vh, 120px);
    width: min(40vw, 230px);
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.hero-brand-logo {
    width: clamp(245px, 36.7vw, 469px);
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.25));
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease 0.2s both;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-slogan {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease 0.4s both;
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease 0.6s both;
}

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

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

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

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

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
}

.section-alt {
    background: var(--bg-light);
    z-index: 1;
}

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

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

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 20px;
}

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

/* Slogan Band */
.slogan-band {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.slogan-band-text {
    margin: 0;
    font-size: clamp(1.2rem, 2.3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.35;
}

/* Présentation */
.presentation-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.presentation-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.presentation-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: justify;
}

.qualibat-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    margin: 4px 0 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.qualibat-badge img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--bg-white);
    padding: 4px;
}

.qualibat-badge span {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.presentation-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.presentation-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* Team Section */
.team-section {
    margin-top: 80px;
}

.team-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.team-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
    max-width: 100%;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-light);
}

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

.team-member h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 170px;
    height: 170px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-link:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 4px;
}

/* Gallery */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.95), transparent);
    color: var(--text-white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-content {
    position: relative;
    width: min(95vw, 1200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    color: var(--text-white);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    padding: 0 70px;
}

.lightbox-btn {
    position: absolute;
    border: none;
    cursor: pointer;
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.45);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(212, 175, 55, 0.9);
}

.lightbox-close {
    top: -52px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border-radius: 10px;
    font-size: 1.8rem;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: stretch;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    flex: 1;
}


.contact-form-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
}

.contact-form-message--ok {
    border-left: 4px solid var(--primary-color);
}

.contact-form-message--err {
    border-left: 4px solid var(--secondary-color);
}


.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.info-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

.info-card a:hover {
    color: var(--primary-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 15px;
    color: #cccccc;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.contact-list .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-list .contact-item i {
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
    line-height: 1;
}

.contact-list .contact-item a {
    display: inline-block;
}

.footer-section a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding: 18px 0 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 100px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    color: #cccccc;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding-top: calc(var(--navbar-height) + 16px);
    }

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

    .hero-slogan {
        font-size: 1.5rem;
    }

    .presentation-content {
        grid-template-columns: 1fr;
    }

    .presentation-features {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        background-attachment: scroll;
        padding-bottom: 28px;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

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

    .hero-logo img {
        height: clamp(62px, 10vh, 100px);
        width: min(46vw, 190px);
    }

    .hero-brand-logo {
        width: clamp(199px, 57.1vw, 337px);
    }

    .qualibat-badge {
        width: 100%;
        border-radius: 14px;
        justify-content: center;
        text-align: left;
    }

    .qualibat-badge img {
        width: 60px;
        height: 60px;
    }

    .slogan-band {
        padding: 22px 16px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-icon {
        width: 116px;
        height: 116px;
    }

    .gallery-lightbox {
        padding: 12px;
    }

    .gallery-lightbox-image {
        max-height: 74vh;
    }

    .lightbox-close {
        top: -48px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 52px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    .gallery-lightbox-caption {
        bottom: -30px;
        font-size: 0.9rem;
        padding: 0 48px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--navbar-height) + 12px);
    }

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

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-icon {
        width: 98px;
        height: 98px;
    }

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


/* ========================================
   Page Historique
   ======================================== */

/* Hero Small */
.hero-small {
    height: 50vh;
    min-height: 400px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-marker-start {
    width: 30px;
    height: 30px;
    background: var(--primary-dark);
    box-shadow: 0 0 0 6px var(--primary-light);
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

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

.timeline-date {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.timeline-content h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.timeline-members {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.timeline-member {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border-radius: 999px;
    padding: 8px 14px 8px 8px;
}

.timeline-member img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.timeline-member span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.timeline-member-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.timeline-member-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.timeline-member-link:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

.journal-image-trigger {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 50%;
}

.journal-image-trigger:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

.journal-article-link-wrap {
    margin-top: 8px;
}

.journal-article-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.journal-article-link:hover {
    color: var(--secondary-color);
}

.timeline-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-project {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.timeline-project:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-project img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-info h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--text-dark);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-foundation {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.foundation-values {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.value-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.value-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-light);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Responsive Historique */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .timeline-project {
        flex-direction: column;
    }

    .timeline-members {
        gap: 10px;
    }

    .timeline-member img {
        width: 68px;
        height: 68px;
    }

    .timeline-project img {
        width: 100%;
        height: 200px;
    }

    .foundation-values {
        flex-direction: column;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-small {
        height: 40vh;
        min-height: 300px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}


/*CSS de la page en construction */

  .en-construction-wrapper {

    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);

    margin: 0;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    height: 80vh;

    text-align: center;

    color: #333;

  }



  .en-construction-wrapper .construction-box {

    background: #fff;
    margin-top: 60px;

    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

    padding: 40px 60px;

    max-width: 500px;

    width: 90%;

    animation: fadeIn 1s ease-in-out;

  }



  .en-construction-wrapper h1 {

    font-size: 2em;

    margin-bottom: 10px;

    color: #ff9900;

  }



  .en-construction-wrapper p {

    font-size: 1.2em;

    margin-bottom: 20px;

  }



  .en-construction-wrapper .countdown {

    font-size: 2.5em;

    font-weight: bold;

    color: #ff5500;

    animation: pulse 1s infinite;

  }



  .en-construction-wrapper .btn-home {

    display: inline-block;

    margin-top: 15px;

    padding: 10px 20px;

    background-color: #ff9900;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-weight: bold;

    transition: background-color 0.3s;

  }



  .en-construction-wrapper .btn-home:hover {

    background-color: #e57c00;

  }



  .en-construction-wrapper .spinner {

    margin: 30px auto 0;

    width: 40px;

    height: 40px;

    border: 4px solid #ccc;

    border-top: 4px solid #ff9900;

    border-radius: 50%;

    animation: spin 1s linear infinite;

  }



  @keyframes pulse {

    0% { transform: scale(1); opacity: 1; }

    50% { transform: scale(1.1); opacity: 0.7; }

    100% { transform: scale(1); opacity: 1; }

  }



  @keyframes spin {

    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }

  }



  @keyframes fadeIn {

    from { opacity: 0; transform: translateY(20px); }

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

  }



  /* Fin du CSS de la page en construction */
  
  
    /* Début CSS mentions légales */



  #mentions-legales {
      
  margin-bottom:  60px;

  max-width: 900px;

  

    padding: calc(2rem + 90px) 1rem 2rem;

  color: #333;

  line-height: 1.6;

}



#mentions-legales h1 {

  font-size: 2rem;

  margin-bottom: 1rem;

  color: #222;

  border-bottom: 2px solid #ccc;

  padding-bottom: 0.5rem;

}



#mentions-legales h2 {

  font-size: 1.4rem;

  margin-top: 2rem;

  color: #444;

}



#mentions-legales p {

  margin: 0.5rem 0 1rem;

}



#mentions-legales a {

  color: #0066cc;

  text-decoration: underline;

}



@media screen and (max-width: 600px) {

  #mentions-legales {

        padding: calc(1rem + 90px) 1rem 1rem;

  }



  #mentions-legales h1 {

    font-size: 1.5rem;

  }



  #mentions-legales h2 {

    font-size: 1.2rem;

  }

}



  /* Fin CSS mentions légales */





