/* SECTION 1 : POLICE ET PARAMÈTRES GÉNÉRAUX */
@font-face {
    font-family: 'Days';
    src: url('../fonts/Days.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url(../img/marche.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Days", sans-serif;
}

/* SECTION 2 : HEADER ET NAVIGATION */
header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}

.menu {
    font-size: 30px;
    cursor: pointer;
    color: black;
    order: 0;
}

.lien1 {
    order: 1;
}

.titre {
    order: 2;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.titre img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.lien2 {
    order: 3;
}

/* Sélecteur de langue */
.lang-selector {
    display: flex;
    align-items: center ;
    justify-content: center;
    border: 2px solid black;
    border-radius: 10px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    background-color: white;
    color: black;
    margin-right: 20px;
}

.lang-selector a {
    text-decoration: none;
    color: black;
}

.lang-selector a:hover {
    text-decoration: underline;
}

.lien1 a,
.lien2 a {
    font-family: Days, sans-serif;
    text-decoration: underline;
    color: black;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
}

/* SECTION 3 : CONTENU MARCHÉ */
.marche-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(173, 216, 230, 0.5);
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    box-sizing: border-box;
}

.marche-content h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    text-decoration: underline black;
    color: #f0f0f0;
}

.marche-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.marche-block h2 {
    font-size: 20px;
    margin-bottom: 8px;
    text-decoration: underline black;
    color: black;
}

.marche-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* SECTION 4 : RESPONSIVE DESIGN */

/* Petits mobiles (320px - 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 5px;
    }
    
    .menu {
        font-size: 24px;
    }
    
    .lien1 a,
    .lien2 a {
        font-size: 16px;
    }
    
    .titre img {
        height: 30px;
    }
    
    .lang-selector {
        font-size: 12px;
        padding: 3px 5px;
    }
    
    .marche-content {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .marche-content h1 {
        font-size: 24px;
    }
    
    .marche-block h2 {
        font-size: 18px;
    }
    
    .marche-block p {
        font-size: 14px;
    }
}

/* Tablettes (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .lien1 a,
    .lien2 a {
        font-size: 18px;
    }
    
    .titre img {
        height: 35px;
    }
    
    .marche-content {
        width: 85%;
        padding: 25px;
        margin: 30px auto;
    }
    
    .marche-content h1 {
        font-size: 32px;
    }
    
    .marche-block h2 {
        font-size: 22px;
    }
}

/* Petits écrans desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .lien1 a,
    .lien2 a {
        font-size: 22px;
    }
    
    .marche-content {
        max-width: 800px;
        margin: 40px auto;
        padding: 35px;
    }
    
    .marche-content h1 {
        font-size: 40px;
    }
    
    .marche-block h2 {
        font-size: 26px;
    }
    
    .marche-block p {
        font-size: 17px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .lien1 a,
    .lien2 a {
        font-size: 25px;
    }
    
    .marche-content {
        max-width: 1000px;
        margin: 60px auto;
        padding: 40px;
    }
    
    .marche-content h1 {
        font-size: 50px;
    }
    
    .marche-block h2 {
        font-size: 28px;
    }
    
    .marche-block p {
        font-size: 18px;
    }
}

/* Grands écrans (1440px+) */
@media (min-width: 1440px) {
    .marche-content {
        max-width: 1200px;
    }
}
