/*
Theme Name: colorpop
Author: Your Name
Description: A custom WordPress theme called colorpop
Text Domain: colorpop
Version: 1.0
*/

:root {
    --blanc: #FFFFFF;
    --noir: #000000;
    --darkblue: #00205C;
    --vert: #009BA7;
    --jaune: #f39200
}

html {
    font-size: 16px;
}

body {
    font-size: 1rem;
    margin: 0;
    text-align: center;
    color: var(--noir);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--vert)
}

a:hover {
    color: var(--darkblue)
}

img {
    height: auto;
    vertical-align: middle
}

.alignfull {
    margin: 0 calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.alignfull.has-background {
    padding: 0 calc(-50% - -50vw);
}

[data-ratio] {
    display: block;
    max-width: 100%;
    position: relative
}

[data-ratio]:before {
    content: "";
    display: block;
}

[data-ratio] > * {
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

[data-ratio='1:1']:before {
    padding-top: 100%;
}

[data-ratio='20:9']:before {
    padding-top: 47.5%;
}
[data-ratio='video']:before {
    padding-top: 42.5%;
}

[data-ratio='16:9']:before {
    padding-top: 56.25%;
}

[data-ratio='4:3']:before {
    padding-top: 75%;
}

[data-ratio='vignet']:before {
    padding-top: 68.5%;
}

[data-ratio='3:4']:before {
    padding-top: 133.33%;
}

.in-view {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.in-view.visible {
    opacity: 1;
    transform: translateY(0);
}

.wp-block-embed-vimeo.fullwidth iframe {
    width: 100% !important;
}

.wp-block-columns.g-0 {
    gap: 0 !important;
}

.has-medium-font-size {
    font-size: 1.25rem !important
}

.has-large-font-size {
    font-size: 1.55rem !important
}

.has-x-large-font-size {
    font-size: 1.85rem !important
}

h1 {
    font-size: 1.85rem
}

h2 {
    font-size: 1.5rem
}

h3 {
    font-size: 1.5rem
}

h4, h5, h6 {
    font-size: 1.15rem
}

@media screen and (min-width: 992px) {
    .has-medium-font-size {
        font-size: 1.4rem !important
    }

    .has-large-font-size {
        font-size: 1.6rem !important
    }

    .has-x-large-font-size {
        font-size: 2.5rem !important
    }

    h1 {
        font-size: 1.8rem
    }

    h2 {
        font-size: 1.65rem
    }

    h3 {
        font-size: 1.65rem
    }

    h4, h5, h6 {
        font-size: 1.3rem
    }
}
