:root 
{
    --couleur-primaire: #6366f1;
    --primaire-survol: #4f46e5;
    --couleur-fond: #f8fafc;
    --fond-barre-laterale: rgba(255, 255, 255, 0.8);
    --texte-principal: #1e293b;
    --texte-attenue: #64748b;
    --couleur-bordure: #e2e8f0;
    --ombre: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --fond-effet-verre: rgba(255, 255, 255, 0.7);
    --bordure-effet-verre: rgba(255, 255, 255, 0.3);
}

* 
{
   margin: 0;
   padding: 0;
   /* box-sizing: border-box;*/
   box-sizing: content-box;
    border: none;   
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body 
{
    background-color: var(--couleur-fond);
    color: var(--texte-principal);
   /* line-height: 1; 1.6;*/
    overflow-x: hidden;
}

.conteneur-application 
{
    display: flex;
    min-height: 100vh;
}

/* Panneau de contenu */
.zone-contenu
{
    flex: auto; /*1;*/
   /* padding: 3rem;*/
   padding-top: 5px;
   padding-bottom: 5px;
   
    max-width: 600px;
   /* margin: 0 auto;*/
    margin: 5px;
    animation: apparitionFondue 0.4s ease-out;
    line-height: 1.4;
}

p
{
   line-height: 1.4;
   padding-top: 2rem;
   text-indent: 2rem;
}

ul {
  list-style-type: square;
  padding-left: 20px;
}

.barre-laterale 
{
    width: 300px;
    background: var(--fond-effet-verre);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--couleur-bordure);
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
    line-height: 1; /*1.6;*/
   /* flex: initial;*/
}

.rubrique
{
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    list-style: none;
    transition: background 0.2s;
    position: relative;
    user-select: none;


    font-weight: 600;
    text-align: center; 
   /* margin-left: 1.5rem;*/
    margin-top: 0.25rem;
}
.rubrique:hover 
{
    background: rgba(99, 102, 241, 0.05);
}

.navigation-arborescente details 
{
    margin-bottom: 0.5rem;
}

.navigation-arborescente summary 
{
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 200;
    list-style: none;
    transition: background 0.2s;
    position: relative;
    user-select: none;
    text-align: left;
}

.titre
{
    font-weight: 600;
    text-align: center;   
}

.navigation-arborescente summary::before 
{
    content: "➤";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: var(--couleur-primaire);
}

.navigation-arborescente details[open]>summary::before 
{
    transform: rotate(90deg);
}

.navigation-arborescente summary:hover 
{
    background: rgba(99, 102, 241, 0.05);
}

.navigation-arborescente details details
{
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

.navigation-arborescente .lien-navigation 
{
    display: block;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    text-decoration: none;
    color: var(--texte-attenue);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.navigation-arborescente .lien-navigation:hover
{
    color: var(--couleur-primaire);
    background: rgba(99, 102, 241, 0.05);
}

@keyframes apparitionFondue
{
    from
    {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2
{
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--couleur-primaire);
}

/* navigation mobile */
.bascule-navigation
{
    display: none;
}

.en-tete-mobile
{
    display: none;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--couleur-bordure);
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
}

.etiquette-bascule-navigation
{
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}

.icone-menu,
.icone-menu::before,
.icone-menu::after
{
    display: block;
    background: var(--texte-principal);
    height: 2px;
    width: 20px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}

.icone-menu::before,
.icone-menu::after
{
    content: "";
    position: absolute;
}

.icone-menu::before
{
    top: -6px;
}

.icone-menu::after
{
    bottom: -6px;
}

/* adaptation */
@media (max-width: 768px)
{
    .conteneur-application
    {
        flex-direction: column;
    }

    .en-tete-mobile
    {
        display: flex;
    }

    .barre-laterale
    {
        position: fixed;
        left: -300px;
        top: 60px;
        width: 300px;
        height: calc(100vh - 60px);
        background: white;
        transition: transform 0.3s ease;
    }

    .bascule-navigation:checked~.conteneur-application .barre-laterale
    {
        transform: translateX(300px);
    }

    .zone-contenu
    {
        padding: 2rem 1rem;
    }

    /* animation sur le menu */
    .bascule-navigation:checked~.en-tete-mobile .icone-menu
    {
        background: transparent;
    }

    .bascule-navigation:checked~.en-tete-mobile .icone-menu::before
    {
        transform: rotate(45deg);
        top: 0;
    }

    .bascule-navigation:checked~.en-tete-mobile .icone-menu::after
    {
        transform: rotate(-45deg);
        bottom: 0;
    }
}