


/* ---- My light CSS Reset ---- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}


* {
    margin: 0;
    padding: 0;
}

:is(ul, ol) {
    padding-inline-start: 2em;
}

img,
picture,
video {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
}

pre {
    overflow-x: auto;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

a {
    color: currentColor;
}


/* The Box - Padding around block */
/* https://every-layout.dev/layouts/box/ */

.l_box {
    padding: var(--l_box__padding, 1rem);
}

/* The Center - horizontal centering */
/* https://every-layout.dev/layouts/center/ */

.l_center {
    max-inline-size: var(--l_center__size, 65ch);
    margin-inline: auto;
}


/* The cluster - horizontal wrapping */
/* https://every-layout.dev/layouts/cluster/ */
/* mk2 */

.l_cluster {
    display: flex;
    flex-wrap: var(--l_cluster__wrap, wrap);
    gap: var(--l_cluster__gap, 1rem);
    justify-content: var(--l_cluster__jc, flex-start);
    align-items: center;
}

/* The Cover - Vertical centering */
/* https://every-layout.dev/layouts/cover/ */

.l_cover {
    display: flex;
    flex-direction: column;
    min-block-size: var(--l_cover__size, 100vh);
    padding: 1rem;
}

.l_cover>* {
    margin-block: 1rem;
}

.l_cover> :first-child:not(.l_cover__main) {
    margin-block-start: 0;
}

.l_cover> :last-child:not(.l_cover__main) {
    margin-block-end: 0;
}

.l_cover>.l_cover__main {
    margin-block: auto;
}

/* The Flow layout (aka The Stack layout) - vertical spacing between block */
/* https://bell.bz/my-favourite-3-lines-of-css/ */
/* https://every-layout.dev/layouts/stack/ */

.l_flow>* {
    margin-block: 0;
}

.l_flow>*+* {
    margin-block-start: var(--l_flow__space, 1em);
}


/* The Frame - frame images into a given aspect ratio */
/* https://every-layout.dev/layouts/frame/ */

.l_frame {
    --l_frame__n: 16;
    --l_frame__d: 9;
    --l_frame__fit: cover;
    aspect-ratio: var(--l_frame__n) / var(--l_frame__d);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.l_frame > img,
.l_frame > video {
    inline-size: 100%;
    block-size: 100%;
    object-fit: var(--l_frame__fit);
}

/* The Grid - A grid of content */
/* https://every-layout.dev/layouts/grid/ */

.l_grid {
    display: grid;
    gap: var(--l_grid__gap, 1rem);
    grid-template-columns: repeat(auto-fit, minmax(min(var(--l_grid__size, 25ch), 100%), 1fr));
}

/* Repel - pushes items away from each other where there is space
           in the viewport and stacks on small viewports */
/* https://piccalil.li/blog/reality-check-1-building-out-a-furniture-site-from-dribbble/#repel */
/* mk2 */

.l_repel {
    display: flex;
    flex-wrap: var(--l_repel__wrap, wrap);
    justify-content: space-between;
    align-items: var(--l_repel__alignment, center);
    gap: var(--l_repel__gap, 1rem);
}

.l_repel[data-repel-variant='vertical'] {
    --l_repel__alignment: stretch;
    flex-direction: column;
}



/* The Sidebar - sidebar that switch to vertical */
/* https://every-layout.dev/layouts/sidebar/ */

.l_sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--l_sidebar__gap, 1rem);
}

.l_sidebar>.l_sidebar__side {
    flex-basis: var(--l_sidebar__width, 20rem);
    flex-grow: 1;
}

.l_sidebar>.l_sidebar__main {
    flex-basis: 0;
    flex-grow: 999;
    min-inline-size: 50%;
}

/* The Switcher - one row that switch to one column */
/* https://every-layout.dev/layouts/switcher/ */

.l_switcher {
    display: flex;
    flex-wrap: wrap;
    gap: var(--l_switcher__gap, 1rem);
}

.l_switcher>* {
    flex-grow: 1;
    flex-basis: calc((var(--l_switcher__breakpoint, 30rem) - 100%) * 999);
}



/* Fonts */

@font-face {
    font-family: 'Luciole';
    src: url('/fonts/Luciole-Regular.eot');
    /* IE9 Compat Modes */
    src: url('/fonts/Luciole-Regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('/fonts/Luciole-Regular.woff2') format('woff'),
        /* Modern Browsers */
        url('/fonts/Luciole-Regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('/fonts/Luciole-Regular.svg#Luciole-Regular') format('svg');
    /* Legacy iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'BBB-Readme';
    src: url('/fonts/BBBReadMe-Regular.woff2') format('woff'),
         url('/fonts/BBBReadMe-Regular.ttf') format('truetype');
}

:root {
    --font-family-primary: 'Luciole';
    --font-family-secondary: 'BBB-Readme';
}
/* Custom Properties */

/* Sizes */

/* @link https://utopia.fyi/type/calculator?c=360,18,1.125,1240,20,1.2,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --step--2: clamp(0.8681rem, 0.8974rem + -0.0379vw, 0.8889rem);
  --step--1: clamp(1rem, 0.983rem + 0.0758vw, 1.0417rem);
  --step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --step-1: clamp(1.2656rem, 1.1697rem + 0.4261vw, 1.5rem);
  --step-2: clamp(1.4238rem, 1.2699rem + 0.6839vw, 1.8rem);
  --step-3: clamp(1.6018rem, 1.3735rem + 1.0149vw, 2.16rem);
  --step-4: clamp(1.802rem, 1.4789rem + 1.4363vw, 2.592rem);
  --step-5: clamp(2.0273rem, 1.5842rem + 1.9693vw, 3.1104rem);
}

@media print {
    :root {
        --step--2: 7pt;
        --step--1: 9pt;
        --step-0: 11pt;
        --step-1: 12pt;
        --step-2: 14pt;
        --step-3: 15pt;
        --step-4: 17pt;
        --step-5: 19pt;
    }
}

:root {
    --color-dark: #0c0c0c;
    --color-dark-soft: #424242;
    --color-light: #ffffff;

    --color-primary: #eb0000;
    --color-secondary: #9e2727;
}
/* global font, color and vertical rythmn */
/* A lot come from https://piccalil.li/blog/some-simple-ways-to-make-content-look-good/ */

body {
    color: var(--color-dark);
    background: var(--color-light);
    font-family: var(--font-family-primary);
    font-size: var(--step-0);
    text-wrap: pretty;
    line-height: 1.5;
    --l_flow__space: 1rem;
    --l_box__padding: 1rem;
    --l_center__size: 40em;
    --logo-size: 6em;
}

@page {
    size: A5 portrait;
    margin: 0.5cm 1cm;
}

@media print {
    body {
        line-height: 1.2;
        --l_flow__space: 0.6rem;
        --l_box__padding: 0.5em;
        --l_center__size: 999em;
        --logo-size: 2cm;
    }
}

:is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-family-secondary);
    line-height: 1.1;
    text-wrap: balance;
    hyphens: auto;
}

@media print {
    :is(h1, h2, h3, h4, h5, h6) {
        line-height: 1.0;
    }
}

/* réduire la hauteur de ligne des titres */
:is(h1, h2, h3, h4, h5, h6, blockquote) {
    --l_flow__space: 1.25em;
}

@media print {
    :is(h1, h2, h3, h4, h5, h6, blockquote) {
        --l_flow__space: 1.2em;
    }
}

/* rapprocher le titre avec le texte qui suit */
:is(h1, h2, h3, h4, h5, h6)+* {
    --l_flow__space: 0.5em;
}

@media screen {
    :is(h1, h2, h3, h4, h5, h6)+* {
        --l_flow__space: 0.4em;
    }
}

h1 {
    font-size: var(--step-5);
}

h2 {
    font-size: var(--step-4);
}

h3 {
    font-size: var(--step-3);
}

h4 {
    font-size: var(--step-2);
}

h5 {
    font-size: var(--step-1);
}

h6 {
    font-size: var(--step-0);
}

:is(ul, ol) {
    /* se rapprocher de la ligne du dessus */
    --l_flow__space: 0.25em;
}

ol {
    /* pour que les numéro des ol soit plus à droite */
    list-style-position: inside;
}

blockquote {
    padding-inline-start: 1em;
    border-inline-start: 0.3em solid var(--color-primary);
    font-style: italic;
    font-size: var(--step-1);
    font-family: var(--font-family-secondary);
}

a {
    color: currentColor;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 0.2ex;
    text-underline-offset: 0.2ex;
}

@media print {
    a {
        text-decoration: none;
        color: var(--color-secondary);
    }
}

/* style français */
ul {
    list-style-type: '- ';
}

em {
    color: var(--color-secondary);
}

strong {
    color: var(--color-secondary);
}

small {
    font-size: var(--step--2);
    color: var(--color-dark-soft);
}

pre {
    font-size: var(--step--1);
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 1em;
    border-radius: 0.5rem;
}

hr {
    border: 1px solid var(--color-primary);
}


/* intro paragraph */
/* from https://piccalil.li/blog/some-simple-ways-to-make-content-look-good/ */

.b_lede {
  font-size: var(--step-2);
  font-style: italic;
  max-width: 45ch;
  text-wrap: wrap;
  color: var(--color-secondary);
}

.b_lede+* {
  --l_flow-space: 2em;
}

@media print {
  .b_lede+* {
    --l_flow__space: 0.5em;
  }
}
/* texicon */

.texicon svg {
    height: 1lh;
    transform: translateY(1ex);
}

/* texicon_v */

.texicon_v {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}




/* ---- CSS Utilities ---- */

.u_ta-center {
    text-align: center;
}

.u_ta-right {
    text-align: right;
}

.u_list-style-none {
    list-style: none;
}

.u_reset-marg-pad {
    margin: 0;
    padding: 0;
}

.u_margin-inline-auto {
    margin-inline: auto;
}

.u_text-decoration-none {
    text-decoration: none;
}

.u_empty_list-style {
    list-style-type: '';
}

.u_text-align-center{
    text-align: center
}

@media screen {
    .u_print-only {
        display: none;
    }
}
