/*
Theme Name: Open Builder WP - Child
Template: Page-Builder-Wordpress-master
Description: Thème enfant pour Open Builder WP - Personnalisations client
Author: Kilian Liccia
Version: 1.0.0
Text Domain: openbuilderWP-child
*/


/* THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* MAIN COLORS */
    /* Surfaces */
    --surface-base: #21466E;
    --surface-darker: #121621;
    --surface-hover: #fff;
    /* Contenu */
    --content-default: #fff;
    --content-strong: #fff;
    --content-gray: #d5dfec;
    --content-dark: #121419;
    /* Accented */
    --accented: #21466E;
    --accented-2: #121621;

    /* SIZES */
    --main-window-width: 1200px;
    --small-window-width: 900px;

    /* BREAKPOINTS */
    --BP-1275: 1275px;
    --BP-1050: 1050px;
    --BP-756: 756px;

    /* BACKGROUNDS GRADIENTS */
    --background-dark-trans: linear-gradient(0, rgba(0, 0, 0, 0.721), rgba(0, 0, 0, 0));
    --background-trans: linear-gradient(
        0deg,
        var(--surface-base) 0%,
        color-mix(in srgb, var(--surface-base) 0%, transparent) 80%
    );
    --background-main: linear-gradient(
        0deg,
        var(--surface-base) 0%,
        var(--surface-darker) 100%
    );
    --background-main-rev: linear-gradient(
        0deg,
        var(--surface-darker) 0%,
        var(--surface-base) 100%
    );
}
/* COLOR PROFILES */
.block.color-inverted {
    --context-bg: var(--content-default);   /* blanc */
    --context-text: var(--content-dark);    /* noir bleuté */
    --context-span: var(--accented-2);      /* bleu foncé */
    --context-heading: var(--accented);     /* bleu clair */
    --context-accent: var(--accented);      /* bleu clair */
}

body {
  background-color: var(--surface-base);
}

* {
    font-family: 'Montserrat', Times;
    color: var(--content-default);
}
h1, h2, h3, h4, h5, span {
    font-weight: 100;
    font-family: "Inter", sans-serif;
    color: var(--context-dark, var(--content-default));
}

h1 {
    font-size: 4.5rem;
}
h2 {
    font-size: clamp(1rem, 2.5rem, 8vw);
    font-weight: 400;
    margin: 0;
}
p {
    /* color: var(--content-default); */
    font-size: 1rem;
}
p, ul, b {
  color: var(--context-dark, var(--content-default));
  margin: 0;
}

svg {
  width: 31px;
  height: 31px;
}

/* ----------- ELEMENTS ----------- */

button,
.button {
    font-size: 1rem;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    color: var(--surface-darker);
    background-color: #fff;
    transition: 0.4s;
    text-decoration: none;
}
button.empty-btn,
.button.empty-btn {
    background: none;
    color: var(--content-default);
    border: 1px solid var(--content-default);
}
button:hover,
.button:hover {
    background-color: var(--accented);
    cursor: pointer;
    color: var(--content-default);
}
button.empty-btn:hover,
.button.empty-btn:hover {
    cursor: pointer;
    color: var(--content-default);
    background-color: #ffffff3d;
}


/* -------------------------------------------------- HEADER -------------------------------------------------- */
header {
    display: flex;
    align-items: center;
    justify-content: center; /* centrer .header-inner-cont */
    margin: 0;
}

header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: nowrap; /* 👈 clé pour Safari */
    gap: 10px;
    margin: 0;
}

header ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* 👈 idem */
}

header {
    position: fixed;
    top: var((--wp-admin--admin-bar--height), 0);
    z-index: 100;
    width: 100%;

    transition: 0.7s;
}
header.background {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Pour Safari */
    background-color: rgba(0, 0, 0, 0.8);
}

header .header-inner-cont {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    
    display: flex;
    justify-content: space-between;
}

header .logo {
    display: inline;
    position: absolute;
    transition: 0.1s;
}
header .logo {
  transform-origin: center center;
}


header .logo img {
    height: 70px;
    width: auto;
}

header .logo-space {
    flex: 1;
    min-width: 200px;
}
header nav {
    flex: 3;
}

header h1 {
    font-size: 1.7rem;
    margin: 0;
    color: var(--content-default);
}
header a {
    text-decoration: none;
}
header nav {
    position: relative;
}

header ul {
    list-style: none;
    padding: 0;
}

nav.hidden {
    visibility: hidden;
}

.menu-principal {
    gap: 0;
}

.menu-principal a {
    text-decoration: none;
    font-size: 1rem;
    padding: 15px;
    border: solid #ffffff00;
    border-width: 0 0 1px 0;
    display: flex;
    transition: 0.2s;
    color: var(--content-gray);
}
.menu-principal a:hover {
    border-color: #fff;
    color: #fff;
}

nav a.active {
  color: #fff;
  border-color: #fff;
  border-width: 0 0 1px 0;
  /* ton style actif ici */
}

header ul svg {
    height: 30px;
    display: block;
    /* width: fit-content; */
    width: 31px;
    transition: filter 0.3s ease;
}
header .menu-social {
    padding: 0 15px;
}

header .menu-social svg {
    filter: grayscale(100%);
}
header .menu-social a:hover svg {
    filter: grayscale(0%);
}

header .menu-social a {
    display: block;
    height: fit-content;
    width: fit-content;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    transform: translateX(40%);
    background: black;
    padding: 0 15px;
}
.menu-lang:hover .lang-dropdown {
    display: block;
}
.menu-lang:hover .lang-dropdown p {
    color: var(--content-default);
}

.phone-hamburger {
    display: none;
}

@media screen and (max-width: 1050px) {

    .phone-hamburger {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        display: block;
    }

    .phone-hamburger .burger-btn.hidden-btn {
        display: none;
    }

    .phone-hamburger svg {
        width: 40px;
        height: auto;
        padding: 5px;
        background-color: rgba(0, 0, 0, 0.566);
    }
    .phone-hamburger svg:hover {
        cursor: pointer;
    }
    .phone-hamburger path {
        color: #fff;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly;
    }
    
    header.hidden {
        opacity: 0;
        pointer-events: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    header nav,
    header nav .menu-principal {
        flex-direction: column;
    }

    header .menu-principal a {
        font-size: 1.4rem;
    }
}


/* -------------------------------------------------- FOOTER -------------------------------------------------- */
footer {
    background-color: var(--surface-darker);
    min-height: 250px;
    
    box-shadow: -3px -3px 27px 0px rgba(0,0,0,0.26);
    -webkit-box-shadow: -3px -3px 27px 0px rgba(0,0,0,0.26);
    -moz-box-shadow: -3px -3px 27px 0px rgba(0,0,0,0.26);

    border-width: 2px 0 0 0;
    border-style: solid;
    border-color: var(--accented);
}


footer * {
    color: #dd959a;
}
footer h3 {
    color: var(--content-default);
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-width: 1200px;
    margin: auto;
}

footer .footer-column {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

footer .title {
    text-align: center;
    flex: 1;
}

footer .content {
    flex: 2;
    display: flex;
}

footer .pages {
    display: flex;
    flex-direction: column;
}

footer .socials {
    width: fit-content;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer .socials svg {
    width: 30px;
    height: auto;
    transition: 0.3s ease;
}

footer .socials svg:hover {
    transform: scale(1.08);
}

footer .single-part {
    display: flex;
    justify-content: center;
    max-width: 70%;
    margin: auto;
}

footer .adami img {
    max-width: 60%;
}

@media (max-width: 800px) {
    footer {
        max-width: 100vw;
        overflow: hidden;
    }

    .footer-wrapper {
        display: grid;
    }

    .footer-column:first-child {
        order: 2;
    }
}



/* -------------------------------------------------- READY CLASSES -------------------------------------------------- */

.frost {
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1.9px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.13);
}
.hard-frost {
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.dotted-texture {
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
    background-size: 24px 24px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.dotted-texture::before {

}
