/*
$base03:    #002b36;
$base02:    #073642;
$base01:    #586e75;
$base00:    #657b83;
$base0:     #839496;
$base1:     #93a1a1;
$base2:     #eee8d5;
$base3:     #fdf6e3;
$yellow:    #b58900;
$orange:    #cb4b16;
$red:       #dc322f;
$magenta:   #d33682;
$violet:    #6c71c4;
$blue:      #268bd2;
$cyan:      #2aa198;
$green:     #859900;
*/

:root {
    --base03: #002b36;
    --base02: #073642;
    --orange100: hsl(40, 90%, 50%);
    --orange50: hsl(40, 90%, 80%);
    --orange30: hsl(40, 90%, 90%);
    --orange10: hsl(40, 90%, 96%);
    --blue100: hsl(220, 80%, 50%);
    --blue80: hsl(220, 80%, 60%);
    --blue50: hsl(220, 80%, 80%);
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
}
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}
a {
    background-color: transparent;
}
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}
b,
strong {
    font-weight: bolder;
}
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}
small {
    font-size: 80%;
}
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
img {
    border-style: none;
}
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}
button,
input {
    overflow: visible;
}
button,
select {
    text-transform: none;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}
progress {
    vertical-align: baseline;
}
textarea {
    overflow: auto;
}
details {
    display: block;
}
summary {
    display: list-item;
}
[hidden],
template {
    display: none;
}

img {
    max-width: 100%;
}

pre {
    overflow-x: auto;
    overflow-y: hidden;
    overflow: scroll;
    color: #ddd;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    position: relative;
}
pre code {
    display: block;
    padding: 1.5em;
    font-size: 0.875rem;
    line-height: 2;
}
pre,
pre code {
    white-space: pre;
}

/* titles */
@font-face {
    font-family: "archistico";
    src: url("/Archistico_Bold-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* normal */
@font-face {
    font-family: "Open Sans";
    src:
        url("/OpenSans.woff2") format("woff2"),
        url("/OpenSans.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* code */
@font-face {
    font-family: "Fira Mono";
    src:
        url("/FiraMono-Regular.woff2") format("woff2"),
        url("/FiraMono-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "hellohoney";
    src: url("/hello honey.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "louisgeorge";
    src: url("/Louis George Cafe.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* grid */
.col-1 {
    width: 8.33%;
}
.col-2 {
    width: 16.66%;
}
.col-3 {
    width: 25%;
}
.col-4 {
    width: 33.33%;
}
.col-5 {
    width: 41.66%;
}
.col-6 {
    width: 50%;
}
.col-7 {
    width: 58.33%;
}
.col-8 {
    width: 66.66%;
}
.col-9 {
    width: 75%;
}
.col-10 {
    width: 83.33%;
}
.col-11 {
    width: 91.66%;
}
.col-12 {
    width: 100%;
}
[class*="col-"] {
    float: left;
    padding: 15px;
    /* border: 1px solid red; */
}
.row::after {
    content: "";
    clear: both;
    display: table;
}

html {
    background-color: var(--orange100); /* fallback */
    background-image:
        url("vendee.png"), url("provence.png"),
        radial-gradient(circle, var(--orange50) 0%, var(--orange10) 100%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position:
        bottom left,
        bottom right,
        center center;
    background-attachment: fixed, fixed, fixed;
    background-size: 300px, 300px, cover;
}
@media (max-width: 1280px) {
    html {
        background-image: radial-gradient(
            circle,
            var(--orange50) 0%,
            var(--orange10) 100%
        );
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        background-size: cover;
    }
}

.content {
    background-color: #fdf6e3;
    padding: 2em 16px;
    box-shadow:
        -3px 0 10px -2px var(--orange50),
        /* left shadow */ 3px 0 10px -2px var(--orange50); /* right shadow */
}

body {
    font-family: "louisgeorge", "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 120%;
    margin: auto !important;
    color: #586e75 !important;
    text-align: justify;
    line-height: 1.15;
    max-width: 20cm;

    /* manage long words */
    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;
    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

* {
    box-sizing: border-box !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "archistico", "Times New Roman", Times, serif;
    font-size: 130%;
    margin-bottom: 1rem;
    margin-top: 2rem;
    page-break-after: avoid;
    break-after: avoid;
    border: none !important;
    font-weight: normal !important;
    color: #6c71c4;
}

h1 {
    font-family: "hellohoney", "Times New Roman", Times, serif;
    margin-bottom: 3rem;
    font-size: 400%;
    text-align: center;
    color: #cb4b16;
    width: 100%;
}

h2 {
    font-family: "hellohoney", "Times New Roman", Times, serif;
    margin-top: 4rem;
    font-size: 300%;
    color: #268bd2;
}

h3 {
    margin-top: 4rem;
    font-size: 160%;
    color: #2aa198;
}

h4 {
    font-weight: normal;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    font-weight: normal;
    text-decoration: none;
}

b,
strong {
    color: #cb4b16;
    font-weight: bolder;
}

.red {
    color: #dc322f;
}

.green {
    color: #859900;
}

a {
    color: inherit;
    text-decoration: underline #cb4b16;
    /*background: linear-gradient(180deg,#cb4b16, #cb4b16) no-repeat 0 1.50rem;*/
    background: linear-gradient(180deg, #cb4b16, #cb4b16) no-repeat 0 2em;
    transition: all 0.15s ease-out;
}
a:hover {
    background-position-y: 0;
    outline-width: 0;
    color: #eee8d5;
}
footer a {
    text-decoration: none;
}

.img svg,
.img img {
    margin: 0;
    width: 100%;
    height: auto;
}
.img {
    position: relative;
    line-height: 0;
}
.img img {
    position: absolute;
    top: 0;
    left: 0;
}

p,
li {
    width: 100%;
    line-height: 180%;
    margin-bottom: 2rem;
}

li {
    margin-bottom: 1rem;
}

ul,
ol {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

ul {
    list-style: none;
    padding-left: 0.2em;
    margin-left: 1em;
    position: relative;
}

ul li {
    padding-left: 1.2em;
}

ul li:before {
    content: "➤";
    color: #cb4b16;
    position: absolute;
    left: 0;
}
ul ul li:before {
    color: #268bd2;
}
ul ul ul li:before {
    color: #2aa198;
}
ul ul ul ul li:before {
    color: #cb4b16;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: #cb4b16;
    border-bottom: 5px solid #cb4b16;
}

th,
td {
    padding: 1rem 0.5rem;
    text-align: center;
}

tr {
    border-bottom: 1px dotted #cb4b16;
}

blockquote {
    margin: 0;
    padding: 1em 2em;
    background-color: #eee8d5 !important;
    border-left: 5px solid #cb4b16 !important;
    quotes: "«" "»";
}

figure {
    margin: 5rem 0;
    text-align: center;
    page-break-inside: avoid;
}

figcaption {
    margin-top: 1rem;
}

hr {
    overflow: visible; /* For IE */
    padding: 0;
    border: none;
    border-top: medium double #073642;
    margin: 5em 5em;
}

.normal {
    font-weight: 400;
}

tbody {
    width: 100%;
}

pre {
    background-color: #073642 !important;
    overflow: auto !important;
    margin: 0;
}

code {
    font-family:
        "Fira Mono", "Courier New", Courier, "Lucida Sans Typewriter",
        "Lucida Typewriter", monospace !important;
    color: #bbb !important;
    padding: 0 0.1em;
    display: inline-block;
    page-break-inside: avoid;
    break-inside: avoid;
}

/* inline code */
code {
    filter: brightness(70%);
    background-color: #073642; /* fallback */
    background-color: #07364208;
}
pre > code {
    filter: initial;
    background-color: initial;
}

/* code block */
pre > code {
    background-color: #073642;
    padding: 0.5em 0.5em 0.5em 0.5em;
    font-size: 0.875rem;
    line-height: 2;
}

footer {
    background-color: #eee8d5;
    width: 100%;
}
.content {
    width: 100%;
}

main,
footer {
    padding: 5%;
}

header {
    padding: 0;
    margin: 0;
}

#hamnav {
    width: 100%;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: #cb4b16;
}
#hamburger {
    display: none;
}
#hamitems {
    display: flex;
    background: #fdf6e3;
    background-image: linear-gradient(to right, #fdf6e3, #eee8d5 60%, #93a1a1);
}
#hamitems a {
    padding: 10px;
    color: #586e75;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    display: block;
    width: 100%;
}
#hamitems a:hover {
    color: #eee8d5;
}
#hamnav label {
    display: inline-block;
    color: #eee8d5;
    background: #cb4b16;
    font-style: normal;
    font-size: 1.2em;
    padding: 10px;
    height: 2em;
}
/* toggle menu */
#hamitems {
    display: none;
}
#hamnav input:checked ~ #hamitems {
    display: block;
}

#sharing a {
    margin-right: 2em;
}

.contact_link svg {
    vertical-align: bottom !important;
}

@media only screen and (min-width: 1024px) {
    #hamnav {
        display: none;
    }

    main,
    header,
    footer {
        max-width: 22cm !important;
        padding: 0;
    }
    /* footer */
    footer {
        padding: 6%;
        position: fixed;
        left: 0px;
        width: 33%;
    }
    .content > header {
        max-height: 15cm !important;
        overflow: hidden;
    }

    .card {
        width: 48%;
        display: inline-block;
        vertical-align: text-top;
    }
}

@media print {
    @page {
        size: A4 portrait;
        background-color: #fdf6e3;
    }

    body {
        padding: 0cm;
        font-size: 100%;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 80%;
    }

    a[href^="#"]:after {
        display: none;
    }

    a {
        word-wrap: break-word;
        color: #586e75;
    }
    table,
    img,
    svg,
    blockquote {
        break-inside: avoid;
    }

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

    @page :blank {
        @top-center {
            content: "Cette page est intentionnellement blanche.";
        }
    }

    @page {
        @bottom-left {
            margin: 10pt 0 30pt 0;
            border-top: 0.25pt solid #666;
            content: "© 2025 Vincent Poulailleau";
            font-size: 9pt;
            color: #333;
        }
    }
    @page {
        @bottom-center {
            margin: 10pt 0 30pt 0;
            border-top: 0.25pt solid #666;
            content: counter(page);
            font-size: 9pt;
            color: #333;
        }
    }
}
