body{
    font-family: 'Montserrat', sans-serif;
}

.header{
   width: 100%;
}

/* NAV */


.navbar-tmp {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    z-index: 1030; /* supérieur au contenu Bootstrap */
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--blue) !important;
    transform: translateY(-2px);
}

/* Main */

.horloge-img{
    border-radius: 0;
    
    width: 100%;
    height: 100vh; /* Change to viewport height */
    object-fit: cover; /* Ensure image covers the area */
    border: none;
}

.horloge-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    width: 90%; /* Add width control */
}

/* Add media queries for responsiveness */
@media (max-width: 768px) {
    .horloge-title {
        font-size: 2rem; /* Smaller font on tablets */
        top: 70%;
    }
    .horloge-img {
        height: 60vh ;
        width: 100%;
        filter: blur(0); /* Shorter height on tablets */
    }
}

@media (max-width: 480px) {
    .horloge-title {
        font-size: 2rem; /* Even smaller font on phones */
    }
    .horloge-img {
        height: 50vh; /* Even shorter height on phones */
    }
}

/* Pour le conteneur de l'image et du titre */
.horloge-img-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.titre-section{
    margin: 3em;
    font-size: 30px;
    text-align: center;
}

/* Caroussel */

.titre-caroussel{
    font-weight: bold;
}

/* A Propos */

.a_propos{
    margin-left: 5em;
    margin-right: 5em;
}

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

.a_propos p {
    line-height: 1.6;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .a_propos {
        padding: 1.5rem;
    }

    .a_propos p {
        font-size: 0.95rem;
        margin: 0.5rem 0;
    }

    .a_propos h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* FOOTER */

.footer{
            background-color: #1D1D1B;
            padding: 3rem 3rem;
            margin-top: auto;
            font-family:'Montserrat' , sans-serif;
        }

        .footer-logo-container {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 1rem;
        }

        .footer-logo{
            height: 200px;  /* Augmentation de la taille */
           border-radius: 10px;
            width: auto;
            object-fit: contain;
            opacity: 0.9;
            transition: all 0.3s ease;
        }

        .footer-logo:hover {
            opacity: 1;
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
            .footer-logo-container {
                justify-content: center;
            }

            .footer-logo {
                height: 60px;
            }

            .col-md-6.text-end {
                text-align: center !important;
                margin-top: 1.5rem;
            }
        }

        .footer-link{
            color: #FFFFFF;
            text-decoration: none;
            transition:color 0.3s ease;
            display: inline-block;
            margin-bottom: 0.5rem;
        }

        .footer-link:hover{
            color: #FFFFFF;
            transform: translateX(5px);
                }










                



h1 {
    text-align: center;
    margin: 30px 0 30px 0;
    color: #333;
}

.card {
    box-shadow: 0 2px 16px #0002;
    border-radius: 16px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: #fff; /* Ajoute un fond blanc */
}

.card-img-col {
    padding: 0;
}

.card-img-side {
    width: 100%;
    object-fit: cover;
    border-radius: 0 16px 16px 0;
    display: block;
    max-height: 320px;
    min-height: 180px;
}

.card-img-side.left {
    border-radius: 16px 0 0 16px;
}

@media (max-width: 900px) {
    .card {
        width: 98vw;
    }

    .project-list-nav {
        position: absolute;
        top: 58px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: unset;
        border-radius: 0 0 12px 12px;
        margin-bottom: 20px;
        box-sizing: border-box;
        z-index: 2000;
    }

    .project-list-btn {
        right: 10px;
        top: 70px;
        z-index: 2001;
    }

    .card-img-col {
        padding: 16px 16px 0 16px;
        box-sizing: border-box;
    }

    .card-img-side,
    .card-img-side.left {
        border-radius: 16px 16px 0 0 !important;
        min-height: 180px;
        height: 180px;
        aspect-ratio: unset;
        max-width: 100%;
        margin: 0 auto;
        background: #fff;
    }
}

@media (min-width: 901px) {
    .card {
        padding: 0 18px; /* Ajoute un espace à gauche et à droite */
    }

    .card-img-col {
        padding: 24px 0 24px 0; /* Supprime le padding latéral ici */
        height: 100%;
        display: flex;
        align-items: stretch;
        max-width: 36%;
        flex: 0 0 36%;
        box-sizing: border-box;
    }

    .card-img-side {
        height: 100%;
        max-height: 320px;
        width: 100%;
        min-height: 180px;
        object-fit: cover;
        border-radius: 18px;
        display: block;
        box-shadow: 0 2px 8px #0001;
        margin: auto;
        background: #fff;
    }
}

.card-body {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-list-nav {
    position: fixed;
    top: 70px;
    right: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
    padding: 18px 22px 18px 22px;
    min-width: 210px;
    z-index: 1001;
    border: 1px solid #ddd;
    display: none;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.project-list-btn {
    position: fixed;
    top: 80px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px #0002;
    z-index: 1002;
    font-size: 1.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.project-list-btn svg {
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1);
}

.project-list-btn.rotated svg {
    transform: rotate(180deg);
}

.project-list-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list-nav li {
    margin-bottom: 10px;
}

.project-list-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.project-list-nav a:hover,
.project-list-nav a:focus {
    background: #e8f5e9;
    color: #219150;
    border: 1px solid #b2dfdb;
    text-decoration: none;
}

.project-authors {
    margin-top: 18px;
    font-size: 0.98em;
    color: #555;
    background: #f6f6f6;
    border-radius: 6px;
    padding: 8px 12px;
    display: inline-block;
}

@media (max-width: 900px) {
    .project-list-nav {
        position: fixed;
        top: 120px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: unset;
        border-radius: 0 0 12px 12px;
        margin-bottom: 20px;
        box-sizing: border-box;
        z-index: 2000;
    }

    .project-list-btn {
        right: 10px;
        top: 70px;
        z-index: 2001;
    }
}

@media (min-width: 901px) {

    .card,
    .card>.row {
        height: 100%;
    }

    .card-img-col {
        height: 100%;
        display: flex;
        align-items: stretch;
        padding: 24px 32px 24px 18px; /* Augmente le padding à droite */
        max-width: 36%;
        flex: 0 0 36%;
        box-sizing: border-box;
    }

    .card-img-side {
        height: 100%;
        max-height: 320px;
        width: 100%;
        min-height: 180px;
        object-fit: cover;
        border-radius: 18px;
        display: block;
        box-shadow: 0 2px 8px #0001;
        margin: auto;
        background: #fff;
    }
}

.card-video-container {
    width: 100%;
    background: #f8f8f8;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 0;
}

.card-video-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0001;
    margin-left: 0;
    margin-right: 0;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #000;
    display: block;
}

.card-authors-bottom {
    width: 100%;
    text-align: right;
    padding: 12px 18px 10px 18px;
    background: #f6f6f6;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    font-size: 0.98em;
    color: #555;
    margin: 0;
    margin-top: -4px;
    box-sizing: border-box;
}

/* Media queries pour les appareils mobiles */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-tmp {
        padding: 0.5rem 1rem;
        
    }

    .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

/* Optimisation de l'image horloge */
.horloge-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.horloge-img-container {
    max-height: 500px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .horloge-img-container {
        max-height: 300px;
    }
    
    .horloge-title {
        font-size: 1.5rem;
    }
}

/* Cookie Banner */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.cookie-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    transition: opacity 0.3s;
}

.cookie-close:hover {
    opacity: 0.8;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}
