/* Reset et styles de base */
:root {
    --text-color: #727272;
    /* Variable pour la couleur de texte principale */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Pour Firefox */
    -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
}

/* Masquer la barre de défilement pour Webkit (Chrome, Safari, etc.) */
*::-webkit-scrollbar {
    display: none;
}

@font-face {
    font-family: 'SuisseBP';
        src: url('resources/fonts/SuisseBPRegular.otf?v=1.0.11') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'SuisseBP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
}

/* Classe spécifique pour la page d'accueil */
body.home {
    overflow: hidden;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: #ffffff;
    height: 70px;
        box-sizing: border-box;
}

.main-nav h1 {
    font-size: 18px;
    font-weight: 400;
    font-family: 'SuisseBP', monospace;
    }
    
    .main-nav h1 a {
        text-decoration: none;
        color: var(--text-color);
        transition: color 0.3s ease;
    }
    
    .main-nav h1 a:hover {
        color: #666;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    }
    
    .main-nav li {
        width: 120px;
        text-align: right;
    }
    
    .main-nav li:last-child {
        margin-right: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
        font-size: 18px;
        font-family: 'SuisseBP', monospace;
        font-weight: 400;
        text-align: right;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #666;
}

/* Galerie Swiper */
.gallery-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 4rem 0; /* Augmente l'espace pour le header et footer */
}

.swiper {
    width: 100%;
    height: calc(100vh - 8rem); /* Ajuste la hauteur en tenant compte du padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
        /* Ajout pour permettre le positionnement absolu */
}

.swiper-wrapper {
    flex: 1;
    margin-bottom: 0;
        /* Supprimé la marge pour réduire l'espace */
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centre verticalement le contenu */
    padding: 0 2rem;
    height: 100%; /* Assure que le slide prend toute la hauteur disponible */
    position: relative;
        /* Pour permettre le positionnement des éléments enfants */
}

.swiper-slide img {
    width: 100%;
    max-width: min(80vw, 1200px);
    height: auto;
    max-height: calc(100vh - 22rem);
        /* Réduit davantage la hauteur max pour laisser plus d'espace en bas */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    user-select: none;
}

/* Pagination et légendes */
.image-caption {
    color: var(--text-color);
        /* Utilisation de la variable */
    font-size: 0.9rem;
    text-align: center;
    max-width: min(80vw, 600px);
    line-height: 1.4;
    margin: 0 auto 0.7rem;
        min-height: 1.4rem;
        /* Réserver de l'espace même quand vide */
        display: block;
        font-family: 'SuisseBP', sans-serif;
            /* Passage à SuisseBP pour une meilleure lisibilité */
}

.swiper-pagination {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    }
    
    .pagination-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 1rem;
        line-height: 1;
    }
    
    .fraction-divider {
        margin: 0 4px;
        /* Légèrement plus d'espace entre les chiffres et le séparateur */
        display: inline-block;
        line-height: 1;
        position: relative;
        vertical-align: baseline;
        /* Assurer l'alignement vertical avec les numéros */
        font-size: 0.9rem;
        /* Même taille que les chiffres */
        color: var(--text-color);
            /* Utilisation de la variable */
}

/* Style pour les numéros de pagination */
.swiper-pagination-current,
.swiper-pagination-total {
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1;
    position: static;
    /* Garantir la même hauteur */
    font-family: 'SuisseBP', sans-serif;
        /* Mise à jour vers SuisseBP pour cohérence */
    font-weight: normal;
    /* Assurer le même poids */
    padding: 0 1px;
    color: var(--text-color);
        /* Utilisation de la variable */
}

/* Container pour la légende et pagination */
.caption-pagination-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 2rem;
    background: white;
    z-index: 10;
    width: 100%;
    min-height: 4rem;
    /* Hauteur minimum pour éviter les sauts */
    letter-spacing: 0.02rem;
    /* Légère amélioration pour la lisibilité */
}
/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    text-align: center;
    background: #fff;
    font-size: 0.8rem;
    font-family: 'SuisseBP', sans-serif;
    color: #666;
    z-index: 100;
}

body:not(.home) footer {
    position: static;
}

/* Page Projets */
.projects-container {
    width: 1728px; /* Mise à jour pour la nouvelle largeur */
    margin: 0 auto;
    margin-top: 60px; /* Hauteur de la navbar */
    position: relative;
    background: white;
    overflow: hidden;
    padding-top: 40px; /* Ajout d'un padding pour correspondre au top: 40px dans exemple.html */
}

.projects-list {
    width: 100%;
    position: relative;
}

/* Ligne d'en-tête ajoutée */
.projects-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 1668px;
    height: 0px;
    border-top: 0.5px solid black;
    z-index: 5; /* Assure que la ligne est visible */
}

.project-row {
    width: 1728px;
    height: 203px; /* Ajusté selon exemple.html */
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: block; /* Changé pour utiliser des positions absolues comme dans l'exemple */
    box-sizing: border-box;
    border-bottom: none; /* Supprimé car nous utilisons ::after maintenant */
} 

.project-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 1668px;
    height: 0px;
    border-top: 0.5px solid black;
}

.project-image {
    width: 135px; /* Mise à jour selon Figma */
    height: 193px;
    margin: 0;
    padding: 0;
    position: absolute; /* Changé à absolute */
    left: 50px; /* Mise à jour selon exemple.html */
    top: 5px; /* Mise à jour selon exemple.html */
}

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

.project-title {
    position: absolute; /* Changé à absolute */
    left: 311px; /* Mise à jour selon exemple.html */
    top: 5px; /* Mise à jour selon exemple.html */
    width: 124px; /* Mise à jour selon exemple.html */
    color: var(--text-color);
    font-size: 12px;
    font-family: 'SuisseBP';
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.project-description {
    position: absolute; /* Changé à absolute */
    width: 683px; /* Mise à jour selon exemple.html */
    height: 192px;
    left: 593px; /* Mise à jour selon exemple.html */
    top: 6px; /* Mise à jour selon exemple.html */
    color: var(--text-color);
    font-size: 12px;
    font-family: 'SuisseBP', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.category {
    position: absolute; /* Changé à absolute */
    width: 124px;
    left: 1433px; /* Mise à jour selon exemple.html */
    top: 3px; /* Mise à jour selon exemple.html */
    text-align: right;
    color: var(--text-color);
    font-size: 12px;
    font-family: 'SuisseBP';
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.year {
    position: absolute; /* Changé à absolute */
    width: 124px;
    left: 1574px; /* Mise à jour selon exemple.html */
    top: 3px; /* Mise à jour selon exemple.html */
    text-align: right;
    color: var(--text-color);
    font-size: 12px;
    font-family: 'SuisseBP';
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Séparateur entre les projets - supprimé car remplacé par border-bottom */

/* Curseurs standard pour tous les éléments */
body,
.gallery-container,
.swiper,
.swiper-slide {
    cursor: default !important;
}

/* Curseurs pour les éléments interactifs standard */
.swiper-pagination, a, button {
    cursor: pointer;
}

/* Responsive Design désactivé à la demande du client */
/* 
@media (max-width: 1024px) {
    ...styles désactivés...
}

@media (max-width: 768px) {
    ...styles désactivés...
    }
*/

/* Styles globaux pour les éléments de projet */
.projects-list,
.project-row,
.project-title,
.category,
.year {
    color: var(--text-color) !important;
    font-size: 12px !important;
    font-family: 'SuisseBP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .project-description {
        color: var(--text-color) !important;
        font-size: 12px !important;
        font-family: 'SuisseBP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Page À propos */
.about-container {
    width: 1728px;
    margin: 0 auto;
    margin-top: 73px;
    position: relative;
    background: white;
    padding-top: 0;
    height: calc(100vh - 73px);
    overflow: hidden;
    z-index: 1;
}

.about-header {
    margin-top: 74px;
    position: relative;
}

.about-header h2 {
    width: 124px;
    left: 171px;
    position: absolute;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'SuisseBP', monospace;
    font-weight: 400;
    word-wrap: break-word;
    margin-top: 36px;
    /* 30px (marge de la ligne) + 6px d'espace */
}

.separator-line {
    width: 402px;
    height: 0px;
    left: 171px;
    position: absolute;
    border-top: 0.5px solid black;
    /* Exactement 0.5px */
    margin-top: 30px;
}

.about-content {
    position: relative;
    margin-top: 120px;
}

.bio-text {
    width: 542px;
    left: 312px;
    top: 192px;
    position: absolute;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'SuisseBP', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    line-height: 1.5;
}

.bio-text p {
    margin-bottom: 15px;
}

.contact-info {
    width: 263px;
    height: 117px;
    left: 310px;
    top: 485px;
    position: absolute;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'SuisseBP', sans-serif;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

.about-footer {
    width: 402px;
    left: 311px;
    position: absolute;
    bottom: 30px;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'SuisseBP', sans-serif;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
    z-index: 10;
}