/*
 Theme Name:   Hello World !
 Description:  A child theme from Html5blank
 Author:       César for ___
 Template:     html5blank-stable
 Version:      1.0.0
*/

:root {
    --color-cream:  #FFF8E6; /* beige clair */
    --color-yellow: #EEC73F; /* jaune */
    --color-purple: #8C527C; /* violet */

    --font-heading: "Caprasimo", serif;
    --font-body: "Alan Sans", sans-serif;
}

/* ==========================================
   RESET DE BASE
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;

}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-purple);
}

h1, h2, h3, h4,
.header__title,
.home-cover__title {
    font-family: var(--font-heading);
}

/* ==========================================
   WRAPPER
   ========================================== */
.wrapper {
    position: relative;
    max-width:  none;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   SECTIONS FRONT PAGE — couleurs temporaires
   pour visualiser les blocs au scroll
   ========================================== */
.section-block {
    height: 90vh;
    width: 100%;
}

#cover    { background-color: var(--color-cream); }
#studio   { background-color: var(--color-purple); }
#founders { background-color: var(--color-cream); }
#projects { background-color: var(--color-yellow); }

body.nav-open-lock {
    overflow: hidden;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: relative;
    background-color: var(--color-yellow);
    z-index: 10;
    overflow: visible; /* pour laisser le logo déborder en dessous */
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 40px;
    min-height: 72px;
}

/* Logo en "badge" qui déborde sous le bandeau jaune, comme sur le mockup */
.header__logo {
    position: absolute;
    left: 24px;
    top: 0;
    z-index: 20;
}

.header__logo a {
    display: block;
}

.header__logo img {
    display: block;
    height: 82px;   /* rectangle vertical : on pilote par la hauteur, la largeur suit automatiquement */
    width: auto;
    transform: translateY(20%); /* décale vers le bas pour créer le chevauchement sur la section suivante */
    transform-origin: center;
    transition: transform 0.3s ease;
}

.header__logo a:hover img,
.header__logo a:focus-visible img {
    transform: translateY(20%) rotate(8deg);
}

/* ==========================================
   NAV — desktop
   ========================================== */
.nav__list {
    display: flex;
    align-items: center;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list a {
    font-weight: 700;
    color: var(--color-purple);
    text-decoration: none;
    font-size: 16px;
}

.nav__list a:hover,
.nav__list a:focus {
    text-decoration: underline;
}

/* ==========================================
   BURGER — masqué en desktop
   ========================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 30;
}

.nav-toggle__bar {
    width: 24px;
    height: 3px;
    background-color: var(--color-purple);
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

body.nav-open-lock {
    overflow: hidden;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767px) {
    .header__inner {
        justify-content: flex-end;
        padding: 16px 24px;
        min-height: 64px;
    }

    .header__logo img {
        height: 64px; /* plus petit en mobile pour ne pas écraser le bandeau */
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background-color: var(--color-yellow);
        padding: 100px 24px 24px;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s ease, visibility 0s linear 0.35s;
    }

    .nav.nav--open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s ease, visibility 0s linear 0s;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav__list a {
        font-size: 22px;
    }
}