/*
Theme Name: CABAIA FR Woo
Theme URI: https://www.cabaia.com/fr
Description: Boutique CABAIA (sacs à dos, sacs, bagagerie, accessoires) en français pour WordPress + WooCommerce, routes /fr/ calquées sur cabaia.com/fr.
Version: 1.0.7
Requires at least: 6.4
Requires PHP: 8.0
Author: CABAIA
Text Domain: cabaia-fr-woo
License: GPL-2.0-or-later
*/

@font-face {
    font-family: "CabaiaCustom";
    src: url("assets/fonts/CabaiaCustom-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("assets/fonts/Figtree-Variable.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("assets/fonts/Figtree-Italic-Variable.woff2") format("woff2");
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --cb-blue: rgb(0, 0, 200);
    --cb-deep: rgb(2, 2, 89);
    --cb-platinum: rgb(240, 241, 245);
    --cb-red: rgb(214, 40, 40);
    --ui-00: rgb(255, 255, 255);
    --ui-200: rgb(223, 223, 229);
    --ui-300: rgb(199, 199, 208);
    --ui-400: rgb(186, 186, 198);
    --ui-500: rgb(147, 147, 164);
    --ui-700: rgb(101, 101, 121);
    --ui-800: rgb(73, 73, 89);
    --ui-900: rgb(28, 28, 34);
    --ui-950: rgb(17, 17, 19);
    --cb-font-title: "CabaiaCustom", "Arial Black", sans-serif;
    --cb-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --cb-gutter: 15px;
    --cb-header-h: 72px;
    --cb-ease: cubic-bezier(.25, .46, .45, .94);
}

@media (min-width: 768px) {
    :root {
        --cb-header-h: 82px;
    }
}

@media (min-width: 1192px) {
    :root {
        --cb-gutter: 28px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--cb-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ui-900);
    background: var(--ui-00);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.cb-locked {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--cb-blue);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cb-skip {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ui-950);
    color: #fff;
}

.cb-skip:focus {
    top: 8px;
}

.cb-container {
    width: 100%;
    padding-inline: var(--cb-gutter);
    margin-inline: auto;
}

/* Typography scale (cabaia.com) */
.cb-h1,
.cb-h2,
.cb-h3 {
    font-family: var(--cb-font-title);
    font-weight: 400;
    text-transform: uppercase;
}

.cb-h1 {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -.02em;
}

.cb-h2 {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -.01em;
}

.cb-h3 {
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -.01em;
}

.cb-h4 {
    font-family: var(--cb-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: .01em;
}

.cb-body {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: .01em;
    color: var(--ui-800);
}

@media (min-width: 992px) {
    .cb-h1 {
        font-size: 44px;
        line-height: 48px;
    }

    .cb-h2 {
        font-size: 36px;
        line-height: 40px;
    }

    .cb-h3 {
        font-size: 20px;
        line-height: 26px;
    }

    .cb-h4 {
        font-size: 22px;
        line-height: 28px;
    }
}

.cb-h1 sup,
.cb-h2 sup {
    font-family: var(--cb-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: super;
    color: var(--ui-700);
    margin-left: 2px;
}

.cb-rte p + p,
.cb-rte p + ul,
.cb-rte ul + p {
    margin-top: 12px;
}

.cb-rte ul {
    list-style: disc;
    padding-left: 18px;
}

.cb-rte li + li {
    margin-top: 4px;
}

.cb-rte a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cb-rte strong {
    font-weight: 600;
}
