html, body {
    margin: 0 ;
    padding: 0 ;
    width: 100% ;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background: white;                     
}

body::before{
    content:"";
    position: fixed;
    inset:0;
    z-index: -1;
    
    background-image:
        linear-gradient(to right, rgba(83, 82, 82, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(83,82,82,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    ;
}

/* Header global */
.header {
    position: relative;
    padding: 40px 20px 20px;
    text-align: center;
}

/* Langue en haut à droite */
.lang {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 14px;
}

.lang a {
    text-decoration: none;
    color: black;
}

.active-lang {
    font-weight: bold;
}

/* Logo */
.logo img {
    height: 110px; 
    margin-bottom: 20px; 
}
.logo {
    margin-top: -20px; /* Augmente la marge basse du logo */
}

/* Menu */
.menu {
    display: flex;
    justify-content: center; /*Pour que ce ne soit plus resséré au centre */
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0px;  /* Espace entre les deux boutons */
}

.menu a {
    padding: 10px 20px; /*Hauteur, padding des boutons*/  
    border: 1px solid #868484;
    text-decoration: none;
    color: black;
    background: #f5f5f5;
    text-align: center;
    
    width: 250px; /* Largeur fixe pour tous les boutons */
    white-space: nowrap;
}

@media (maax-width: 768px){
    .menu {
        flex-wrap: wrap;
        gap: 5px;
    }
    .menu a{
        padding: 8px 20px;
        font-size: 14px;
    }
    .lang {
        top: 15px;
        right: 20px;
        font-size: 12px;
    }
    
    .logo img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 10px 15px;
    }
    
    .menu a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .logo img {
        height: 70px;
    }
}



/* Hover */
.menu a:hover {
    background: #ddd;
}

/* Bouton actif */
.menu a.active {
    background: #e0e0e0; /*Couleur lorsque selectionné*/
    color: black;
    border-color: #868484;
    font-weight: bold;
    /*text-decoration: underline;*/
    /*text-underline-offset: 6px;*/
}


/* PARTIE "Inspirations" */ 

.desktop {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 60px;
    padding: 20px 60px 60px 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

/* Icône projet */
.project-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.project-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.project-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    cursor: pointer;
}

.project-icon span {
    font-size: 14px;
    display: block;
    cursor: pointer;
}

.project-icon:hover span {
    text-decoration: underline;
}

/* Sélection simple (clic) */
.project-icon.selected {
    background-color: rgba(0, 123, 255, 0.1);
}

.project-icon.selected span {
    background: #e0e0e0;
    border: 1px dotted #888;
    padding: 2px 4px;
}


/* STYLES POUR LA PAGE BAGAGE */

.bagage-content {
    padding: 5px;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px; /* Alignement avec le reste du contenu */
    padding-right: 60px;
}

.bagage-content h1 {
    margin-bottom: 30px;
}

/* Sous-titre personnalisable */
.bagage-subtitle {
    font-size: 24px; /* Modifiable : taille du sous-titre */
    font-family: Arial, sans-serif; /* Modifiable : police du sous-titre */
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.bagage-subtitle-2 {
    font-size: 24px; /* Modifiable : taille du sous-titre */
    font-family: Arial, sans-serif; /* Modifiable : police du sous-titre */
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
}

.marge {
  margin-left: 3em;
}



/* Texte avec lien PDF */
.bagage-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0; 
    color: #000000;
}
.bagage-text-details {
    font-size: 16px;
    line-height: 1.6;
    margin: 0; 
    color: #000000;
}

.bagage-text-classes {
    font-size: 16px;
    line-height: 1.6;
    margin: 0; 
    color: #8e8c8c;
}
.bagage-text-classes-2 {
    font-size: 16px;
    line-height: 1.6;
    margin: 0; 
    color: #646464;
}

/* Lien PDF en bleu */
.pdf-link {
    color: #426f9c;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.pdf-link:hover {
    text-decoration: underline;
    color: #426f9c;
}

/* Responsive pour la page bagage */
@media (max-width: 768px) {
    .bagage-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .bagage-subtitle {
        font-size: 20px;
    }
    
    .bagage-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bagage-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .bagage-subtitle {
        font-size: 18px;
    }
}


/* STYLES POUR LA PAGE ARTICLES */

.articles-content {
    padding: 5px;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.articles-content h1 {
    margin-bottom: 30px;
}

/* Sous-titre pour la page Articles */
.articles-subtitle {
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

/* Texte pour la page Articles */
.articles-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #000000;
}

/* Responsive pour la page articles */
@media (max-width: 768px) {
    .articles-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .articles-subtitle {
        font-size: 20px;
    }
    
    .articles-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .articles-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .articles-subtitle {
        font-size: 18px;
    }
}


/* STYLES POUR LA PAGE ACCUEIL */

.home-content {
    padding: 5px 20px 60px 20px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 15px;
}

.home-wrapper {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.home-wrapper h1 {
    margin-bottom: 25px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    color: #333;
}

.home-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.home-text-l {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0px;
    color: #333;
    text-align: left;
}

.home-text-j {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
    text-align: justify; 
}


/* Ligne avec le code */
.code-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

/* Champ de saisie du code - discret mais intuitif */
.code-input {
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 4px 8px;
    font-size: 16px;
    width: 120px;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: center;
    font-family: Arial, sans-serif;
}

.code-input:focus {
    border-bottom: 1px solid #666;
}

.code-input::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Contenu caché */
.hidden-content {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #426f9c;
    border-radius: 4px;
    animation: fadeIn 0.5s ease;
}

.special-text {
    margin: 0;
    color: #333;
    font-style: italic;
}

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

/* Responsive pour la page accueil */
@media (max-width: 768px) {
    .home-content {
        padding: 40px 20px;
    }
    
    .home-wrapper h1 {
        font-size: 28px;
    }
    
    .home-text {
        font-size: 15px;
    }
    
    .code-input {
        width: 100px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 30px 15px;
    }
    
    .home-wrapper h1 {
        font-size: 24px;
    }
    
    .home-text {
        font-size: 14px;
    }
    
    .code-line {
        flex-direction: column;
        align-items: center;
    }
    
    .code-input {
        margin-top: 8px;
        width: 150px;
    }
}
