html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* anti scroll horizontal */
}

html {
    font-size: 100%;
}


/* =========================
   HEADER — MOBILE FIRST
========================= */
.header {
    padding: 1rem 1rem; /* Réduit le padding pour plus d'espace */
    position: relative;
    z-index: 1;
    font-family: "Kyoto";
}

.name {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.location {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Accessibilité */
.visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =========================
   NAVBAR — MOBILE FIRST
========================= */
/* =========================
   NAVBAR — MOBILE FIRST
========================= */
.navbar {
    position: fixed;
    bottom: calc(2.5rem + env(safe-area-inset-bottom));

    left: 1rem;
    right: 1rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    max-width: min(90%, 20rem);
    background-color: #000;
    color: #fff;
    border: 0.0625rem solid rgba(255, 255, 255, 0.25);
    font-family: 'Kyoto', serif;
    font-weight: 400;
    z-index: 1000;
}


/* Liens */
.navbar a {
    padding: 0.4rem 0.4rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.navbar a:hover {
    opacity: 0.7;
}

/* Icône home */
.home-icon {
    inline-size: 1.125rem;
    block-size: 1.125rem;
    fill: currentColor;
}

/* =========================
   BOUTON THÈME — MOBILE
   📱 Haut droite
========================= */
.theme-toggle {
    position: fixed;
    inset-block-start: 1rem;
    inset-inline-end: 1rem;

    inline-size: 2.75rem;
    block-size: 2.75rem;

    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    cursor: pointer;

    font-size: 2rem;
    transition: transform 0.2s ease;

    z-index: 1001;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* =========================
   THEMES
========================= */
body.dark {
    background-color: #000;
    color: #fff;
}

body.light {
    background-color: #000;
    color: #000;
}

/* Navbar */
body.light .navbar {
    background-color: #ececec;
    color: #1f1f1f;
    border-color: #1f1f1f;
}

body.light .navbar a {
    color: #1f1f1f;
}
/* THEME LIGHT */
body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6 {
    color: #000;
}

/* THEME DARK */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
    color: #fff;
}
body.dark .navbar {
    background-color: #000;
    color: #fff;
}

body.dark .home-icon {
    fill: #fff;
}

/* Bouton thème */
body.dark .theme-toggle {
    color: #fff;
}

body.light .theme-toggle {
    color: #000;
}





/* =========================
   TABLETTE & DESKTOP
========================= */
@media (min-width: 48rem) {

    .header {
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 2rem;
        letter-spacing: 0.12em;
    }

    .location {
        font-size: 0.875rem;
    }

    /* NAVBAR plus fine et compacte sur desktop */
   @media (min-width: 48rem) {
   .navbar {
        position: fixed;
        bottom: 3rem;

        left: 50%;
        right: auto;
        transform: translateX(-50%);

        max-width: 20rem;        /* ⬅️ plus large */
        padding: 0.5rem 1rem;   /* ⬅️ plus respirant */
        border-radius: 0.75rem; /* ⬅️ plus doux */

        gap: 1rem;              /* ⬅️ espace entre liens */
        font-size: 0.9rem;

        justify-content: center;
    }

    .navbar a {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem; /* ⬅️ clic plus confortable */
    }

    .home-icon {
        inline-size: 1.1rem;
        block-size: 1.1rem;
    }


    /* ⭐ Desktop : bas gauche */
    .theme-toggle {
        inset-block-start: auto;       /* on ne fixe pas en haut */
        inset-inline-start: auto;      /* on ne fixe pas à gauche */
        inset-block-end: 3rem;         /* distance du bas */
        inset-inline-end: 3rem;        /* distance de la droite */
        inline-size: 3.5rem;
        block-size: 3.5rem;
        font-size: 4rem;
    }

}
