@import url(variables.css);

main {
    display: flex;
    flex-flow: row wrap;
    align-items: space-around;
    justify-content: space-around;
    gap: 40px;
    min-width: 88vw;
    height: auto;
    min-height: 100vh;
    padding-bottom: 50px;
}

#tdm,
menu {
    position: relative;
    z-index: 1;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 50px 40px 20px;
    gap: 12px;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}

.opener {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 280px;
    max-width: 100%;
    height: auto;
    padding: 14px 18px;
    gap: 14px;
    margin: 0;
    text-align: start;
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.3;
    white-space: normal;
    border-radius: 12px;
    color: var(--lcap-blanc);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.opener:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--lcap-jaune);
    color: var(--lcap-blanc);
    text-decoration: none;
}

.opener > i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    font-size: 0.85em;
    font-style: normal;
    line-height: 1;
    color: var(--lcap-jaune);
    transition: transform var(--ease);
}

.opener:focus {
    border-radius: 12px 12px 0 0;
    margin-bottom: -10px;
    border-color: var(--lcap-jaune);
    color: var(--lcap-blanc);
    outline: none;
}

.opener:hover > i,
.opener:focus > i {
    transform: rotate(-90deg);
}

#tdm>nav {
    display: none;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100vw;
    height: auto;
    padding: 20px;
    margin: 0 40px 10px 0;
    gap: 10px;
    border-radius: 0 12px 12px 12px;
    background: var(--home-bg-bottom);
    border: 1px solid var(--card-border);
}

#tdm>nav>a {
    width: auto;
    height: auto;
    padding: 6px 9px 6px 9px;
    color: var(--lcap-bleu);
    border-radius: 20px;
    background: var(--lcap-jaune);
    transition: var(--ease);
}

#tdm>nav>a:hover {
    width: auto;
    height: auto;
    padding: 6px 9px 6px 9px;
    color: var(--lcap-blanc);
    border-radius: 20px;
    background: var(--lcap-bleu);
    border: 1px solid var(--lcap-jaune);
    text-decoration: underline;
    text-underline-offset: 5px;
}

section {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 40vw;
    height: auto;
    padding: 0 40px 40px 40px;
    background-color: var(--card-bg);
    color: var(--lcap-blanc);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    z-index: 1;
}

h2 {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 50px;
    color: var(--lcap-blanc);
    background: var(--header-bg);
    border-bottom: 1px solid var(--home-border-subtle);
}

section>h3 {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 100%;
    height: auto;
    padding-top: 40px;
}

section>p {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 100%;
    height: auto;
    text-wrap: balance;
    font-size: 1.4em;
}

section>p>a {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    color: var(--lcap-jaune);
}

section>p>a:hover {
    color: var(--lcap-blanc);
}

code {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 98%;
    height: auto;
    min-height: 1.5em;
    padding: 1%;
    margin: 1%;
    background-color: var(--home-bg-bottom);
    color: var(--lcap-blanc);
    border: 1px solid var(--card-border);
    border-radius: 6px;
}

a[href="#tdm"] {
    position: sticky;
    top: auto;
    right: 5%;
    bottom: 5%;
    left: 95%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 50px;
    height: 50px;
    font-size: 30px;
    color: var(--lcap-blanc);
    border-radius: 50px;
    opacity: 20%;
    background: var(--lcap-bleu);
    border: 1px solid var(--card-border);
    z-index: 2;
}

a[href="#tdm"]:hover {
    opacity: 100%;
    color: var(--lcap-jaune);
    border-color: var(--lcap-jaune);
}

@media screen and (max-width: 950px) {
section {
    max-width: 96vw;
}
}
