:root {
    --primary-color: #1a2a1f;
    --secondary-color: #4CAF50;
    --accent-color: #8BC34A;
    --text-color: #E8F5E9;
    --background-color: #0a0f0c;
    --range-background: #2c3e50;
    --sidebar-width: 250px;
    --transition-duration: 0.3s;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    /*margin-left: var(--sidebar-width);*/
    transition: margin-left 0.3s ease-in-out;
}

#main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-left: 0;
}

.cgv-section {
    background-color: rgba(26, 42, 31, 0.95);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    padding: 40px;
    color: var(--text-color);
}

.cgv-section h1 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.last-update {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.cgv-content {
    max-width: 800px;
    margin: 0 auto;
}

.cgv-content h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.cgv-content h3 {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.cgv-content p,
.cgv-content ul,
.cgv-content ol {
    margin-bottom: 15px;
    line-height: 1.6;
}

.cgv-content ul,
.cgv-content ol {
    padding-left: 20px;
}

.cgv-content li {
    margin-bottom: 5px;
}

/* Styles pour les liens dans la section de confidentialité */
.cgv-content a {
    color: #ffffff;
    /* Couleur blanche pour les liens */
    text-decoration: none;
    /* Supprime le soulignement par défaut */
    border-bottom: 1px dotted #ffffff;
    /* Ajoute une ligne pointillée sous le lien */
    transition: border-bottom 0.3s ease;
    /* Ajoute une transition douce pour l'effet de survol */
}

/* Effet de survol pour les liens */
.cgv-content a:hover {
    border-bottom: 1px solid #ffffff;
    /* Change la ligne pointillée en ligne pleine au survol */
}

/* Assurez-vous que les liens visités restent blancs aussi */
.cgv-content a:visited {
    color: #ffffff;
}

.cgu-section {
    background-color: rgba(26, 42, 31, 0.95);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    padding: 40px;
    color: var(--text-color);
}

.cgu-section h1 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.cgu-content {
    max-width: 800px;
    margin: 0 auto;
}

.cgu-content h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.cgu-content h3 {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.cgu-content p,
.cgu-content ul,
.cgu-content ol {
    margin-bottom: 15px;
    line-height: 1.6;
}

.cgu-content ul,
.cgu-content ol {
    padding-left: 20px;
}

.cgu-content li {
    margin-bottom: 5px;
}

/* Styles pour les liens dans la section de confidentialité */
.cgu-content a {
    color: #ffffff;
    /* Couleur blanche pour les liens */
    text-decoration: none;
    /* Supprime le soulignement par défaut */
    border-bottom: 1px dotted #ffffff;
    /* Ajoute une ligne pointillée sous le lien */
    transition: border-bottom 0.3s ease;
    /* Ajoute une transition douce pour l'effet de survol */
}

/* Effet de survol pour les liens */
.cgu-content a:hover {
    border-bottom: 1px solid #ffffff;
    /* Change la ligne pointillée en ligne pleine au survol */
}

/* Assurez-vous que les liens visités restent blancs aussi */
.cgu-content a:visited {
    color: #ffffff;
}


@media (max-width: 768px) {
    .cgu-section {
        padding: 20px;
    }

    .cgu-section h1 {
        font-size: 28px;
    }

    .cgu-content h2 {
        font-size: 22px;
    }

    .cgu-content h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {

    .cgu-content table,
    .cgu-content thead,
    .cgu-content tbody,
    .cgu-content th,
    .cgu-content td,
    .cgu-content tr {
        display: block;
    }

    .cgu-content thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .cgu-content tr {
        border: 1px solid var(--secondary-color);
        margin-bottom: 15px;
        padding: 10px;
    }

    .cgu-content td {
        border: none;
        position: relative;
        padding: 10px 5px 10px 50%;
        text-align: left;
        border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    }

    .cgu-content td:before {
        content: attr(data-label);
        position: absolute;
        left: 5px;
        width: 45%;
        padding-right: 10px;
        white-space: normal;
        font-weight: bold;
        color: var(--secondary-color);
    }

    .cgu-content td:last-child {
        border-bottom: none;
    }

    /* Ajustement spécifique pour la colonne "Durée de conservation" */
    .cgu-content td[data-label="Durée de conservation"] {
        padding-left: 5px;
        padding-top: 30px;
        /* Espace pour le libellé au-dessus */
    }

    .cgu-content td[data-label="Durée de conservation"]:before {
        width: 100%;
        white-space: normal;
        top: 5px;
        left: 5px;
    }
}



@media (max-width: 768px) {

    .main-content {
        margin-left: 0 !important;
    }

    .main-content-wrapper {
        margin-left: 0 !important;
    }

    .cgv-section {
        padding: 20px;
    }

    .cgv-section h1 {
        font-size: 28px;
    }

    .cgv-content h2 {
        font-size: 22px;
    }

    .cgv-content h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {

    .cgv-content table,
    .cgv-content thead,
    .cgv-content tbody,
    .cgv-content th,
    .cgv-content td,
    .cgv-content tr {
        display: block;
    }

    .cgv-content thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .cgv-content tr {
        border: 1px solid var(--secondary-color);
        margin-bottom: 15px;
        padding: 10px;
    }

    .cgv-content td {
        border: none;
        position: relative;
        padding: 10px 5px 10px 50%;
        text-align: left;
        border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    }

    .cgv-content td:before {
        content: attr(data-label);
        position: absolute;
        left: 5px;
        width: 45%;
        padding-right: 10px;
        white-space: normal;
        font-weight: bold;
        color: var(--secondary-color);
    }

    .cgv-content td:last-child {
        border-bottom: none;
    }

    /* Ajustement spécifique pour la colonne "Durée de conservation" */
    .cgv-content td[data-label="Durée de conservation"] {
        padding-left: 5px;
        padding-top: 30px;
        /* Espace pour le libellé au-dessus */
    }

    .cgv-content td[data-label="Durée de conservation"]:before {
        width: 100%;
        white-space: normal;
        top: 5px;
        left: 5px;
    }
}

@media (min-width: 768px) {
    .main-content-wrapper {
        margin-left: var(--sidebar-width);
    }

    .main-content {
        margin-left: var(--sidebar-width)
    }
}