@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #f5f5f5;
    --accent-color: #a51202;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-gray: rgba(0, 0, 0, 0.2);
    --hover-bg: rgba(88, 0, 0, 0.05);
    --font-body: Charcoal, sans-serif;
}

* {
    box-sizing: border-box;
}
body,
.toc-item .title, .block-content,
.tab-content {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: .5s;
}
a:hover {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.a-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
}
h1 {
    border-bottom: 8px solid var(--accent-color)
}
h1 span {
  display: block;
  font-size: 0.6em;
  font-weight: normal;
  color: #666;
  padding-left: 1rem;
}
.support-block {
    border: 1px solid grey;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .5rem;
    margin-bottom: 1.5rem;
    height: 180px;
    transition: box-shadow 0.6s ease-in-out;
    cursor: pointer;
}
.support-block:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.support-block img {
    width: 110px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
}
.support-block-text {
    flex: 1;
}

/* TOC */
.toc {
    max-width: 800px;
    margin: auto;
    color: #222;
}

.toc h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.toc .chapter h3 {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.toc .chapter .chapter-title,
.toc .chapter .chapter-page {
    color: #222;
    text-transform: uppercase;
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
    font-weight: bolder;
    font-size: 1.3rem;

}

.toc-type {
    font-size: 0.8em;
    color: #777;
    padding-left: 2rem;
}
.toc-item {
    display: flex;
    justify-content: space-between;
    padding: 0.05rem 0;
}

.toc .chapter h3 .chapter-page {
    padding: .25rem;
}
.toc .chapter h3 .chapter-page,
.toc-item .page .page-nb {
    border-radius: 50%;
    transition: 1s;
}
.toc .chapter h3:hover .chapter-page,
.toc-item:hover .page .page-nb {
    font-weight: bold;
    padding: .3rem;
    background-color: black;
    color: white;
}
.toc-item .title {
    flex: 1;
}

.toc-item .page {
    width: 3rem;
    text-align: right;
}

.toc-item.sub .title {
    margin-left: 1.5rem;
    font-style: italic;
}

.toc-item.bold .title {
    font-weight: bold;
}
.video-toc-height {
    height: 360px;
    overflow-y: auto;
}
.tabs {
    padding: 1rem;
    position: relative;
}

.tabs-responsive {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-responsive input[type="radio"],
.tabs-static input[type="radio"] {
    display: none;
}

.tabs .labels {
    display: flex;
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: -1px;
}

.tabs label {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    background: var(--secondary-color);
    color: var(--primary-color);
    transition: background var(--transition-speed), color var(--transition-speed);
    border: 1px solid var(--border-gray);
    border-bottom: none;
    margin: 0;
}

.tabs label:first-child {
    border-top-left-radius: var(--border-radius);
}

.tabs label:last-child {
    border-top-right-radius: var(--border-radius);
}

.tabs label:hover {
    background: var(--hover-bg);
}

/* #tab1:checked~.labels label[for="tab1"],
#tab2:checked~.labels label[for="tab2"],
#tab3:checked~.labels label[for="tab3"] {
    background: #fff;
    color: var(--accent-color);
    box-shadow: var(--box-shadow);
    position: relative;
    top: 1px;
    border-bottom: 1px solid #fff;
} */

.tabs-static #tab-static-1:checked ~ .labels label[for="tab-static-1"],
.tabs-static #tab-static-2:checked ~ .labels label[for="tab-static-2"],
.tabs-static #tab-static-3:checked ~ .labels label[for="tab-static-3"],
.tabs-static #tab-static-4:checked ~ .labels label[for="tab-static-4"],
.tabs-responsive #tab1:checked ~ .labels label[for="tab1"],
.tabs-responsive #tab2:checked ~ .labels label[for="tab2"],
.tabs-responsive #tab3:checked ~ .labels label[for="tab3"] {
    background: #fff;
    color: var(--accent-color);
    box-shadow: var(--box-shadow);
    position: relative;
    top: 1px;
    border-bottom: 1px solid #fff;
}

.tabs-responsive #tab1:checked ~ #infos,
.tabs-responsive #tab2:checked ~ #toc,
.tabs-static #tab-static-1:checked ~ #tab-static-1-content,
.tabs-static #tab-static-2:checked ~ #tab-static-2-content,
.tabs-static #tab-static-3:checked ~ #tab-static-3-content,
.tabs-static #tab-static-4:checked ~ #tab-static-4-content {
    display: block;
}

.block-content,
.tabs .tab-content {
    background: #fff;
    border-radius: 0;
    box-shadow: var(--box-shadow);
    padding: 1rem;
    border: 1px solid var(--border-gray);
    transition: opacity var(--transition-speed);
}
.tabs-responsive .tab-content,
.tabs-static .tab-content {
    display: none;
}

.cols-element {
    column-count: 1;
    column-gap: 1.5rem;
}

.cols-element .col-element {
    break-inside: avoid;
    margin-bottom: 1rem;
}

#timecodes > div > span {
    cursor: pointer;
    transition: 1s;
}
#timecodes > div > span:hover {
    color: var(--accent-color);
}
.nav-tabs .nav-link {
    color: gray;
    text-decoration: none;
}
#infos {
    position: relative;
}
#tab1:checked~#infos,
#tab2:checked~#toc {
    display: block;
}

.tabs .tab-content h2 {
    font-family: var(--font-title);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.25rem;
    margin-top: 0;
    display: inline-block;
}

.support-infos {
    margin: .9rem;
    font-size: 1.3rem;
    z-index: 1;
}
.support-infos span:first-child {
    font-size: .9rem;
}

.support-infos-img {
    position:absolute;
    top: 1rem;
    right: 1rem;
    z-index: 0;
    opacity: .1;
    transition: 1s;
}
.support-infos-img:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .tabs-responsive {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
    }

    .tabs-responsive .labels,
    .tabs-static input[type="radio"],
    .tabs-responsive label {
        display: none;
    }

    .tabs-responsive .tab-content {
        display: block !important;
        transition: none;
    }

    .cols-element {
        column-count: 2;
    }
}
@media (min-width: 1200px) {
    .cols-element {
        column-count: 3;
    }
}
.mail_address {
  display: none;
}
input.mail_address {
    height: 0;
    margin: 0;
    text-decoration: none;
    border: none;
  }
.site-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5em;
}

.site-footer a:hover {
    text-decoration: underline;
}

.section-magique > div {
    min-width: 200px;
}