/* Styles spécifiques pour la page CGV */
.blue_section_small {
    background: var(--purple);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
    min-height: 200px;
    height: auto;
    width: 100%;
}

.cgv-header {
    padding-top: 40px;
}

.cgv-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.cgv-header p {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0;
}

.cgv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.cgv-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.cgv-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

.cgv-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg_light);
    border: 1px solid var(--border);
    color: var(--font);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cgv-action-btn:hover {
    background-color: var(--border_light);
}

.cgv-action-btn svg {
    width: 16px;
    height: 16px;
}

.cgv-toc {
    background-color: var(--bg_light);
    border-radius: var(--border-radius-sm);
    padding: 20px 30px;
    margin-bottom: 30px;
}

.cgv-toc h2 {
    font-size: 20px;
    color: var(--blue);
    margin-bottom: 15px;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
}

.cgv-toc ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}

.cgv-toc ul li {
    margin-bottom: 10px;
}

.cgv-toc ul li a {
    color: var(--font);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
    display: inline-block;
    padding: 3px 0;
}

.cgv-toc ul li a:hover, 
.cgv-toc ul li a.active {
    color: var(--blue);
    text-decoration: underline;
}

.cgv-intro {
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--font);
}

.cgv-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.cgv-content-section {
    padding-left: 15px;
    border-left: 3px solid var(--bg_light);
}

.cgv-section h2 {
    font-size: 24px;
    color: var(--blue);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.cgv-subsection {
    margin-bottom: 25px;
}

.cgv-subsection h3 {
    font-size: 18px;
    color: var(--font);
    margin-bottom: 15px;
}

.cgv-subsection h4 {
    font-size: 16px;
    color: var(--font);
    margin-bottom: 12px;
    font-style: italic;
}

.cgv-subsection p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--font);
}

.cgv-subsection ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cgv-subsection ul li {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--font);
}

.cgv-subsection ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cgv-subsection ol li {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--font);
}

.cgv-definitions {
    list-style-type: none;
    margin-left: 0;
}

.cgv-definitions li {
    margin-bottom: 15px;
    padding-left: 0;
}

.cgv-definitions strong {
    color: var(--blue);
}

.cgv-annexes {
    list-style-type: disc;
    margin-left: 20px;
}

.cgv-annexes li {
    margin-bottom: 10px;
}

.cgv-date {
    margin-top: 40px;
    text-align: right;
    font-style: italic;
    color: var(--font-light);
}

.cgv-annexe-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--blue);
}

.cgv-note {
    font-style: italic;
    color: var(--font-light);
    margin-top: 20px;
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    text-align: center;
}

.cgv-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.cgv-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.cgv-table th {
    background-color: var(--bg_light);
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border);
}

.cgv-table td {
    padding: 10px;
    border: 1px solid var(--border);
    vertical-align: top;
}

.cgv-table tr:nth-child(even) {
    background-color: var(--bg_light_alt);
}

.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    transition: bottom 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    bottom: 30px;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--blue);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.back-to-top a:hover {
    background-color: var(--blue);
    color: var(--white);
}

.back-to-top svg {
    margin-bottom: 5px;
    width: 20px;
    height: 20px;
}

/* Styles pour l'impression */
@media print {
    .blue_section_small,
    .footer,
    .cgv-actions,
    .back-to-top {
        display: none !important;
    }
    
    .cgv-container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .cgv-content {
        box-shadow: none;
        padding: 0;
    }
    
    .cgv-toc {
        background-color: transparent;
        border: 1px solid #ddd;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
    
    .cgv-section {
        page-break-before: auto;
    }
}

/* Responsive styles */
@media (max-width: 980px) {
    .cgv-container {
        padding: 20px 15px;
    }
    
    .cgv-content {
        padding: 30px 20px;
    }
    
    .cgv-toc ul {
        columns: 1;
    }
    
    .cgv-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .blue_section_small {
        min-height: 180px;
    }
    
    .cgv-header h1 {
        font-size: 2rem;
    }
    
    .cgv-content {
        padding: 25px 15px;
    }
    
    .cgv-section h2 {
        font-size: 22px;
    }
    
    .cgv-subsection h3 {
        font-size: 17px;
    }
    
    .back-to-top {
        right: 20px;
    }
    
    .back-to-top a {
        width: 50px;
        height: 50px;
    }
    
    .cgv-toc {
        display: none;
    }
    
    .cgv-toc.toc-visible {
        display: block;
    }
    
    #toggleToc {
        display: flex;
    }
}

@media (max-width: 480px) {
    .blue_section_small {
        min-height: 160px;
    }
    
    .cgv-header h1 {
        font-size: 1.75rem;
    }
    
    .cgv-header p {
        font-size: 1rem;
    }
    
    .cgv-content {
        padding: 20px 12px;
    }
    
    .cgv-intro {
        font-size: var(--font-size-base);
    }
    
    .cgv-section h2 {
        font-size: 20px;
    }
    
    .cgv-subsection h3 {
        font-size: 16px;
    }
    
    .cgv-subsection p,
    .cgv-subsection ul li {
        font-size: var(--font-size-sm);
    }
    
    .cgv-toc {
        padding: 15px;
    }
    
    .back-to-top {
        right: 15px;
    }
    
    .back-to-top a {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
    
    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
    
    .cgv-actions {
        justify-content: center;
    }
    
    .cgv-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}