html {
    scroll-behavior: smooth;
}

h2[id="ajout-signature"] {
    scroll-margin-top: 80px; /* Ajuste selon la hauteur de ton menu */
}

body {
    font-family:'Poppins', sans-serif;
    text-align: center ;
    max-width: 900px; /* Largeur max du contenu */
    margin: 0 auto; /* Centrer le contenu */
    padding: 20px; /* Ajouter un peu d'espace autour */
    margin-top: 20px; /* Décaler le contenu sous le bandeau */
    color: #000000; /* Texte noir */
    background-color: #ffffff; /* Fond blanc */
}

.justify-text {
    text-align: justify;
}

.center-text {
    text-align: center;
}

intro {
    font-family:'Poppins', sans-serif;
    text-align: center;
    max-width: 900px; /* Largeur max du contenu */
    margin: 0 auto; /* Centrer le contenu */
    padding: 20px; /* Ajouter un peu d'espace autour */
    margin-top: 20px; /* Décaler le contenu sous le bandeau */
    color: #000000; /* Texte noir */
    background-color: #ffffff; /* Fond blanc */
}

nav {
    background: #1d4466;
    color: white;
    padding: 15px;
    text-align: center;
    width: 100%; /* Prend toute la largeur */
    position: fixed; /* Fixe en haut de la page */
    top: 0;
    left: 0;
}

nav a {
    color: orange ;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
    display: inline-block;
}

header {
    background: #1d4366;
    color: white;
    padding: 50px 0px; /* Ajuster pour ne pas cacher le contenu sous le nav */
    margin-top: 50px; /* Décaler le contenu sous le bandeau */
    width: 100%;
}

.header-with-background {
    background-image: url('images/people.jpg');
    background-size: cover; /* image sur tout l'espace du header */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center; 
    padding: 50px 0px; /* espace autour du texte */
    margin-bottom: 10px;
    position: relative;
}

.header-content {
    margin: auto;
    padding: 20px;
}

.header-content p {
    background: #000000aa;
    padding: 5pxheade;
}

.btn {
    padding: 8px 20px;
    background-color: #f7872a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: auto;
}

.btn {
    background: #ff9800;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}

/* Style du tableau */
table {
    width: 100%; 
    border-collapse: collapse; /* Supprime les espaces entre les bordures */
    margin-top: 20px;
}

/* Bordures et espacement des cellules */
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

/* Style des en-têtes */
th {
    background-color: #1d4466;
    color: white;
}

tr.hidden {
    display: none;
}

/* Largeur des colonnes */
.col-nom {
    width: 30%; 
}

.col-entreprise {
    width: 50%; 
}

.col-pays {
    width: 20%; 
}

/* Style du bouton "Ajoutez votre signature" */
.btn-signature {
    display: inline-block;
    background-color: #ff9800; /* orange */
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* Effet au survol */
.btn-signature:hover {
    background-color: #e68900; /* Orange plus foncé au survol */
}

.container {
    display: flex; 
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 20px; 
    margin: 20px auto; 
    max-width: 900px; 
}


/* New Section à 2 colonnes */
.two-columns {
    display: flex;
    flex-wrap: wrap; /* Permet le passage en colonne sur mobile */
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.two-columns .column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Centre horizontalement */
    text-align: center; 
    flex: 1 1 calc(50% - 20px); /* Deux colonnes sur PC/Tablette */
    padding: 20px;
    box-sizing: border-box;
}

/* Section à 3 colonnes */
.three-columns {
    display: flex;
    flex-wrap: wrap; /* Permet le passage en colonne sur mobile */
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.three-columns .column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; 
    text-align: center; 
    flex: 1 1 calc(33.33% - 20px); /* Trois colonnes sur PC/Tablette */
    padding: 20px;
    box-sizing: border-box;
}

/*  Ajustement des logos */
.logo {
    width: 250px; /* Ajuste la taille pour éviter qu'ils prennent trop de place */
    height: auto; 
    display: block;
    margin-bottom: 10px; /* Ajoute un petit espace sous le logo */
}

/*  Responsive pour mobile */
@media screen and (max-width: 768px) {
    .two-columns .column, 
    .three-columns .column {
        flex: 1 1 100%; /* Affiche une seule colonne par ligne */
        max-width: 100%;
    }

    .logo {
        width: 180px; /* Réduit la taille des logos sur mobile */
    }
}

/*  Liens */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}



table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #1d4466;
    color: white;
}

td {
    background-color: #f9f9f9;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

button {
    padding: 10px;
    margin: 5px;
    background-color: #ff9800;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #e68900;
}

/* Style du bouton "lire tribune sur OF" */
.btn-link {
    display: inline-block;
    text-decoration: none; /* Supprime le soulignement */
    font-weight: bold;
    font-size: 18px;
    color: #1d4466; /* Bleu foncé, adapte selon ton design */
    border: none;
    padding: 10px 0;
    transition: color 0.3s ease-in-out;
}

.btn-link:hover {
    color: #ff9800; /* Changement de couleur au survol */
}

/* Assure que le conteneur du tableau est scrollable sur mobile */
/* 🌟 MODE RESPONSIVE : Affichage en cartes sur mobile */
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Masquer les en-têtes de colonnes sur mobile */
    thead {
        display: none;
    }

    /* Affichage en mode cartes */
    tbody tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 10px;
        background-color: white;
        display: flex;
        flex-direction: column;
    }

    tbody tr td {
        text-align: left;
        padding: 5px;
        display: flex;
    }

    /* Ajouter les noms des colonnes devant les valeurs */
    tbody tr td::before {
        content: attr(data-label);
        font-weight: bold;
        min-width: 120px;
        display: inline-block;
    }
}


.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.pagination button:hover {
    background-color: #ff9800;
}

.pagination span {
    font-size: 18px;
    font-weight: bold;
}

/* Style du bouton "OF" */
.btn-OF {
    display: inline-block;
    background-color: #1d4366; /* bleu */
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}