/* Ajout des styles pour la section vidéo */
.reference-video {
    margin: 2rem 0;
}

.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: black;
}

.video-thumbnails {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--background-color);
}

.video-thumbnail {
    flex: 0 0 150px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.video-thumbnail.active {
    border-color: var(--secondary-color);
}

.video-thumbnail img {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent white;
    z-index: 1;
}

.video-thumbnail:hover::after {
    background: rgba(204, 51, 51, 0.9);
}

.video-thumbnail-title {
    font-size: 0.8rem;
    padding: 0.5rem;
    text-align: center;
    background: var(--background-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles pour la section PDF */
.pdf-section {
    padding: 2rem 5%;
}

.pdf-container {
    width: 100%;
    height: 800px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pdf-container object {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    padding: 2rem;
    text-align: center;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.pdf-download-link:hover {
    background-color: #990000;
}

.pdf-download-link svg {
    width: 24px;
    height: 24px;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #cc3333;
    --text-color: #333;
    --background-color: #f5f6fa;
    --white: #ffffff;
    --navbar-height: 60px;
    --banner-height: min(200px, 10.4vw);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: calc(var(--banner-height) + var(--navbar-height));
    min-height: 100vh;
}




.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transform: translateZ(0);
}

.top-banner {
    height: var(--banner-height);
    background-color: white;
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
}

.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.header-scroll .top-banner {
    height: 0;
}

li {
    margin-left: 20px;
}

#navbar {
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

#hero {
    min-height: 80vh;
    position: relative;
    padding-top: 2rem;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in-out;
		border-radius: 8px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;

}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--white);
}

section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-grid, .references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}
.card {
  display: flex;
  flex-direction: column;   /* contenu empilé */
  justify-content: flex-start;
  padding-bottom: 1.5rem;   /* espace en bas */
  background: #fff;         /* ou ta couleur de fond */
  border-radius: 8px;
  overflow: hidden;
}

/* On remet un padding global pour le contenu texte */
.card h3,
.card p,
.card ul {
  margin-top: 1rem;         /* espace au-dessus */
  margin-bottom: 1rem;      /* espace en dessous */
  padding: 0 1rem;          /* marge interne gauche/droite */
}

/* Ajustement des listes */
.card ul {
  list-style: none;
  padding-left: 1.5rem;     /* décalage pour les puces custom */
}

.card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .5rem;
  text-align: left;
}

.card li::before {
  content: "•";
  position: absolute;
  left: -1rem;              /* aligne bien la puce */
  top: 0;
  color: #333;              /* adapte la couleur */
}
.reference-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.reference-item:hover {
    transform: translateY(-5px);
}

.reference-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.partner-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
}

button {
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #990000;
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.detailed-info {
    background-color: var(--white);
    padding: 4rem 0;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-container-2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.info-text h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.info-text ul {
    list-style-position: inside;
    margin: 1rem 0;
}

.info-text li {
    margin: 0.5rem 0;
}

.info-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-box {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.feature-box img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-box h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Styles pour la page de détail des références */
.reference-detail {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

.reference-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.reference-header {
    text-align: left;
    margin-bottom: 0.5rem;
}

.reference-header h1 {
    margin-bottom: 0.25rem;
}

.year {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.reference-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.reference-description,
.reference-implementation {
    margin-bottom: 0.5rem;
}

.reference-description h2,
.reference-implementation h2,
.reference-gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.reference-implementation ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.reference-implementation li {
    padding: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    background-color: var(--background-color);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reference-implementation li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reference-implementation li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0.5rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 2;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Boutons de navigation */
.scroll-top,
.close-button {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-top {
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary-color);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.close-button {
	top: calc(var(--navbar-height) + 1rem);
    right: 2rem;
    background: var(--white);
    color: var(--primary-color);
}

.scroll-top:hover,
.close-button:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: var(--white);
}

.close-button:hover {
    transform: rotate(90deg);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.2s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    z-index: 2100;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    :root {
        --banner-height: min(120px, 15.6vw);
    }

    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-features {
        grid-template-columns: 1fr;
    }

    .reference-detail {
        padding: 1rem;
    }

    .close-button {
        top: calc(var(--navbar-height) + 1rem);
        right: 1rem;
    }

    .reference-main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5)  {
        grid-column: span 1;
        grid-row: span 1;
    }

    .video-container {
        margin: 1rem 0;
    }
}