/* ╔════════════════════════════════════════════════╗
   ╠═══════════╣ PORTFOLIO — STYLES.CSS ╠═══════════╣
   ╠════════════════════════════════════════════════╣
   ║ This file contains all the styles for my       ║
   ║ portfolio website.                             ║
   ╚════════════════════════════════════════════════╝
                                                   */

/* ╔════════════════════════════════════════════════╗
   ╠═══════════════╣ CSS VARIABLES  ╠═══════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section defines all CSS custom properties ║
   ║ for fonts, spacing, colors, transitions, and   ║
   ║ more. These variables make it easy to maintain ║
   ║ and update the design system.                  ║
   ╚════════════════════════════════════════════════╝
   See the site below to get filters based on your
   color: 
   https://angel-rs.github.io/css-color-filter-generator/
                                                   */

:root {
    /*────────────────┤ FONT TYPE ├────────────────*/
    --font-body: "Open Sans", sans-serif;
    --font-heading: "Montserrat", sans-serif;

    /*────────────────┤ FONT SIZE ├────────────────*/
    --font-size-xs: 0.75rem;
    --font-size-s: 0.875rem;
    --font-size-m: 1rem;
    --font-size-l: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;

    /*───────────────┤ SPACE SIZE  ├───────────────*/
    --space-xs: 0.25rem;
    --space-s: 0.5rem;
    --space-m: 1rem;
    --space-l: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /*───────────────┤ RADIUS SIZE ├───────────────*/
    --radius-s: 0.25rem;
    --radius-m: 0.5rem;
    --radius-l: 1rem;
    --radius-full: 50rem;

    /*──────────────┤ COLOR ACCENT  ├──────────────*/
    --color-primary: #e64a19;
    --color-primary-filter: brightness(0) saturate(100%) invert(31%) sepia(65%) saturate(5340%) hue-rotate(2deg) brightness(104%) contrast(80%);
    --color-accent-blue: #0250c4;
    --color-accent-blue-filter: brightness(0) saturate(100%) invert(22%) sepia(95%) saturate(2167%) hue-rotate(206deg) brightness(87%) contrast(108%);
    --color-accent-green: #2CA03C;

    /*───────────────┤ LIGHT THEME ├───────────────*/
    --light-color-bg: #ffffff;
    --light-color-bg-alt: #f5f5f5;
    --light-color-text: #212121;
    --light-color-text-filter: brightness(0) saturate(100%) invert(4%) sepia(5%) saturate(10%) hue-rotate(314deg) brightness(91%) contrast(80%);
    --light-color-text-muted: #616161;
    --light-color-text-muted-blue: #6161B1;
    --light-color-border: #e0e0e0;
    --light-color-header-bg: rgba(255, 255, 255, 0.5);
    --light-color-drawer-bg: rgba(255, 255, 255, 0.5);
    --light-color-overlay-bg: rgba(255, 255, 255, 0.5);
    --light-opacity-icon-sun: 0;
    --light-opacity-icon-moon: 1;
    --light-transform-icon-theme: rotateZ(0);

    /*──────────────┤ DARK THEME  ├──────────────*/
    --dark-color-bg: #121212;
    --dark-color-bg-alt: #1e1e1e;
    --dark-color-text: #e0e0e0;
    --dark-color-text-filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(160%) hue-rotate(150deg) brightness(89%) contrast(97%);
    --dark-color-text-muted: #9e9e9e;
    --dark-color-text-muted-blue: #9e9eee;
    --dark-color-border: #333333;
    --dark-color-header-bg: rgba(18, 18, 18, 0.5);
    --dark-color-drawer-bg: rgba(18, 18, 18, 0.5);
    --dark-color-overlay-bg: rgba(0, 0, 0, 0.5);
    --dark-opacity-icon-sun: 1;
    --dark-opacity-icon-moon: 0;
    --dark-transform-icon-theme: rotateZ(360deg);

    /*────────────┤ TRANSITION SPEED  ├────────────*/
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /*──────────────────┤ OTHER ├──────────────────*/
    --icon-m: 1.5rem;
    --icon-l: 2.5rem;
    --icon-xl: 3.5rem;
    --control-btn-size: 2.5rem;
    --header-height: 4rem;
    --backdrop-filter-header: blur(4px);
    --border-size: 2px;
    --width-paragraph: min(60rem, 80vw);
}

/*                  ╔══════════════╗
   ╔════════════════╝    THEME     ╚════════════════╗
   ╠════════════════╣ ════════════ ╠════════════════╣
   ╠════════════════╗ DO NOT EDIT  ╔════════════════╣
   ║                ╚══════════════╝                ║
   ║ These variables adapt dynamically to the       ║
   ║ selected theme.                                ║
   ╚════════════════════════════════════════════════╝
                                                   */

/*─────────────────┤ LIGHT THEME ├─────────────────*/
@media (prefers-color-scheme: light) {
    :root {
        --color-bg: var(--light-color-bg);
        --color-bg-alt: var(--light-color-bg-alt);
        --color-text: var(--light-color-text);
        --color-text-filter: var(--light-color-text-filter);
        --color-text-muted: var(--light-color-text-muted);
        --color-text-muted-blue: var(--light-color-text-muted-blue);
        --color-border: var(--light-color-border);
        --color-header-bg: var(--light-color-header-bg);
        --color-drawer-bg: var(--light-color-drawer-bg);
        --color-overlay-bg: var(--light-color-overlay-bg);
        --opacity-icon-sun: var(--light-opacity-icon-sun);
        --opacity-icon-moon: var(--light-opacity-icon-moon);
        --transform-icon-theme: var(--light-transform-icon-theme);
    }

    /*───────────────┤ DARK THEME  ├───────────────*/
    body:has(#theme-details[open]) {
        --color-bg: var(--dark-color-bg);
        --color-bg-alt: var(--dark-color-bg-alt);
        --color-text: var(--dark-color-text);
        --color-text-filter: var(--dark-color-text-filter);
        --color-text-muted: var(--dark-color-text-muted);
        --color-text-muted-blue: var(--dark-color-text-muted-blue);
        --color-border: var(--dark-color-border);
        --color-header-bg: var(--dark-color-header-bg);
        --color-drawer-bg: var(--dark-color-drawer-bg);
        --color-overlay-bg: var(--dark-color-overlay-bg);
        --opacity-icon-sun: var(--dark-opacity-icon-sun);
        --opacity-icon-moon: var(--dark-opacity-icon-moon);
        --transform-icon-theme: var(--dark-transform-icon-theme);
    }
}

/*─────────────────┤ DARK THEME  ├─────────────────*/
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: var(--dark-color-bg);
        --color-bg-alt: var(--dark-color-bg-alt);
        --color-text: var(--dark-color-text);
        --color-text-filter: var(--dark-color-text-filter);
        --color-text-muted: var(--dark-color-text-muted);
        --color-text-muted-blue: var(--dark-color-text-muted-blue);
        --color-border: var(--dark-color-border);
        --color-header-bg: var(--dark-color-header-bg);
        --color-drawer-bg: var(--dark-color-drawer-bg);
        --color-overlay-bg: var(--dark-color-overlay-bg);
        --opacity-icon-sun: var(--dark-opacity-icon-sun);
        --opacity-icon-moon: var(--dark-opacity-icon-moon);
        --transform-icon-theme: var(--dark-transform-icon-theme);
    }

    /*───────────────┤ LIGHT THEME ├───────────────*/
    body:has(#theme-details[open]) {
        --color-bg: var(--light-color-bg);
        --color-bg-alt: var(--light-color-bg-alt);
        --color-text: var(--light-color-text);
        --color-text-filter: var(--light-color-text-filter);
        --color-text-muted: var(--light-color-text-muted);
        --color-text-muted-blue: var(--light-color-text-muted-blue);
        --color-border: var(--light-color-border);
        --color-header-bg: var(--light-color-header-bg);
        --color-drawer-bg: var(--light-color-drawer-bg);
        --color-overlay-bg: var(--light-color-overlay-bg);
        --opacity-icon-sun: var(--light-opacity-icon-sun);
        --opacity-icon-moon: var(--light-opacity-icon-moon);
        --transform-icon-theme: var(--light-transform-icon-theme);
    }
}

/* ╔════════════════════════════════════════════════╗
   ╠═════════════════╣ CSS RESET  ╠═════════════════╣
   ╠════════════════════════════════════════════════╣
   ║This is a reset to the CSS default style.       ║
   ╚════════════════════════════════════════════════╝
                                                   */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        filter var(--transition-fast),
        border-color var(--transition-fast);
}

/* ╔════════════════════════════════════════════════╗
   ╠═════════════════╣ CSS PRESET ╠═════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ These are the default settings for certain     ║
   ║ elements, which provide a starting point and   ║
   ║ help you visualize what you're building from   ║
   ║ the outset.                                    ║
   ╚════════════════════════════════════════════════╝
                                                   */

html {
    font-size: var(--font-size-m);
    scroll-behavior: smooth;
    /* The line below prevent content from hidding behind the header after a redirection */
    scroll-padding-top: calc(var(--header-height) + var(--space-m));
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

main {
    margin: 0 auto;
    padding: 0 var(--space-l) var(--space-l) var(--space-l);
    display: flex;
        flex-direction: column;
        flex-grow: 1;
        align-items: center;
        justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
summary {
    list-style: none;
}

button {
    border: none;
    background: transparent;
}

label {
    cursor: pointer;
}

:focus-visible {
    outline: var(--border-size) solid var(--color-primary);
    outline-offset: var(--border-size);
    border-radius: var(--radius-s);
}

/* ╔════════════════════════════════════════════════╗
   ╠═══════════════════╣ UTILS  ╠═══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ Utility classes.                               ║
   ╚════════════════════════════════════════════════╝
                                                   */

.spacer {
    display: flex;
    flex-grow: 1;
}

/* ╔════════════════════════════════════════════════╗
   ╠══════════════╣ LANGUAGE SYSTEM  ╠══════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section handles language switching        ║
   ║ between French and English.                    ║
   ╚════════════════════════════════════════════════╝
                                                   */

/*────────────────┤ DEFAULT STATE ├────────────────*/
[lang="en"] {
    display: none;
}

[lang="fr"] {
    display: inline;
}

/*────────────────┤ OPENED STATE  ├────────────────*/
body:has(#lang-details[open]) {
    [lang="en"] {
        display: inline;
    }

    [lang="fr"] {
        display: none;
    }
}

/* ╔════════════════════════════════════════════════╗
   ╠════════════╣ ICONS & THEME TOGGLE ╠════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the icons and the theme    ║
   ║ toggle (sun/moon) for light and dark mode.     ║
   ╚════════════════════════════════════════════════╝
                                                   */

.icon {
    width: var(--icon-m);
    height: var(--icon-m);
    transition:
        opacity var(--transition-fast),
        filter var(--transition-fast);
    user-select: none;
    filter: var(--color-text-filter);
}

/*─────────────────┤ THEME ICONS ├─────────────────*/
#theme-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#icon-sun,
#icon-moon {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: var(--transform-icon-theme);
    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

#icon-sun {
    opacity: var(--opacity-icon-sun);
}

#icon-moon {
    opacity: var(--opacity-icon-moon);
}

/*───────────────┤ UP ARROW ICONS  ├───────────────*/

#icon-up-arrow {
    width: var(--icon-l);
    height: var(--icon-l);
    filter: var(--dark-color-text-filter);
}
/* ╔════════════════════════════════════════════════╗
   ╠═══════════════════╣ HEADER ╠═══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the fixed header with      ║
   ║ logo and navigation controls.                  ║
   ╚════════════════════════════════════════════════╝
                                                   */

header {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: var(--space-l);
    background-color: var(--color-header-bg);
    backdrop-filter: var(--backdrop-filter-header);
    border-bottom: 2px solid var(--color-border);
}

.header-logo {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.header-controls {
    display: flex;
    gap: var(--space-s);
    align-items: center;
}

/*───────────────┤ CONTROL BUTTONS ├───────────────*/
.control-btn,
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--control-btn-size);
    height: var(--control-btn-size);
    border-radius: var(--radius-m);
    cursor: pointer;
}

.lang-indicator {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-s);
    user-select: none;
}

.control-btn:hover,
.control-btn:focus-visible,
.hamburger-btn:hover,
.hamburger-btn:focus-visible,
.drawer-wrapper:has(.burger-close-mask:hover) .hamburger-btn:focus-within {
    background-color: var(--color-bg-alt);

    .icon,
    .lang-indicator,
    .hamburger-line {
        filter: var(--color-primary-filter);
    }
}

/* ╔════════════════════════════════════════════════╗
   ╠═════════════╣ DRAWER / HAMBURGER ╠═════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section handles the mobile navigation     ║
   ║ drawer with hamburger menu animation.          ║
   ╚════════════════════════════════════════════════╝
                                                   */

/*───────────────┤ DRAWER WRAPPER  ├───────────────*/
.drawer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-close-mask {
    position: absolute;
    inset: 0;
    z-index: -1;
    cursor: pointer;
}

.hamburger-btn {
    position: relative;
    flex-direction: column;
    gap: 5px;
}

/*───────────────┤ HAMBURGER LINES ├───────────────*/
.hamburger-line {
    width: 1.25rem;
    height: 2px;
    background-color: var(--color-text);
    border-radius: var(--radius-full);
    transition:
        transform var(--transition-base),
        opacity var(--transition-base),
        background-color var(--transition-fast),
        filter var(--transition-fast);

}

.drawer-wrapper:focus-within {
    .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .burger-close-mask {
        z-index: 1;
    }
}

/*────────────────┤ DRAWER PANEL  ├────────────────*/
.drawer-panel {
    position: fixed;
    top: calc(var(--header-height));
    right: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height));
    padding: var(--space-l);
    overflow-y: auto;
    background-color: var(--color-drawer-bg);
    backdrop-filter: var(--backdrop-filter-header);
    border-radius: 0 0 0 var(--radius-l);
    border-bottom: var(--border-size) solid var(--color-border);
    border-left: var(--border-size) solid var(--color-border);
    transform: translateX(100%);
    transition:
        transform var(--transition-slow),
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
    min-width: 20rem;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9;
    background-color: var(--color-overlay-bg);
    backdrop-filter: var(--backdrop-filter-header);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

body:has(.drawer-wrapper:focus-within) {
    .drawer-panel {
        transform: translateX(0);
    }

    .drawer-overlay {
        opacity: 1;
        pointer-events: all;
    }
}

/*────────────────┤ DRAWER LINKS  ├────────────────*/
.drawer-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    border-radius: var(--radius-m);
}

.drawer-link:hover,
.drawer-link:focus-visible {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);

    .icon {
        filter: var(--color-primary-filter);
    }
}

/* ╔════════════════════════════════════════════════╗
   ╠══════════════════╣ SECTIONS ╠══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section defines the general section       ║
   ║ layout and title styling.                      ║
   ╚════════════════════════════════════════════════╝
                                                   */

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
    max-width: var(--width-paragraph);
}

/* ╔════════════════════════════════════════════════╗
   ╠════════════════════╣ HERO ╠════════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the hero/landing area with ║
   ║ title and subtitle.                            ║
   ╚════════════════════════════════════════════════╝
                                                   */

#hero {
    margin-top: calc(var(--header-height) + var(--space-l));
    min-height: calc(60vh - var(--header-height) - var(--space-l) - var(--space-3xl));
    gap: var(--space-l);
}

#hero-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    max-width: var(--width-paragraph);
}

#hero-subtitle {
    font-size: var(--font-size-l);
    color: var(--color-text-muted);
    text-align: center;
    max-width: var(--width-paragraph);
}

#hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
}
/* ╔════════════════════════════════════════════════╗
   ╠═══════════╣ CALL-TO-ACTION BUTTONS ╠═══════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the CTA buttons for        ║
   ║ primary actions and leave actions.             ║
   ╚════════════════════════════════════════════════╝
                                                   */

.btn-cta,
.btn-cta-leave {
    padding: var(--space-s) var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.btn-cta:hover,
.btn-cta:focus-visible {
    transform: scale(110%);
}

.btn-cta-leave:hover,
.btn-cta-leave:focus-visible {
    transform: scale(110%);
    background-color: var(--color-accent-blue);
}

.btn-cta-leave:focus-visible {
    outline: var(--border-size) solid var(--color-accent-blue);
}

/* ╔════════════════════════════════════════════════╗
   ╠═════════════════╣ UP BUTTON  ╠═════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the UP button              ║
   ╚════════════════════════════════════════════════╝
                                                   */

.btn-up-track {
    position: absolute;
    top: 103vh;
    bottom: calc(var(--space-m) * 4);
    right: var(--space-l);
    z-index: 1;
    pointer-events: none;
}

.btn-up {
    position: sticky;
    top: calc(100vh - var(--icon-xl) - var(--space-l));
    width: var(--icon-xl);
    height: var(--icon-xl);
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: transform var(--transition-fast);
}

.btn-up:hover,
.btn-up:focus-visible {
    transform: scale(110%);
}
/* ╔════════════════════════════════════════════════╗
   ╠═══════════════════╣ ABOUT  ╠═══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the about me area with     ║
   ║ description text and skills list.              ║
   ╚════════════════════════════════════════════════╝
                                                   */

#about {
    min-height: calc(40vh - var(--space-3xl));
}

#about-content {
    max-width: var(--width-paragraph);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

#about-text {
    color: var(--color-text-muted);
    text-align: justify;
}

/*─────────────────┤ SKILLS LIST ├─────────────────*/
#skills-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
}

#skills-list li {
    padding: var(--space-xs) var(--space-m);
    background-color: var(--color-bg-alt);
    border: var(--border-size) solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-s);
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ╔════════════════════════════════════════════════╗
   ╠══════════════════╣ PROJECTS ╠══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section handles the project cards grid,   ║
   ║ filter tabs, and project item styling.         ║
   ╚════════════════════════════════════════════════╝
                                                   */

/*─────────────────┤ FILTER TABS ├─────────────────*/
.tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-s);
    margin-bottom: var(--space-xl);
}

.tab {
    padding: var(--space-xs) var(--space-l);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-size-s);
    background-color: var(--color-bg-alt);
    border: var(--border-size) solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.tab:hover,
.tab:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/*──────────────┤ ACTIVE TAB STATE  ├──────────────*/
body:has(#tab-all[open]) #tab-all summary.tab,
body:has(#tab-perso[open]) #tab-perso summary.tab,
body:has(#tab-school[open]) #tab-school summary.tab {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

body:not(:has(details[name="project-tabs"][open])) #tab-all summary.tab {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/*────────────────┤ PROJECTS GRID ├────────────────*/
.projects-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-l);
    width: 80vw;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    padding: var(--space-l);
    background-color: var(--color-bg-alt);
    border: var(--border-size) solid var(--color-border);
    border-radius: var(--radius-l);
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.project-card:hover,
.project-card:focus-visible {
    transform: scale(103%);
    border-color: var(--color-accent-blue);
}

.project-card:focus-visible {
    outline: var(--border-size) solid var(--color-accent-blue);
}

.project-card:hover.nocode,
.project-card:focus-visible.nocode {
    transform: scale(103%);
    border-color: var(--color-primary);
}

.project-card:focus-visible.nocode {
    outline: var(--border-size) solid var(--color-primary);
}
/*────────────┤ PROJECT CARD CONTENT  ├────────────*/
.project-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-l);
    font-weight: 700;
    max-width: var(--width-paragraph);
}

.project-content {
    color: var(--color-text-muted);
    text-align: justify;
    font-size: var(--font-size-s);
}

.project-badge {
    align-self: flex-start;
    padding: var(--space-xs) var(--space-s);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: var(--radius-s);
}

.project-card.featured {
    border-left: calc(var(--border-size) * 2) solid var(--color-primary);
}

.project-media {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-m);
}
/*────────────────┤ PROJECT TAGS  ├────────────────*/
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    padding: 2px var(--space-s);
    border: var(--border-size) solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    background-color: var(--color-bg-alt);
}

/*────────────┤ PROJECT FILTER LOGIC  ├────────────*/
body:has(#tab-perso[open]) .project-card.school,
body:has(#tab-school[open]) .project-card.perso {
    display: none;
}

/* ╔════════════════════════════════════════════════╗
   ╠══════════════════╣ TIMELINE ╠══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the experience timeline    ║
   ║ with date, title and content formatting.       ║
   ╚════════════════════════════════════════════════╝
                                                   */

.timeline {
    width: 80vw;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.timeline-item {
    padding-left: var(--space-xl);
    border-left: calc(var(--border-size) * 2) solid var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-s);
    color: var(--color-primary);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-l);
    font-weight: 700;
    max-width: var(--width-paragraph);
}

.timeline-content {
    color: var(--color-text-muted);
    text-align: justify;
}

/* ╔════════════════════════════════════════════════╗
   ╠══════════════════╣ NETWORKS ╠══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the social networks grid   ║
   ║ with card layout for each platform.            ║
   ╚════════════════════════════════════════════════╝
                                                   */

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--space-l);
    width: var(--width-paragraph);
}

.network-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xl);
    background-color: var(--color-bg-alt);
    border: var(--border-size) solid var(--color-border);
    border-radius: var(--radius-l);
    transition:
        transform var(--transition-fast),
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.network-card:hover,
.network-card:focus-visible {
    transform: scale(105%);
    border-color: var(--color-accent-blue);
    .network-name {
            color: var(--color-accent-blue);
        }
    
        .network-handle {
            color: var(--color-text-muted-blue);
        }
    
        .network-icon {
            filter: var(--color-accent-blue-filter);
        }
}

.network-card:focus-visible {
    outline: var(--border-size) solid var(--color-accent-blue);
}

.network-name {
    margin-top: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-l);
}

.network-handle {
    font-size: var(--font-size-s);
    color: var(--color-text-muted);
}

.network-icon {
    width: var(--icon-l);
    height: var(--icon-l);
    transition:
        opacity var(--transition-fast),
        filter var(--transition-fast);
    user-select: none;
    filter: var(--color-text-filter);
}
/* ╔════════════════════════════════════════════════╗
   ╠══════════════════╣ CONTACT  ╠══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the contact area with      ║
   ║ introductory text.                             ║
   ╚════════════════════════════════════════════════╝
                                                   */

#contact-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-l);
    font-size: var(--font-size-l);
    max-width: var(--width-paragraph);
    text-align: justify;
}

/* ╔════════════════════════════════════════════════╗
   ╠════════════════════╣ WIP  ╠════════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the wip area with title    ║
   ║ and subtitle.                                  ║
   ╚════════════════════════════════════════════════╝
                                                   */

#wip {
    margin-top: calc(var(--header-height) + var(--space-l));
    gap: var(--space-l);
}

#wip-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    max-width: var(--width-paragraph);
}

#wip-subtitle {
    font-size: var(--font-size-l);
    color: var(--color-text-muted);
    text-align: center;
    max-width: var(--width-paragraph);
}
/* ╔════════════════════════════════════════════════╗
   ╠════════════════╣ LEGAL NOTICE ╠════════════════╣ ╠════════════════════════════════════════════════╣ ║ This section styles the legal notice page. ║ ╚════════════════════════════════════════════════╝ */ #legal-notice {
       margin-top: calc(var(--header-height) + var(--space-l));
       gap: var(--space-l);
   }

   #legal-notice-title {
       text-align: center;
       font-family: var(--font-heading);
       font-size: var(--font-size-3xl);
       font-weight: 700;
       max-width: var(--width-paragraph);
    margin-bottom: var(--space-m);
   }

   .legal-notice-title-2 {
       font-size: var(--font-size-xl);
       font-weight: 600;
       max-width: var(--width-paragraph);
   }

   .legal-notice-content {
       font-size: var(--font-size-m);
       color: var(--color-text-muted);
       text-align: justify;
       width: calc(var(--width-paragraph) / 2);
    margin-bottom: var(--space-m);
   }

   /* ╔════════════════════════════════════════════════╗
   ╠═══════════════════╣ FOOTER ╠═══════════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section styles the page footer with       ║
   ║ copyright and border styling.                  ║
   ╚════════════════════════════════════════════════╝
                                                   */

footer {
    text-align: center;
    padding: var(--space-m) 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-s);
    border-top: var(--border-size) solid var(--color-border);
}

/* ╔════════════════════════════════════════════════╗
   ╠═══════════════╣ MEDIA QUERIES  ╠═══════════════╣
   ╠════════════════════════════════════════════════╣
   ║ This section handles responsive design         ║
   ║ adjustments for tablets and mobile devices.    ║
   ╚════════════════════════════════════════════════╝
                                                   */

/*───────────────────┤ TABLET  ├───────────────────*/
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
        --font-size-l: 1.125rem;

        --font-size-m: 1rem;
        --font-size-l: 1.25rem;
        --font-size-xl: 1.5rem;
        --font-size-2xl: 2rem;
        --font-size-3xl: 2.5rem;
    }
}

/*───────────────────┤ MOBILE  ├───────────────────*/
@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.375rem;
        --font-size-xl: 1.2rem;
        --font-size-l: 1.1rem;
    }

    header {
        padding: var(--space-m);
    }

    main {
        padding: 0 var(--space-m) var(--space-m) var(--space-m);
    }

    .drawer-panel {
        width: 100%;
        border-left: none;
        border-radius: 0;
    }
#hero-btns {
    flex-direction: column;
}
}