/* ============================================================
   veille.css — Veille Informatique
   Identique à wordpress.css / style.css
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

::selection { background-color: transparent; }
::-moz-selection { background: 0 0; }

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

:root {
    cursor: default;
    --color-white: #fff;
    --color-black: #000;
    --color-dark-mode: #11111b;
    --color-light-mode: #ece7e1;
    --color-ddd-color: #ddd;
    --color-gray: #c4c4c4;
    --color-purple: #8000ff;
    --color-light-purple: #cf59e6;
    --color-light-blue: #6bc5f8;
    --color-navbarBorder-dark: #e2e2e207;
    --color-shadowDark: rgba(0, 0, 0, 0.137);
    --static-heading-gradient-blue: #b0f3f1;
    --static-heading-gradient-pink: #ffcfdf;
    --tech-stack-box-first-color: #1a1a29;
    --tech-stack-box-second-color: rgba(27, 27, 40, 0);
    --tech-stack-box-border-color: #292929;
    /* Police par défaut identique à index.html */
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
/* Info / warn boxes */
.info-box {
    background: linear-gradient(135deg, rgba(107,197,248,0.12), rgba(207,89,230,0.08));
    border-left: 4px solid var(--color-light-blue);
    border-radius: 0 10px 10px 0;
    padding: 14px 20px;
    margin: 18px 0;
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: var(--color-ddd-color);
    font-style: italic;
}
.warn-box {
    background: rgba(192,0,0,0.1);
    border-left: 4px solid #c00000;
    border-radius: 0 10px 10px 0;
    padding: 14px 20px;
    margin: 18px 0;
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #ffaaaa;
    font-style: italic;
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
.light-mode {
    --color-dark-mode: #ece7e1;
    --color-black: #fff;
    --color-white: #000;
    --color-ddd-color: rgb(31, 31, 31);
    --color-navbarBorder-dark: #d1d6eb;
    --static-heading-gradient-blue: #0f7878;
    --static-heading-gradient-pink: #f09bb9;
    --color-shadowDark: #e2ddd7;
    --tech-stack-box-first-color: #e7e2db;
    --tech-stack-box-second-color: #ece7e100;
    --tech-stack-box-border-color: #dad5cf;
}

/* ============================================================
   BASE
   ============================================================ */
body, noscript {
    background-color: var(--color-dark-mode);
    overflow-x: hidden;
}

body {
    color: var(--color-white);
    /* Police système identique à index.html */
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body.light-mode {
    background-color: var(--color-light-mode);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a10; }
::-webkit-scrollbar-thumb { background-color: #8000ff; }

/* ============================================================
   NAVBAR
   ============================================================ */
header {
    width: 100%;
    height: 115px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.navbar {
    display: flex;
    align-items: center;
    position: fixed;
    background-image: linear-gradient(to bottom right, var(--tech-stack-box-first-color), var(--tech-stack-box-second-color));
    backdrop-filter: blur(10px);
    height: 80px;
    width: 80%;
    padding: 0 20px;
    justify-content: space-between;
    z-index: 999;
    border: 1px solid var(--color-navbarBorder-dark);
    border-radius: 50px;
    overflow: hidden;
}

.navbar-tabs,
.navbar-tabs-ul {
    height: 100%;
    align-items: center;
}

.navbar-tabs {
    display: flex;
    width: 80%;
}

.navbar-tabs-ul {
    width: 100%;
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 60px;
    color: var(--color-white);
}

.navbar-tabs-ul li {
    position: relative;
    display: flex;
    width: fit-content;
    height: 30px;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Fira Code', monospace;
}

.navbar-tabs-ul a {
    color: var(--color-white);
    font-weight: 100;
    text-decoration: none;
}

.activeThistab a,
.navbar-tabs-ul li:hover a {
    color: var(--color-white);
}

.logo {
    width: 10%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition-duration: 1s;
}

/* Dark/Light toggle */
#switchforvisualmode,
#switchforsetting,
#switchforsound {
    display: none;
}

#labelforvisualmode {
    position: relative;
    width: 40px;
    height: 40px;
    background-image: url(src/png/crescent-moon\ \(1\).png);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    transition-duration: .5s;
    cursor: pointer;
    border-radius: 50px;
}

#switchforvisualmode:checked + #labelforvisualmode {
    transform: rotate(360deg);
    transition-duration: .5s;
    background-image: url(src/png/sun.png);
    background-size: 60%;
}

.visualmodetogglebuttoncontainer {
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    transition-duration: .3s;
}

/* ============================================================
   HAMBURGER (mobile)
   ============================================================ */
.hamburger,
.mobiletogglemenu {
    display: none;
}

@media (max-width: 768px) {
    .navbar-tabs { display: none; }
    .hamburger { display: flex; }

    .hamburger {
        position: fixed;
        top: 25px;
        right: 20px;
        z-index: 1000;
    }

    .hamburgerbase button {
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 5px;
    }

    .burger-bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-white);
        border-radius: 2px;
        transition: .3s;
    }

    .mobiletogglemenu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-dark-mode);
        z-index: 998;
        align-items: center;
        justify-content: center;
    }

    .mobiletogglemenu.open {
        display: flex;
    }

    .mobile-navbar-tabs-ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .mobile-navbar-tabs-li a {
        font-family: 'Fira Code', monospace;
        font-size: 2.5rem;
        color: var(--color-white);
        text-decoration: none;
    }
}

/* ============================================================
   BLOB (ambient glow)
   ============================================================ */
.blob {
    position: fixed;
    right: -15%;
    top: 0;
    background-color: var(--color-light-purple);
    width: 600px;
    height: 100vh;
    filter: blur(300px);
    opacity: .25;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   SECTIONS — disposition identique au portfolio
   ============================================================ */
main {
    position: relative;
    z-index: 1;
}

.about-section-container,
.projects-section-container {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 100px;
}

.projects-section-container {
    padding: 150px 0;
}

.about-section {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   SECTION HEADINGS — dégradé bleu→rose, Fira Code
   ============================================================ */
.section-heading,
.projects-heading {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading-article,
.projects-heading-article {
    font-size: 3rem;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    background-image: linear-gradient(90deg, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sectionHeadingP,
.projectsHeadingP {
    width: 300px;
    height: 1px;
    background-image: linear-gradient(90deg, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
}

/* ============================================================
   CONTENU PRINCIPAL (div.Pourquoi) — texte du document Word
   ============================================================ */
.info-dp-section {
    width: 100%;
    display: flex;
    margin-top: 30px;
}

.Pourquoi {
    width: 100%;
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--color-ddd-color);
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Paragraphes */
.Pourquoi p {
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--color-ddd-color);
    margin-bottom: 10px;
}

/* Titres gras inline (strong) */
.Pourquoi strong,
.Pourquoi b {
    color: var(--color-white);
    font-weight: 700;
}

/* Titres de section (strong+u) — style dégradé comme les headings */
.Pourquoi strong u,
.Pourquoi u strong {
    font-family: 'Fira Code', monospace;
    font-size: 1.9rem;
    background-image: linear-gradient(90deg, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: inline-block;
}

/* Listes */
.Pourquoi ul,
.Pourquoi ol {
    padding-left: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-ddd-color);
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
}

.Pourquoi li {
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--color-ddd-color);
    margin-bottom: 6px;
}

/* Séparateurs */
.Pourquoi hr {
    border: none;
    height: 1px;
    background-image: linear-gradient(90deg, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
    opacity: .4;
    margin: 20px 0;
}

/* Spans portant l'id TNR ou les styles inline Times New Roman → override Whitney/system */
.Pourquoi span,
#TNR,
.Pourquoi [style*="Times New Roman"],
.Pourquoi [style*="font-family"] {
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
    font-size: inherit !important;
}

/* Sous-listes */
.Pourquoi ul ul,
.Pourquoi ol ol,
.Pourquoi ul ol,
.Pourquoi ol ul {
    padding-left: 2rem;
    margin-top: 4px;
}

/* Classe ListParagraph (générée par Word) */
.ListParagraph {
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--color-ddd-color);
}

/* Classe secondaires */
.secondaires {
    list-style: disc;
    margin-left: 27.6pt;
    padding-left: 8.4pt;
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--color-ddd-color);
}

/* Classe texte-secondaire */
#texte-secondaire {
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-ddd-color);
}

/* ============================================================
   IMAGES dans le contenu
   ============================================================ */
#img,
.Pourquoi img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    border: 1px solid var(--tech-stack-box-border-color);
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#backtotopbutton {
    position: fixed;
    right: 10px;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    width: 3rem;
    height: 15rem;
    z-index: 101;
    text-align: center;
    transition: .4s;
    display: none;
    cursor: pointer;
}

#backtotopbutton article {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: 400;
    writing-mode: vertical-rl;
    mix-blend-mode: difference;
}

#backtotopbutton:hover {
    transform: translate(0, -20px);
    text-decoration: line-through var(--color-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    width: 100%;
    height: fit-content;
    border-top: 1px solid var(--tech-stack-box-border-color);
    position: relative;
    overflow: hidden;
}

.footer-background {
    width: 100%;
    height: 100vh;
    background-color: #0b0b0b;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.footer-blob {
    width: 100%;
    height: 200px;
    background-color: var(--color-light-purple);
    border-radius: 50%;
    filter: blur(100px);
    opacity: .7;
}

.footer-foreground {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.footercontainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.two-words {
    color: #b3b3b3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.two-words article {
    font-family: 'Fira Code', monospace;
    font-size: 3rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about-section {
        width: 80%;
    }
    .navbar {
        width: 90%;
    }
    .navbar-tabs-ul {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .about-section {
        width: 90%;
    }
    .section-heading-article,
    .projects-heading-article {
        font-size: 2.2rem;
    }
    .Pourquoi,
    .Pourquoi p,
    .Pourquoi li,
    .Pourquoi span {
        font-size: 1.4rem !important;
        font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
    }
}
