/* ============================= */
/*          VARIABLES            */
/* ============================= */
:root {
    --topBarHeight: 7vh;
    --footerHeight: 2vh;
}

/* ============================= */
/*          RESET / BASE         */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #ffffff;
    color: #333;
    font-family: arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

/* ============================= */
/*          TYPOGRAPHIE           */
/* ============================= */
h1, h2, h3, h4 {
    font-weight: bold;
}

/* ============================= */
/*         STRUCTURE SITE        */
/* ============================= */

/* ---- TOPBAR ---- */

.topbar_arrow_right {
    display: none;
}

.topbar_arrow_left {
    display: none;
}

.topbar {
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    height: var(--topBarHeight);
    background: #704531;
    color: white;
    align-items: center;
    font-family: CambayDevanagari_Bold, sans-serif;
}

header.topbar {
    height: var(--topBarHeight);
    flex-shrink: 0;
}

.topbar img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Zones principales */
.topbar_left,
.topbar_center,
.topbar_right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 100%;
    font-size: 1.2rem;
    color: #fff;
}

/* Conteneur central */
.topbar_center {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 100%;
}

/* Zone 30% (logo) */
.topbar_center_left {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2%;
    max-height: 100%;
    height: var(--topBarHeight);
}

/* Zone 70% (menus) */
.topbar_center_right {
    flex: 0 0 70%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2%;
    gap: 1rem;
    height: 100%;
    overflow: visible; 
    position: relative;
    z-index: 1;
}

/* Logo */
.topbar_center_left .topbar_logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.1s ease;
    transform-origin: center center;
}

/* ============================= */
/*            DESKTOP            */
/* ============================= */
.sidebar_left,
.sidebar_right,
.topbar_left,
.topbar_right {
    position: relative;
    transform: none;
    transition: transform 0.3s ease;
}

/* ============================= */
/*           MENUS               */
/* ============================= */
.menu_horzontal {
    position: relative;
}

.dropdown_menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    list-style: none;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    min-width: 8rem;
    z-index: 2000;
    font-size: 1.2rem;
    background-color: rgb(101, 42, 42);
}

.dropdown_menu li {
    padding: 0.5rem 0;
    cursor: pointer;
}

.menu_horzontal:hover .dropdown_menu {
    display: block;
}

.dropdown_menu li:hover {
    background-color: #d0d0d0;
}

.topbar h1 {
    font-weight: 700;
    font-size: 1.8rem;
}

/* ============================= */
/*           LAYOUT              */
/* ============================= */
.layout {
    display: flex;
    flex: 1; 
    height: calc(100vh - var(--topBarHeight) - var(--footerHeight));
}

/* ============================= */
/*           FOOTER              */
/* ============================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #8c563d;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--footerHeight);
    flex-shrink: 0;
}

/* ============================= */
/*           LINKS               */
/* ============================= */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================= */
/*         CONTAINERS BASE       */
/* ============================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ============================= */
/*            FONTS              */
/* ============================= */
@font-face { font-family: 'CambayDevanagari'; src: url('/fonts/CambayDevanagari-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'CambayDevanagari_Blod'; src: url('/fonts/CambayDevanagari-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'CambayDevanagari_Italic'; src: url('/fonts/CambayDevanagari-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; }

@font-face { font-family: 'NotoSans'; src: url('/fonts/NotoSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'NotoSans_Blod'; src: url('/fonts/NotoSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'NotoSans_Italic'; src: url('/fonts/NotoSans-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; }

@font-face { font-family: 'Tanker_Claire'; src: url('/fonts/Tanker-Regular-Claire.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Tanker'; src: url('/fonts/Tanker-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }

@font-face { font-family: 'HarryPotter'; src: url('/fonts/HarryPotter.woff2') format('woff2'); font-weight: 400; font-style: normal; }
