/* Mon style initial épuré et brut, utilisant /assets */

/* lora-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/lora-v37-latin_latin-ext-regular.woff2') format('woff2');
}

/* lora-italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  src: url('./assets/lora-v37-latin_latin-ext-italic.woff2') format('woff2');
}

/* lora-500 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/lora-v37-latin_latin-ext-500.woff2') format('woff2');
}

/* lora-600 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  src: url('./assets/lora-v37-latin_latin-ext-600.woff2') format('woff2');
}

/* cormorant-garamond-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/cormorant-garamond-v21-latin_latin-ext-regular.woff2') format('woff2');
}

/* cormorant-garamond-500 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/cormorant-garamond-v21-latin_latin-ext-500.woff2') format('woff2');
}

/* cormorant-garamond-500italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  src: url('./assets/cormorant-garamond-v21-latin_latin-ext-500italic.woff2') format('woff2');
}

/* cormorant-garamond-600 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('./assets/cormorant-garamond-v21-latin_latin-ext-600.woff2') format('woff2');
}

:root {
    color-scheme: light;

    --fond:        light-dark(#fdfdfb, #16181c);   --texte:       light-dark(#1a1a1a, #e8e6e1);   --texte-att:   light-dark(#4a4a46, #a8a6a0);   --accent:      light-dark(#1f4b99, #7fb0ff);   --accent-att:  light-dark(#dce6f5, #1c2b42);   --bordure:     light-dark(#d8d5cd, #33363c);   --code-fond:   light-dark(#f1efe9, #1e2126); 
    --police-corps: 'Lora', Georgia, "Times New Roman", "Liberation Serif", serif;
  --police-titre: 'Cormorant Garamond', Georgia, "Times New Roman", "Liberation Serif", serif;
  --police-code:  ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

    --largeur-texte: 68ch;

  font-size: 100%; }

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

* {
  margin: 0; }

html {
  -webkit-text-size-adjust: 100%; }

img,
svg,
video,
canvas {
    display: block;
  max-width: 100%;
  height: auto;
}

body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-corps);
  font-size: 1.0625rem;   line-height: 1.65;    
    max-width: var(--largeur-texte);
  margin-inline: auto;

  padding: 1.25rem 1rem 3rem; }

@media (min-width: 60ch) {
    body {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titre);   font-weight: 700;
  line-height: 1.25;   color: var(--texte);
  margin-top: 2em;      margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); margin-top: 0; } h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5, h6 {
    font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--texte-att);
}

p, ul, ol, dl, figure, table, pre, blockquote {
  margin-bottom: 1.3em; }

p {
    text-wrap: pretty;
}

strong { font-weight: 700; }
em { font-style: italic; }

small {
  font-size: 0.85em;
  color: var(--texte-att);
}

mark {
    background: var(--accent-att);
  color: inherit;
  padding: 0.05em 0.2em;
}

abbr[title] {
    text-decoration: dotted underline;
  cursor: help;
}

sup, sub {
  font-size: 0.75em;
  line-height: 0; }

hr {
  border: none;
  border-top: 1px solid var(--bordure);
  margin: 2.5em 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;     text-underline-offset: 0.15em;    }

a:hover {
  text-decoration-thickness: 2px; }

a:visited {
  opacity: 0.85; }

ul, ol {
  padding-left: 1.4em; }

li {
  margin-bottom: 0.4em; }

dt {
  font-weight: 700; }

dd {
  margin-bottom: 0.8em;
  color: var(--texte-att); }

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.1em;
  color: var(--texte-att);   font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0.4em; }

cite {
  font-style: normal;   font-size: 0.9em;
  color: var(--texte-att);
}

q::before { content: "« "; }
q::after  { content: " »"; }

code, kbd, samp {
  font-family: var(--police-code);
  font-size: 0.9em;   background: var(--code-fond);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: var(--code-fond);
  padding: 1em;
  overflow-x: auto;   border-radius: 4px;
  line-height: 1.5;
}

pre code {
    background: none;
  padding: 0;
}

table {
    display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;   max-width: 100%;

  width: 100%;
  border-collapse: collapse;   font-size: 0.95em;
}

th, td {
  text-align: left;   padding: 0.5em 0.7em;
  border-bottom: 1px solid var(--bordure); }

th {
  font-family: var(--police-titre);
  font-weight: 700;
}

caption {
  text-align: left;
  color: var(--texte-att);
  font-size: 0.85em;
  margin-bottom: 0.5em;
}

figure {
  margin-inline: 0; }

figcaption {
  font-size: 0.85em;
  color: var(--texte-att);
  margin-top: 0.5em;
  font-style: italic;
}

header {
  border-bottom: 1px solid var(--bordure);
  padding-bottom: 1em;
  margin-bottom: 2em;
}

nav ul {
  list-style: none;   padding-left: 0;
  display: flex;       flex-wrap: wrap;      gap: 0.3em 1.2em;   }

nav a {
  text-decoration: none; }

nav a:hover {
  text-decoration: underline; }

footer {
  border-top: 1px solid var(--bordure);
  margin-top: 3em;
  padding-top: 1.5em;
  font-size: 0.9em;
  color: var(--texte-att);
}

aside {
  background: var(--code-fond);
  border-left: 3px solid var(--accent);
  padding: 1em 1.2em;
  margin-bottom: 1.5em;
  font-size: 0.95em;
}

aside h3 {
  margin-top: 0;   font-size: 1rem;
}

details {
  border: 1px solid var(--bordure);
  border-radius: 4px;
  padding: 0.7em 1em;
  margin-bottom: 1.3em;
}

summary {
  cursor: pointer;   font-family: var(--police-titre);
  font-weight: 700;
}

details[open] summary {
  margin-bottom: 0.6em; }

input:not([type="image"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea,
select {
  font: inherit;         color: inherit;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 3px;
  padding: 0.5em 0.7em;
  width: 100%; }

input[type="image"] {
  width: auto;
  border: none;
  padding: 0;
  background: none;
}

button {
  width: auto;   background: var(--accent);
  color: var(--fond);   border: none;
  cursor: pointer;
  padding: 0.6em 1.2em;
}

button:hover {
  opacity: 0.9; }

label {
  display: block;   margin-bottom: 0.3em;
  font-family: var(--police-titre);
  font-size: 0.9em;
}

:focus-visible {
    outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-att); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@page {
  size: A4;
  margin: 2.2cm 2cm 2.4cm; }

@page :first {
    margin-top: 3cm;
}

@page {
    @bottom-center {
    content: counter(page) " / " counter(pages);     font-family: Georgia, serif;
    font-size: 9pt;
    color: #555;
  }
}

@media print {
  body {
        max-width: none;
    width: 100%;

        font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;

        color: #000;
    background: #fff;
    padding: 0;
  }

    nav, footer, button, form, input, textarea, select {
    display: none;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    break-after: avoid;      break-inside: avoid;   }

    figure, table, tr, pre, blockquote, details, img {
    break-inside: avoid;
  }

    p, li, dd, blockquote {
    orphans: 3;
    widows: 3;
  }

    a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";     font-size: 0.8em;
    color: #444;
    word-break: break-all;   }

  a[href^="#"]::after,
  nav a::after {
        content: "";
  }

    mark {
    background: none;
    text-decoration: underline;
  }

  aside, code, pre {
    background: none;
    border: none;
    border-left: 2px solid #000;
    padding-left: 0.8em;
  }

    details {
    border: none;
    padding: 0;
  }

  details:not([open]) > *:not(summary) {
    display: block !important;   }

  summary::marker,
  summary::-webkit-details-marker {
        display: none;
  }
}