/* RESET SIMPLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #070c12;
    color: #f5f7fb;
    line-height: 1.6;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 8%;
    background: rgba(5, 8, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.logo-sub {
    font-size: 0.75rem;
    color: #9aa4c6;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: #d0d5eb;
    transition: color 0.2s, transform 0.2s;
}

.nav a:hover {
    color: #4da3ff;
    transform: translateY(-1px);
}

/* Menu burger pour mobile */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f5f7fb;
    font-size: 1.4rem;
    cursor: pointer;
}

/* HERO */

.hero {
    padding: 5rem 8% 4rem;
    background: radial-gradient(circle at top left, #1a2a4f, #070c12 55%);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #d0d5eb;
}

.hero-actions {
    margin: 1.8rem 0 0.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-tagline {
    font-size: 0.9rem;
    color: #9aa4c6;
}

/* Menu caché sur mobile */
.nav {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #0d0d0d;
    padding: 20px;
    position: absolute;
    top: 70px; /* hauteur de ton header */
    right: 20px;
    border-radius: 10px;
}

/* Menu visible quand on clique */
.nav.open {
    display: flex;
}

/* Le bouton burger visible uniquement sur mobile */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }
}

/* BOUTONS */

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border 0.2s;
}

.btn-primary {
    background: #4da3ff;
    color: #050810;
    box-shadow: 0 0 20px rgba(77, 163, 255, 0.4);
}

.btn-primary:hover {
    background: #6bb5ff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #f5f7fb;
    border-color: #4da3ff;
}

.btn-secondary:hover {
    background: rgba(77, 163, 255, 0.1);
    transform: translateY(-1px);
}

/* SECTIONS GÉNÉRALES */

.section {
    padding: 4rem 8%;
    background: #050810;
}

.section-alt {
    background: #050714;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    color: #9aa4c6;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* CARTES SERVICES */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(12, 18, 32, 0.95);
    border-radius: 0.9rem;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}

.card ul {
    list-style: none;
}

.card li {
    font-size: 0.92rem;
    color: #d0d5eb;
    margin-bottom: 0.25rem;
}

/* COMPÉTENCES */

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.skill-group {
    background: rgba(12, 18, 32, 0.95);
    border-radius: 0.9rem;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-group h3 {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}

.skill-group ul {
    list-style: none;
}

.skill-group li {
    font-size: 0.92rem;
    color: #d0d5eb;
    margin-bottom: 0.25rem;
}

/* À PROPOS */

.about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
}

.about p {
    color: #d0d5eb;
}

.about-highlight {
    margin-top: 0.5rem;
    color: #4da3ff;
    font-size: 0.95rem;
}

/* CONTACT */

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    background: rgba(12, 18, 32, 0.95);
    padding: 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

label {
    font-size: 0.9rem;
}

input, select, textarea {
    background: #050810;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0.55rem 0.7rem;
    color: #f5f7fb;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.35);
    background: #060b14;
}

textarea {
    resize: vertical;
}

.form-message {
    margin-top: 0.7rem;
    font-size: 0.88rem;
}

.form-message.success {
    color: #6bd46b;
}

.form-message.error {
    color: #ff6b6b;
}

.contact-info {
    font-size: 0.92rem;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 0.6rem;
}

.contact-info li {
    margin-bottom: 0.35rem;
    color: #d0d5eb;
}

.fake-email {
    font-family: "Consolas", "Fira Code", monospace;
}

.small-note {
    font-size: 0.85rem;
    color: #9aa4c6;
}

/* FOOTER */

.footer {
    text-align: center;
    padding: 1rem 8%;
    font-size: 0.8rem;
    color: #9aa4c6;
    background: #04050a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .nav {
        position: absolute;
        top: 55px;
        right: 8%;
        background: rgba(5, 8, 15, 0.98);
        flex-direction: column;
        padding: 0.8rem 1rem;
        border-radius: 0.6rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Effet zoom + lueur bleue au survol */
.card,
.skill-group {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.skill-group:hover {
    transform: scale(1.05);
    border-color: #4da3ff;
    box-shadow: 0 0 18px rgba(77, 163, 255, 0.45);
}

/* Rendre toute la carte cliquable */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Empêcher le texte de changer de couleur au survol */
.card-link h3,
.card-link ul,
.card-link li {
    color: inherit;
}

.logo-img {
    height: 50px;
    margin-right:90px;
}

.logo-footer {
    height: 50px;
    margin-bottom:8px;
}

/* Bouton burger */
.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Affichage sur mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }
}