@font-face {
    font-family: 'Inter-Regular';
    src: url(../../font/Inter/static/Inter-Regular.ttf) format('truetype');
}

:root {
    /*--text-color: #e6f1ff;*/
    /* Blanc cassé */
    /*--font-family: 'Play-Regular';*/

    /* Mode clair : texte quasi noir sur fond blanc */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --font-family: 'Play-Regular';
}

/* Mode sombre : classe posée sur <html> par le bouton
   de la barre de navigation */
html.dark {
    --bg-color: #1a1a1a;      /* Fond sombre pour reposer les yeux */
    --text-color: #e6f1ff;    /* Blanc cassé */
}

html.dark #ctf_title {
    color: black;
}

html {
    font-family: Inter-Regular, cursive;
    font-size: 1.4em;
}

body {
    padding: 1%;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 10px;
}

/* Bouton clair/sombre : même style que les liens de la barre */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 2em;
}

a {
    font-size: 1.5em;
    color: inherit;
    text-decoration: none;
}

#home_title {
    font-size: 3.5em;
}

.paragraph_title {
    color: grey;
    font-size: 1.7em;
}

.paragraph {
    color: grey;
    font-size: 1.5em;
}



/* Espacement entre les sections */
main > section {
    margin: 5rem 0;
}

/*
Anti "bug/lag" : Avant son animation, une section est invisible.
La classe js-anim est posée par le JS ; grâce à :not(.slide-top), la section redevient visible dès que le JS lui ajoute la classe.
Sans JavaScript (js-anim absent), tout s'affiche normalement.
*/
html.js-anim main > section:not(.slide-top) {
    opacity: 0;
}

/* ==================== */
#pentest_table, #osint_forensic_table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    table-layout: fixed;
    border-spacing: 2.5rem 0;
}

#pentest_table td {
    width: 50%;
    vertical-align: middle;
}

#osint_forensic_table td {
    width: 50%;
    vertical-align: top;
}

/* Boutons */
.btn {
    font-size: 1.5em;
    border: none;
    border-radius: 4px;
    padding: 18px 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#btn_1 {
    background-color: black;
    color: white;
}

#btn_2 {
    background-color: lightgrey;
    color: black;
}

/* Images */
.image_osint_forensic {
    width: 100%;
    /*aspect-ratio: 16 / 9;*/
    object-fit: cover;
    border-radius: 4px;
}

#panorama_cgpt {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

#pentest_cgpt {
    width: 100%;
    max-width: 50rem;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* CTF */
#paragraph_ctf {
    color: white;
}

.section_ctf {
    background-image: url("../../img/cyber/CTF_CGPT.png");
    background-size: cover;
    background-position: center;

    aspect-ratio: 28/26;
    min-height: 15rem;

    transition: all 0.5s ease-in-out;

    font-size: 4.0em;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;

    width: 80%;
    margin: 0 auto;
    border-radius: 4px;
}

.section_ctf:hover {
    opacity: 0.8;
    text-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}

.section_ctf h2 {
    font-size: clamp(2.5rem, 5vw, 8.5rem);
}





/* Animista */
.slide-top {
    -webkit-animation: slide-top 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-top 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-top {
    0% {
        -webkit-transform: translateY(500px);
        transform: translateY(500px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes slide-top {
    0% {
        -webkit-transform: translateY(500px);
        transform: translateY(500px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

.tracking-in-contract {
    -webkit-animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}
@keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}