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

/* 
 * Vos styles personnalisés ici
 * Le thème parent sera chargé automatiquement
 */

/* THEME */
@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    /* MAIN COLORS */
    /* Surfaces */
    --surface-base: #fff;
    --surface-darker: #131313;
    --surface-hover: #fff;
    /* Contenu */
    --content-default: #fff;
    --content-strong: #fff;
    --content-gray: #cecece;
    --content-dark: #131313;
    /* Accented */
    --accented: #201314;


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

    /* BREAKPOINTS */
    --BP-1275: 1275px;
    --BP-1050: 1050px;
}
/* COLOR PROFILES */
.block.color-inverted {
    --context-bg: var(--accented);
    --context-text: var(--light);
    --context-span: var(--light);
    --context-heading: var(--light);
    --context-accent: var(--color2);
}

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

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

h1 {
    font-size: 4.5rem;
}
h2 {
    font-size: 3.5rem;
    font-weight: 100;
}
p {
    /* color: var(--content-default); */
    font-size: 1rem;
}
p, ul {
  color: var(--context-text, var(--content-dark));
}

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

button,
.button {
    font-size: 1.2rem;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    color: var(--surface-darker);

    background: #fff;
    background-size: 300% 300%;
    background-position: 0% 50%;

    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 {
    cursor: pointer;
    color: black;
    background-color: #e3dfdff3;
}
button.empty-btn:hover,
.button.empty-btn:hover {
    cursor: pointer;
    color: var(--content-default);
    background-color: #ffffff3d;
}


/* HEADER */
header,
header nav,
header ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin: 0;
}

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

    background-color: rgba(0, 0, 0, 0.841);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Pour Safari */
}
header h1 {
    font-size: 1.7rem;
    margin: 0;
    color: var(--content-default);
}

header nav {
    position: relative;
}

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

.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;
    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;
    }

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

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



/* Surcharge d'un style du parent si nécessaire */
.openbuilder-container {
    /* vos modifications */
}
