/* 1. *************** BASE ****************/
:root {
    --fond: #0b1120;          /* bleu nuit de la page */
    --surface: #131c31;       /* fond des cartes */
    --bordure: #24314f;
    --texte: #e5e9f2;
    --texte-doux: #9aa6bd;
    --accent-1: #38bdf8;      /* change ces deux couleurs pour changer tout le site */
    --accent-2: #fb7185;
    --degrade: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html {
    scroll-behavior: smooth;  /* défilement doux quand on clique dans le menu */
}
 
body {
    font-family: "Open Sans", sans-serif;
    background-color: var(--fond);
    color: var(--texte);
    line-height: 1.6;
}
 
h1, h2, h3 {
    font-family: "Poppins", sans-serif;
}
 
a {
    color: var(--accent-1);
}
 
section {
    padding: 96px 5vw 0;
    scroll-margin-top: 80px;  /* le titre ne passe pas sous la barre de navigation */
}
 
/* Titres de section en dégradé, avec une petite barre dessous */
.titre-section {
    width: fit-content;
    margin: 0 auto 48px;
    font-size: clamp(32px, 6vw, 56px);
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
 
.titre-section::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 3px;
    background: var(--degrade);
}
 
/* Bouton principal */
.bouton {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--degrade);
    color: var(--fond);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
 
.bouton:hover {
    transform: translateY(-2px);
}
 
/* Pastilles de compétences */
.pastilles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
 
.pastilles li {
    padding: 4px 12px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    background-color: rgba(56, 189, 248, 0.08);
    color: #bae6fd;
    font-size: 14px;
}
 
 
/* 2. *************** HEADER ****************/
header {
    position: sticky;         /* la barre reste en haut pendant le défilement */
    top: 0;
    z-index: 10;              /* passe au-dessus du contenu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5vw;
    background-color: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(12px);  /* floute ce qui passe dessous */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
 
.logo {
    color: var(--texte);
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}
 
.menu {
    display: flex;
    gap: 32px;
}
 
.menu a {
    position: relative;
    color: var(--texte-doux);
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    transition: color 0.2s;
}
 
/* Trait en dégradé sous le lien, invisible au repos */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--degrade);
    transform: scaleX(0);
    transition: transform 0.25s;
}
 
.menu a:hover,
.menu a.actif {
    color: var(--texte);
}
 
.menu a:hover::after,
.menu a.actif::after {
    transform: scaleX(1);
}
 
 
/* 3. *************** HÉRO ****************/
.hero {
    position: relative;
    isolation: isolate;       /* garde les décors du fond derrière le texte */
    overflow: hidden;
    min-height: calc(100vh - 70px);
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
 
.hero::before {
    content: "";
    position: absolute;
    inset: -20%;              /* plus grand que l'accueil : ses bords restent cachés quand il bouge */
    z-index: -1;
    background:
        radial-gradient(circle at 28% 36%, rgba(56, 189, 248, 0.15), transparent 30%),
        radial-gradient(circle at 72% 58%, rgba(251, 113, 133, 0.14), transparent 30%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 80%);
    animation: deriver 18s ease-in-out infinite;
}

@keyframes deriver {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(4%, -3%) scale(1.1); }
    66%      { transform: translate(-3%, 2%) scale(1.05); }
}
 
/* Points lumineux qui flottent : un seul petit rond, recopié par box-shadow */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow:
        15vw 20vh 4px 1px rgba(251, 146, 60, 0.6),
        80vw 15vh 4px 1px rgba(168, 85, 247, 0.6),
        30vw 70vh 5px 2px rgba(56, 189, 248, 0.5),
        65vw 60vh 3px 1px rgba(74, 222, 128, 0.5),
        90vw 80vh 4px 1px rgba(251, 113, 133, 0.6),
        10vw 85vh 3px 1px rgba(250, 204, 21, 0.5),
        45vw 12vh 3px 1px rgba(56, 189, 248, 0.5),
        55vw 88vh 4px 1px rgba(168, 85, 247, 0.5)
        ;
    animation:
        flotter 12s ease-in-out infinite alternate,
        scintiller 4s ease-in-out infinite;
}
 
@keyframes flotter {
    to { transform: translateY(-80px); }
}

@keyframes scintiller {
    50% { opacity: 0.2; }
}
 
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: 999px;
    background-color: rgba(251, 113, 133, 0.08);
    color: #fda4af;
    font-size: 14px;
}
 
.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 800;
    line-height: 1.05;
}
 
.degrade {
    background: var(--degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
 
.accroche {
    max-width: 640px;
    color: var(--texte-doux);
    font-size: 18px;
}
 
.accroche strong {
    color: var(--texte);
}
 
.fleche {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-top: 48px;
    border: 1px solid rgba(251, 113, 133, 0.4);
    border-radius: 50%;
    color: var(--accent-2);
    font-size: 22px;
    text-decoration: none;
    animation: rebond 2s ease-in-out infinite;
}
 
@keyframes rebond {
    50% { transform: translateY(8px); }
}
 
 
/* 4. *************** À PROPOS ****************/
.apropos {
    display: grid;
    grid-template-columns: 320px 1fr;  /* colonne fixe à gauche, le reste à droite */
    gap: 24px;
    align-items: start;
}
 
.carte.profil {
    text-align: center;
}
 
.carte.profil img {
    display: block;
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
    border: 3px solid var(--accent-1);
    border-radius: 50%;
    object-fit: cover;
}
 
.chiffres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
 
.chiffres p {
    padding: 12px;
    border: 1px solid var(--bordure);
    border-radius: 12px;
    color: var(--texte-doux);
    font-size: 13px;
}
 
.chiffres strong {
    display: block;
    color: var(--accent-1);
    font-size: 26px;
}
 
 
/* 5. *************** CARTES (DOCUMENTATION, VEILLE) ****************/
.cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));  /* autant de colonnes que la largeur permet */
    gap: 24px;
}
 
.carte {
    padding: 24px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    background-color: var(--surface);
    box-shadow: 0 0 30px -10px rgba(56, 189, 248, 0.45);  /* la lueur colorée */
    transition: transform 0.2s, box-shadow 0.2s;
}
 
.carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px -6px rgba(251, 113, 133, 0.5);
}
 
.carte img {
    display: block;
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
    border-radius: 10px;
    object-fit: cover;
}
 
.carte h3 {
    margin-bottom: 8px;
}
 
.carte p {
    color: var(--texte-doux);
}
 
.bouton-carte {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-1);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    text-decoration: none;
}
 
.bouton-carte:hover {
    text-decoration: underline;
}
 
.contact {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
 
 
/* 6. *************** FORMATION : LA FRISE ****************/
.frise {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 32px;
    list-style: none;
}
 
/* La ligne verticale */
.frise::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent-1), var(--accent-2));
}
 
.frise > li {
    position: relative;
    margin-bottom: 24px;
}
 
/* Le point posé sur la ligne, devant chaque étape */
.frise > li::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 28px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    background-color: var(--fond);
}
 
.carte .date {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 13px;
}
 
.apparition {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.apparition.visible {
    opacity: 1;
    transform: none;
}

/* 7. *************** FOOTER ****************/
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 96px;
    padding: 24px 5vw;
    border-top: 1px solid var(--bordure);
    color: var(--texte-doux);
    font-size: 14px;
}
 
footer a {
    color: var(--texte-doux);
}
 
 
/* 8. *************** RESPONSIVE ****************/
 
/* ---------- TABLETTE : 768px et moins ---------- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
 
    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
        font-size: 15px;
    }
 
    section {
        scroll-margin-top: 130px;
    }
 
    .apropos {
        grid-template-columns: 1fr;  /* une seule colonne */
    }
 
    footer {
        flex-direction: column;
        gap: 8px;
    }
}
 
/* ---------- TÉLÉPHONE : 480px et moins ---------- */
@media (max-width: 480px) {
    section {
        padding: 64px 16px 0;
    }
}
 
/* Pour les personnes qui désactivent les animations dans leur système */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before,
    .hero::after,
    .fleche { animation: none; }
    .apparition { transform: none; }
} 