/* Importation des polices */
@font-face {
    font-family: 'Garet'; 
    src: url('fonts/garet/Garet-Book.woff2') format('woff2'),
         url('fonts/garet/Garet-Book.woff') format('woff'),
         url('fonts/garet/Garet-Heavy.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat'; 
    src: url('fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

/* Corps de la page */
body {
    font-family: 'Garet', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('img/background_sécurité.jpg') no-repeat center center/cover;
    color: #fff;
    line-height: 1.6;
}

/* Barre de navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}


.navbar ul li {
    margin: 0;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #fd6c51;
    transition: all 0.3s ease;
    text-align: center;
}

.navbar ul li a:hover {
    background-color: #ff825e;
    color: white;
    transform: scale(1.05);
}

/* Contenu principal */
.legal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    margin: 0 auto;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Section Éditeur */
.editor-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.editor-text {
    flex: 1;
    text-align: left;
}

.editor-text h2 {
    font-size: 2rem;
    color: #004d40;
    margin-bottom: 15px;
}

.editor-text p {
    margin: 0;
}

.logo-container {
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.9);
    width: 120px;
    height: 120px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sections de texte */
.text-section {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.text-section h2 {
    font-size: 2rem;
    color: #004d40;
    margin-bottom: 20px;
}

.text-section p, .text-section ul {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.text-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-section ul li {
    margin: 5px 0;
}

/* Pied de page */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Vue mobile */
@media (max-width: 768px) {
    .navbar {
        justify-content: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        gap: 22px;
    }

    .navbar ul li a {
        width: 100%;
        text-align: left;
    }

    .legal-content {
        padding: 20px 10px;
        max-width: 100%;
        margin: 20px;
    }

    .editor-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo-container {
        display: none;
    }

    .editor-text h2 {
        font-size: 1.4rem;
    }

    .text-section h2 {
        font-size: 1.4rem;
    }

    .text-section p, .text-section ul {
        font-size: 0.9rem;
    }
}

/* Vue tablette et bureau */
@media (min-width: 769px) {
    .navbar ul {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .navbar ul li a {
        text-align: center;
    }
}

/* Vue très petits écrans */
@media (max-width: 480px) {
    .navbar {
        justify-content: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
        gap: 14px;
    }

    .navbar ul li a {
        font-size: 0.8rem;
        padding: 8px 10px;
        text-align: left;
        width: 100%;
    }

    .legal-content {
        padding: 15px;
        margin: 10px;
    }

    .editor-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo-container {
        display: none;
    }

    .editor-text h2 {
        font-size: 1.2rem;
    }

    .text-section h2 {
        font-size: 1.2rem;
    }

    .text-section p, .text-section ul {
        font-size: 0.8rem;
    }
}
