/* not bundling those within the bundle.css.php,
because the font-faces use relative paths */
/* dedicated file because they need to be at
the top of the final stylesheet */

@import url("../fonts/montserrat/montserrat.css");
@import url("../fonts/open-sans/open-sans.css");

:root {
    --yellow-darker: #704b00;
    --yellow-dark: #ca8600;
    --yellow: #f7a600;
    --yellow-light: #ffca5f;

    --gray-darkest: #0f172b;
    --gray-dark: #4a4a4a;
    --gray: #62748E;
    --gray-light: #cad5e2;
    --gray-lighter: #e2e8f0;
    --gray-lightest: #f8fafc;

    --black: #000000;
    --white: #ffffff;

    --blue-darkest: #001a3c;
    --blue-darker: #002152;
    --blue-dark: #003780;
    --blue: #006df3;
    --blue-light: #2b90ff;
    --blue-lighter: #80c2ff;
    --blue-lightest: #b7deff;

    --cyan-dark: #0092b8;
    --cyan: #00b8db;

    --red: #dc143c;
    --red-light: #f9a3b4;

    --green-darker: #0d542b;
    --green-dark: #016630;
    --green: #00a63e;
    --green-light: #00c950;
    --green-lighter: #7bf1a8;
    --green-lightest: #dcfce7;

    --text: var(--black);
    --title-text: var(--black);
    --primary-text: var(--yellow);
    --primary-title-text: var(--yellow-darker);
    --inactive-text: var(--gray-dark);
    --active-text: var(--blue-dark);
    --muted-text: var(--inactive-text);
    
    --error-text: var(--red);
    --text-success: var(--green-dark);
    --title-text-success: var(--green-darker);
    --text-info: var(--blue-dark);
    --title-text-info: var(--blue-darker);

    --text-dark: var(--gray-lighter);
    --title-text-dark: var(--gray-lighter);
    --inactive-text-dark: var(--gray-light);
    --active-text-dark: var(--gray-lightest);
    --muted-text-dark: var(--inactive-text-dark);
    
    --icon: var(--black);
    --icon-dark: var(--gray-lighter);
    --primary-icon: var(--yellow);
    --muted-icon: var(--gray);
    --icon-success: var(--green-light);
    --icon-error: var(--red);
    --icon-info: var(--blue-light);

    --border: var(--gray-lighter);
    --border-dark: rgb(from var(--border) r g b / .1);
    --primary-border: var(--yellow);
    --border-success: var(--green-lighter);
    --border-info: var(--blue-lighter);

    --button-background: var(--gray-lighter);
    --button-text: var(--black);
    
    /* Background */
    /* TODO : differentiate between colored and neutral surfaces
    (buttons, chips, icon shapes...). --primary-background implies a colored
    surface, while others are more neutral. thus i tend to use text or icon
    variables for other colored surfaces */
    --background: var(--white);
    --primary-background: var(--yellow);
    --error-background: var(--red-light);
    --success-background: var(--green-lightest);
    --info-background: var(--blue-lightest);

    --alternate-background: var(--gray-lightest);
    --muted-background: var(--gray-lightest);
    --hover-background: var(--gray-light);
    --hover-primary-background: var(--yellow-light);

    /* Background (dark) */
    --background-dark: var(--gray-darkest);
    --hover-background-dark: var(--blue-dark);

    /* Foreground: to be used on top of background */
    --primary-foreground: var(--black);
}

.dark {
    --text: var(--text-dark);
    --title-text: var(--title-text-dark);
    --inactive-text: var(--inactive-text-dark);
    --active-text: var(--active-text-dark);
    --muted-text: var(--muted-text-dark);

    --icon: var(--icon-dark);

    --border: var(--border-dark);

    --background: var(--background-dark);
    --hover-background: var(--hover-background-dark);
}

.pro {
    --primary-text: var(--blue-dark);
    --primary-title-text: var(--blue-dark);
    --primary-icon: var(--blue-dark);
    --primary-border: var(--blue-dark);
    --primary-background: var(--blue-dark);
    --hover-primary-background: var(--blue);
    --primary-foreground: var(--white);
}

.ftto {
    --primary-text: var(--cyan);
    --primary-icon: var(--cyan);
    --primary-border: var(--cyan);
    --primary-background: var(--cyan-dark);
    --primary-foreground: var(--white);
}

/* https://lucide.dev/guide/static/svg-sprite#inline-with-css-helper-class */

.lucide {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-group {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.directions {
    flex-wrap: nowrap;
}

.directions .next {
    flex-grow: 1;
    justify-content: center;
}

.btn {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 1em;
    padding: .5em 1em;
    border: 0;
    font: inherit;
    border: 1px solid var(--border);
    background-color: var(--button-background);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 10px;
    transition: transform ease-out .1s, opacity .2s;
    cursor: pointer;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn.primary {
    --button-background: var(--primary-background);
    color: var(--primary-foreground);
    --border: var(--primary-background);
}

.btn.primary-foreground {
    --button-background: var(--primary-foreground);
    color: var(--primary-background);
    border-color: var(--primary-foreground);
}

.btn.light {
    color: var(--button-text);
    border-color: var(--border);
    background-color: var(--background);
}

.primary .btn.slight {
    color: var(--primary-foreground);
    border-color: rgb(from var(--border) r g b / .2);
    background-color: rgb(from var(--background) r g b / .1);
}

.btn.link {
    font-weight: bold;
    background-color: transparent;
    border-color: transparent;
}

.btn.link.primary {
    color: var(--primary-text);
}

.btn.elevated {
    box-shadow: 0 4px 6px rgb(from var(--button-background) r g b / .4);
}

.btn.large {
    padding: 1em 2em;
}

.btn.dotted {
    border-width: 2px;
    border-style: dashed;
}

.btn.icon {
    padding: .5em;
}

.btn.hint {
    padding: .2em;
    border-radius: 128px;
}

.btn.destructive {
    --button-text: var(--error-text);
}

.btn .icon {
    flex-shrink: 0;
}

.btn.hint .icon {
    width: 20px;
    height: 20px;
}

.btn:hover, .btn:active {
    color: var(--button-text);
	background-color: var(--hover-background);
    border-color: var(--hover-background);
}

.btn.primary:hover, .btn.primary:active {
    color: var(--primary-foreground);
    background-color: var(--hover-primary-background);
    border-color: var(--hover-primary-background);
}

.btn:active {
    transform: scale(0.99);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 1em;
    padding: .5em 1em;
    text-align: start;
    border-radius: 128px;
}

strong.chip {
    font-weight: normal;
}

.chip.compact {
    font-size: .8em;
    padding: .15em .5em;
    text-transform: uppercase;
}

.chip.primary-light {
    color: var(--primary-title-text);
    background-color: rgb(from var(--primary-background) r g b / .1);
}

.chip.primary {
    color: var(--primary-foreground);
    background-color: var(--primary-background);
}

.chip.primary-foreground-light {
    color: var(--primary-foreground);
    background: rgb(from var(--primary-foreground) r g b / .1);
}

.chip.success {
    color: var(--white);
    background: var(--icon-success);
}

.chip.success-light {
    color: var(--title-text-success);
    background: var(--success-background);
}

.chip .icon {
    flex-shrink: 0;
}

section .chip.center {
    align-self: center;
}

.checklist {
    list-style-type: none;
    padding: 0;
}

.checklist > li {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    padding: .5em 0;
}

.checklist > li > .leading-icon {
    flex-shrink: 0;
}

.checklist.circle > li > .leading-icon {
    display: block;
    /* makes it 24px */
    padding: 3px;
    background-color: rgb(from var(--icon) r g b / .2);
    border-radius: 24px;
}

.checklist.circle > li > .leading-icon svg {
    width: 18px;
    height: 18px;
}

table, td, th {
    border: 1px solid var(--border);
    border-collapse: collapse;
}

td {
    background-color: var(--background);
}

th {
    background-color: var(--alternate-background);
}

td, th {
    padding: .5em 0;
}

table.comparison {
    font-size: .9em;
}

table.comparison th:first-child {
    text-align: left;
    padding: 0 .5em;
}

table.comparison td:first-child {
    padding: 0 .5em;
}

table.comparison td:not(:first-child) {
    text-align: center;
}

table.comparison svg {
    display: inline-block;
}

table.comparison .icon.success {
    color: var(--icon-success);
}

table.comparison .icon.error {
    color: var(--icon-error);
}

table.specs td, table.specs th {
    min-width: 150px;
}

table.specs th:first-child, table.specs td:first-child {
    position: sticky;
    left: 0;
}

.table-wrapper {
    overflow: auto;
}

.table-wrapper table {
    width: 100%;
}

.card.message {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1em;
    justify-items: start;
    align-items: start;
    padding: 1em;
    margin-bottom: 1em;
}

.card.message.error {
    --icon: var(--icon-error);
    border-color: var(--error-text);
}

.card.message.success {
    --icon: var(--icon-success);
    --title-text: var(--title-text-success);
    color: var(--text-success);
    border-color: var(--border-success);
    background-color: var(--success-background);
}

.card.message.info {
    --iocn: var(--icon-info);
    --title-text: var(--title-text-info);
    color: var(--text-info);
    border-color: var(--border-info);
    background-color: var(--info-background);
}

.card.message > .icon, .card.message > .icon-shape {
    grid-column: 1;
    color: var(--icon);
}

.message.advantage > .icon-shape {
    padding: .8em;
    background-color: var(--icon);
    border-radius: 64px;
}

.message.advantage > .icon-shape > .icon {
    color: var(--white);
}

.card.message > * {
    grid-column: 2;
}

@media screen and (max-width: 500px) {
    .card.message {
        grid-template-columns: 1fr;
        row-gap: 1em;
    }

    .card.message > *,
    .card.message > .icon, .card.message > .icon-shape {
        grid-column: 1;
    }
}

.message h2, .message h3, .message h4, .message h5 {
    margin-block-start: 0;
    font-size: 1em;
}

.message p {
    margin-block-start: 0;
}

.message p:last-child {
    margin-block-end: 0;
}

.card.message > ul {
    margin-block-start: 0;
}

/** The main header at the top of pages **/

.main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: .5em 1em;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    z-index: 2000;
}

/** a horizontal list of links, used in header and footer **/

.navbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.navbar .start {
    margin-right: auto;
}

.navbar .logo {
    max-height: 4em;
}

.nav-list {
    list-style-type: none;;
    display: flex;
    margin: 0;
    padding: 0;
}


.collapse-trigger {
    display: none;
}

@media screen and (max-width: 800px) {
    .nav-list.collapse:not(.is-expanded) {
        display: none;
    }
    .collapse-trigger {
        display: flex;
    }
}

@media screen and (min-width: 800px) {
    
}

.navbar > .nav-list {
    flex-direction: row;
    align-items: center;
}

@media screen and (max-width: 800px) {
    .navbar .nav-list {
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        order: 1;
    }

    .navbar > .nav-list {
        margin: 0;
    }
}

.navbar > ul > li > a {
    display: block;
    padding: 1em;
    color: var(--inactive-text);
    text-decoration: none;
    border-radius: 10px;
}

.navbar.dark > ul > li > a {
    color: var(--inactive-text-dark);
}

.navbar > ul > li > a:hover {
    color: var(--active-text);
    background-color: var(--hover-background);
}

.navbar.compact > ul > li > a {
    padding: .2em 1em;
}


.banner {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 5em 2em;
    background-image: url(/assets/images/hive.svg);
    background-attachment: fixed;
}

.banner.particulier {
    background-image: url(/assets/images/hive.svg), linear-gradient(135deg, #FFFBEB 0%, #F1F5F9 100%);    
}

.banner.pro {
    background-image: url(/assets/images/hive.svg), linear-gradient(135deg, #FAF5FF 0%, #F1F5F9 100%);
}

.banner.home, .banner.contact {
    background-color: hsl(from var(--yellow) h s 95%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00378022
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    text-align: center;
}

.banner-content .btn-group {
    justify-content: center;
}

.offers-row {
    display: flex;
    justify-content: center;
    gap: 2em;
}

.offers-row:not(:last-of-type) {
    margin-bottom: 2em;
}

@media screen and (max-width: 700px) {
    .offers-row {
        flex-direction: column;
    }
}

.offers-row > article {
    display: flex;
    flex-direction: column;
    flex-basis: 33%;
    padding: 1em;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 10px;
}

.offers-row.halves > article {
    flex-basis: 50%;
}

.offers-row.muted > article {
    background: var(--muted-background);
    border-width: 1px;
}

.offers-row > article.primary {
    border-color: var(--primary-border);
    box-shadow: 0px 20px 25px -5px rgb(from var(--primary-background) r g b / .1); 
}

.offers-row.has-decorator {
    margin-top: .5em;
}

.offers-row > article > .btn {
    justify-content: center;
}

.offers-row > article > .chip.decorator {
    position: static;
    /* - parent padding - top padding - line-height/2 */
    margin-top: calc(-1em - .5em - (1.5em/2));
    align-self: center;
}

.offers-row > article .note {
    margin: .25em 0;
    font-weight: normal;
    color: var(--muted-text);
}

.offers-row > article .highlight {
    font-size: 2em;
    color: var(--primary-icon);
}

.offers-row > article > .end {
    margin-top: auto;
}

.offers-row > article > dl {
    margin-top: 0;
}

.contract {
    font-size: 1.5em;
    font-weight: bold;
}

.offers-row.muted .contract {
    text-align: left;
}

.price {
    line-height: 2em;
}

.price .number {
    font-size: 3em;
    font-weight: bold;
    color: var(--title-text);
}

.price .term, .price .discounted {
    font-size: .8em;
}

.features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1em;
}

.features > li {
    display: flex;
    gap: 1em;
}

.features > li > .leading-icon {
    color: var(--muted-icon);
}

.features > li.primary {
    font-weight: bold;
}

.features > li.primary > .leading-icon {
    color: var(--primary-icon);
}

.features > li.secondary > .leading-icon {
    color: var(--muted-icon);    
}

.features > li.primary-detail {
    color: var(--primary-icon);
}

section.container.addon {
    flex-direction: row;
    gap: 2em;
    align-items: center;
    flex-wrap: wrap;
    padding: 2em;
}

section.addon > * {
    flex-basis: calc(50% - 2em);
}

@media screen and (max-width: 700px) {
    section.addon > * {
        flex-basis: 100%;
    }
}

.tip {
    position: absolute;
    inset: unset;
    margin-top: 4em;
    max-width: 300px;
    border: none;
    border-radius: 10px;
    color: var(--text-dark);
    background-color: var(--background-dark);
}

section, main {
    padding: 3em 1em;
}

section.primary, section.primary.card, section > .card.primary {
    --title-text: var(--primary-foreground);
    --text: var(--primary-foreground);
    --icon: var(--primary-foreground);
    color: var(--primary-foreground);
    background-color: var(--primary-background);
}

section.primary .card.slight {
    border-color: rgb(from var(--border) r g b / .2);
    background-color: rgb(from var(--background) r g b / .1);
}

section.alternate {
    background-color: var(--alternate-background);
}

section .center, main .center {
    text-align: center;
}

section.center > *, section.center > .card > * {
    align-self: center;
    text-align: center;
}

section.cta .card {
    display: flex;
    flex-direction: column;
}

section.cta > .icon-shape {
    padding: 1em;
    --color: var(--primary-icon);
}

section.cta > .icon-shape .icon {
    width: 36px;
    height: 36px;
}

section .btn-group.center {
    justify-content: center;
}

.services {
    display: flex;
    justify-content: center;
    gap: 1em;
}

@media screen and (max-width: 600px) {
    .services > article {
        flex-basis: 100%;
    }
}

.services.grid {
    flex-wrap: wrap;
}

.services > article {
    box-sizing: border-box;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    flex-basis: calc(50% - 1em);
    padding: 1em;
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: 14px;
}

.services.slight > article {
    border-color: transparent;
}

.services.row > article {
    flex-basis: calc(33% - 1em);
}

@media screen and (max-width: 600px) {
    .services {
        flex-direction: column;
    }
}

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

.services.center > article > .btn {
    justify-content: center;
    /* match the paragraph on other articles */
    margin: .5em 0;
}

.services > article > .icon-shape {
    display: inline-block;
    align-self: flex-start;
    --color: var(--primary-icon);
}

.services.center > article > .icon-shape {
    align-self: center;
}

.services.large > article > .icon-shape {
    padding: 1em;
}

.services.large > article > .icon-shape .icon {
    width: 36px;
    height: 36px;
}

.services > article > h2, .services > article > h3 {
    font-size: 1.2em;
    margin-bottom: 0;
}

.services > article > .highlight {
    font-weight: regular;
    color: var(--primary-text);
}

body > footer {
    color: var(--text-dark);
    background-color: var(--background-dark);
}

body > footer > .container{
    box-sizing: border-box;
    display: grid;
    grid-template: repeat(2, 2fr) 1fr / repeat(2, 1fr);
    gap: 1em;
    margin-top: auto;
    padding: 1em 1em 0 1em;
}

footer h1, footer h2 {
    font-size: 1em;
    margin-bottom: 0;
}

body > footer .navbar {
    grid-column: 1 / span 2;
    border-top: 1px solid var(--border);
}

@media screen and (max-width: 600px) {
    body > footer > .container {
        grid-template: repeat(5, 1fr) / 1fr;
    }

    body > footer .navbar {
        grid-column: 1 / 2;
    }
}

body > footer ul {
    list-style-type: none;
    padding: 0;
    margin-top: .5em;
}

body > footer li a {
    display: block;
    color: var(--muted-text-dark);
    text-decoration: none;
    padding: .25em 0;
}

body > footer ul a:hover {
    color: var(--text-dark);
}

body > footer .navbar > ul > li > a {
    padding: .5em 1em;
}

@media screen and (max-width: 800px) {
    body > footer .navbar .start {
        order: 2;
    }
}

*:focus {
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.5em;
    height: 100%;
    scroll-padding-top: 12em;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    font-family: "Open Sans", "Roboto", sans-serif;
    color: var(--text);
    background: var(--background);
}

.dark {
    /* otherwise the color is --text as defined in :root, not in the .dark
    override. see variables.css */
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    box-sizing: border-box;
    padding: 1em;
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: 14px;
}

body, section, main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

img {
    display: inline-block;
    max-width: 100%;
}

svg {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    color: var(--title-text);
}

h1 {
    font-size: 3em;
    line-height: 1em;
}

h2, h3, h4, h5, h6 {
    line-height: 1.5em;
}

h1 small {
    font-size: .5em;
}

hgroup {
    margin-bottom: 1em;
}

hgroup h1, hgroup h2, hgroup h3, hgroup h5, hgroup h6 {
    margin-bottom: .5em;
}

hgroup p {
    margin-top: 0;
}

hgroup p.subtitle {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-text);
}

hr {
    /* https://stackoverflow.com/a/34372979 */
    margin-left: 0;
    margin-right: 0;
    color: var(--border);
    border-style: solid;
}

a {
    color: inherit;
}

a:hover {
    color: var(--active-text);
}

dl.horizontal, dl.blocky {
    display: flex;
    flex-direction: column;
}

dl.horizontal > div, dl.blocky > div {
    display: flex;
    flex-wrap: wrap;
    padding: 1em 0;
    border-bottom: 1px solid var(--border);
}

dl.horizontal.compact > div, dl.blocky.compact > div {
    padding: .25em 0;
    border: none;
}

dl.horizontal dd, dl.blocky dd {
    margin-left: auto;
}

@media screen and (min-width: 500px) {
    dl.blocky {
        flex-direction: row;
        gap: 1em;
        flex-wrap: wrap;
    }

    dl.blocky > div {
        flex-direction: column;
        border: none;
        background-color: var(--alternate-background);
        border-radius: 10px;
    }

    dl.blocky > div, dl.blocky.compact > div {
        padding: 1em;
    }

    dl.blocky dd {
        margin-inline-start: 0;
    }

}

dt {
    color: var(--muted-text);
}

dd {
    color: var(--text);
    font-weight: bold;
}

.icon-shape {
    padding: .5em;
    --color: var(--icon);
    color: var(--color);
    background-color: rgb(from var(--color) r g b / .1);
    border-radius: 7px;
}

.container.card {
    box-sizing: border-box;
    padding: 1em;
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: 14px;
}

@media screen and (max-width: 800px) {
    .container.card.main {
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

section.feature > .container {
    display: flex;
    flex-direction: column;
}

.decorated-title, .decorated-title > .group {
    display: flex;
    align-items: center;
    gap: 1em;
}

.decorated-title {
    margin-bottom: 1em;
}

.decorated-title .icon {
    flex-shrink: 0;
    color: var(--icon);
}

.decorated-title h2, .decorated-title h3 {
    margin: 0;
}

.decorated-title.muted {
    --icon: var(--muted-icon);
}

.decorated-title.success {
    --icon: var(--icon-success);
}

.decorated-title .icon-shape {
    --icon: var(--primary-icon);
}

.decorated-title > .end {
    margin-inline-start: auto;
}

@media screen and (max-width: 800px) {
    .decorated-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .decorated-title > .end {
        order: -1;
    }
}

section.feature hgroup h2 {
    margin: 0;
}

dialog {
    border: none;
    border-radius: 20px;
}

dialog::backdrop {
    backdrop-filter: blur(2px);
}

dialog > header, dialog > footer {
    display: flex;
    align-items: center;
}

dialog > header .end, dialog > footer .end {
    margin-inline-start: auto;
}

