/* 
   style.css
   -------------------------
   Feuille de style principale du portfolio de Tony Ferreira
   Thème : sombre, futuriste, touches de violet
   Technologies : HTML5 / CSS3
*/

/* Reset de base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Corps de page */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
    color: #e5e7eb;
    line-height: 1.6;
}

/* Conteneur centralisé */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Liens */
a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #c4b5fd;
}

/* Header et navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(to right, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem ;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    color: #e5e7eb;
}

.logo__symbol {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a855f7;
}

.logo__text {
    font-weight: 600;
    font-size: 1rem;
}

/* Navigation principale */
.nav {
    display: flex;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav__link {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav__link:hover {
    border-color: rgba(148, 163, 184, 0.5);
}

.nav__link--active {
    border-color: #a855f7;
    color: #f9fafb;
}

/* Bouton burger minimaliste (sans cercle) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;          /* plus de cercle */
    padding: 0;
    cursor: pointer;
}


/* Les trois traits */
.nav-toggle__line {
    height: 2px;
    width: 100%;
    background: #e5e7eb;  /* gris clair */
    border-radius: 2px;
    transition: background 0.2s ease;
}

.nav-toggle:hover .nav-toggle__line {
    background: #ffffff;  /* devient plus blanc au hover */
}


/* HERO (page d'accueil) */

.hero {
    min-height: calc(100vh - 70px); /* plein écran moins le header */
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero__container {
    width: 100%;
}

/* version centrée pour la home */
.hero__container--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
}

.hero__intro {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.hero__title {
    font-size: 2.9rem;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.hero__title-highlight {
    background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

.hero__subtitle--center {
    max-width: 680px;
}

/* Badges sous le texte de présentation */
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1.4rem;
}

.hero__badges--center {
    justify-content: center;
}

.badge {
    position: relative;
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(168, 85, 247, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.25), transparent 55%);
    color: #e5e7eb;
    box-shadow: 0 0 0 rgba(168, 85, 247, 0.0);
    backdrop-filter: blur(4px);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

/* Effet glow + légère mise en avant au survol / focus
   Aligné sur le même style que les blocs (card--glass) */
.badge:hover,
.badge:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(249, 250, 251, 0.9); /* bord blanc lumineux */
    box-shadow: 0 0 22px rgba(248, 250, 252, 0.4); /* glow blanc */
    background: linear-gradient(to bottom right, rgba(24, 35, 58, 0.98), rgba(15, 23, 42, 1));
    outline: none;
}

/* Petit glow interne optionnel (anneau lumineux) */
.badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(244, 244, 245, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.badge:hover::before,
.badge:focus-visible::before {
    opacity: 1;
}

/* CTA */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__cta--center {
    justify-content: center;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
    background: radial-gradient(circle at top left, #a855f7, #4c1d95);
    color: #f9fafb;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
    border-color: transparent;
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.8);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.8);
}

.btn--outline {
    background: transparent;
    border-color: #a855f7;
    color: #e5e7eb;
}

.btn--small {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

/* Désactivation visuelle des boutons "placeholder" */
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: default;
}

/* Sections génériques */
.section {
    padding: 3rem 0;
}

.section--grid .section__container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.section--highlight {
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.99));
    border-top: 1px solid rgba(55, 65, 81, 0.6);
    border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}
.section__title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.section__subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section__intro {
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.section__top-margin {
    margin-top: 2rem;
}

.section__note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.section__container--two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
}

/* Page header (titre de page) */
.page-header {
    padding: 2.5rem 0 1.5rem;
}

.page-header__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    color: #9ca3af;
}

/* Grilles */
.grid {
    display: grid;
    gap: 1.8rem;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cartes */
.card {
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
}

/* Cartes "glass" (celles sur lesquelles on ajoute le glow au survol) */
.card--glass {
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom right, rgba(15,23,42,0.9), rgba(15,23,42,0.97));
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

/* Projets : même transition que les cartes glass pour le glow */
.card--project {
    position: relative;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

/* Effet glow au survol sur les blocs (cartes glass et projets) */
.card--glass:hover,
.card--glass:focus-within,
.card--project:hover,
.card--project:focus-within {
    transform: translateY(-3px);
    border-color: rgba(249, 250, 251, 0.9); /* bord blanc lumineux */
    box-shadow: 0 0 22px rgba(248, 250, 252, 0.4); /* glow autour de la carte */
    background: linear-gradient(to bottom right, rgba(24, 35, 58, 0.98), rgba(15, 23, 42, 1));
}

/* Cartes info (pour certains blocs BTS, etc.) */
.card--info {
    background: radial-gradient(circle at top, rgba(76,29,149,0.75), rgba(15,23,42,0.98));
    border-color: rgba(168,85,247,0.6);
}

.card--exp {
    position: relative;
}

.card__header {
    margin-bottom: 1rem;
}

.card__subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
}

.card__section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.card__description {
    color: #d1d5db;
    margin-bottom: 0.8rem;
}

.card__actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Listes */
.list {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.list--compact {
    gap: 0.25rem;
    font-size: 0.9rem;
}

/* Formulaire */
.form {
    display: grid;
    gap: 0.9rem;
}

.form__group {
    display: grid;
    gap: 0.35rem;
}

.form__group label {
    font-size: 0.9rem;
    color: #e5e7eb;
}

.form__group input,
.form__group textarea {
    background: rgba(15,23,42,0.95);
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    color: #f9fafb;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: #6b7280;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.6);
}

/* Liens simples */
.link {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    padding: 1.5rem 0 2rem;
    margin-top: 2rem;
}

.footer__container {
    text-align: center;
}

.footer__note {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Effet d'apparition (utilisé par script.js) */
.will-animate {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing effect (machine à écrire) */
#typed-cursor {
    display: inline-block;
    margin-left: 4px;
    font-weight: 600;
    color: #a78bfa; /* Violet futuriste */
    animation: blink 0.7s infinite;
}

/* Animation du curseur */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Texte tapé */
#typed-text {
    color: #e5e7eb;
    font-weight: 600;
}

/* Effet TAP mobile → ajouté par JS */
/* Effet appliqué par JavaScript lors d'un "tap" (mobile ou clic) */
.card--glass.is-tapped,
.card--project.is-tapped {
    transform: translateY(-3px);
    border-color: rgba(249, 250, 251, 0.9);
    box-shadow: 0 0 22px rgba(248, 250, 252, 0.4);
    background: linear-gradient(to bottom right, rgba(24, 35, 58, 0.98), rgba(15, 23, 42, 1));
}

.badge.is-tapped {
    transform: translateY(-3px);
    border-color: rgba(249, 250, 251, 0.9);
    box-shadow: 0 0 22px rgba(248, 250, 252, 0.4);
    background: linear-gradient(to bottom right, rgba(24, 35, 58, 0.98), rgba(15, 23, 42, 1));
}

/* Responsivité */
@media (max-width: 900px) {
    .section--grid .section__container,
    .section__container--two-columns {
        grid-template-columns: 1fr;
    }

    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: calc(100vh - 64px);
        padding-top: 2.5rem;
    }

    .hero__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    /* Affichage du bouton burger */
    .nav-toggle {
        display: flex;
    }

    /* Masquer la nav par défaut sur mobile */
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(15,23,42,0.98);
        border-bottom: 1px solid rgba(55, 65, 81, 0.7);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.75rem;
    }

    .nav--open {
        transform: scaleY(1);
        opacity: 1; /* ✅ corrigé ici */
        pointer-events: auto;
    }

    .hero__subtitle--center {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.1rem;
    }

    .header__container {
        padding: 0.5rem;
    }

    .card {
        padding: 1.1rem;
    }
}
/* 🔥 Cacher totalement le header UNIQUEMENT sur la page d'accueil */
.page-accueil .header {
    display: none;
}

/* 🔧 Ajuster le HERO pour qu'il soit bien centré sans header */
.page-accueil .hero {
    min-height: 100vh; /* plein écran réel */
    padding-top: 4rem; /* espace harmonieux */
}

