* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    padding-top: 70px;
}

h2{
    text-align: center;
}

html{
    scroll-behavior: smooth;
}
/* ================= HERO ================= */

#hero {
    position: relative;
    overflow: hidden;
}

#bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) blur(0.1px);
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10,20,40,0.55);
}

/* ================= NAV ================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(10px);
}

section {
    scroll-margin-top: 80px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.logo span {
    color: #4fc3f7;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* barre progressive */

.nav-links a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #4fc3f7;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after{
    width: 100%;
}
/* ================= HERO CONTENT ================= */

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.effilee {
    display: block;
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, #4fc3f7, transparent);
}

h1 {
    font-size: 5rem;
    font-weight: 700;
}

.blue {
    color: #4fc3f7;
}

.code {
    margin: 10px 0 20px;
    color: #4fc3f7;
    font-size: 20px;
}

.desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 10px 0;
}

.small {
    font-size: 0.95rem;
    opacity: 0.85;
}

.dot {
    width: 6px;
    height: 6px;
    background: #4fc3f7;
    border-radius: 50%;
    margin: 20px 0;
}

/* ================= PROJETS ================= */

#projets {
    background-color: rgb(18, 30, 50);
    border: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 60px;
}

.titreSection {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* ================= BLOCS PROJETS ================= */

.blocProjet {
    margin-top: 1%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

/* ================= CARTE PROJET (AMÉLIORÉE) ================= */

.caseProjet {
    width: 30%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.5%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.caseProjet:hover {
    transform: translateY(-6px);
    border: 1px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 12px 40px rgba(79, 195, 247, 0.15);
}


/* Icônes */
.caseProjet i {
    font-size: 28px;
    color: #4fc3f7;
    margin-bottom: 10px;
}

/* Titre projet */
h4 {
    font-size: 150%;
    margin-top: 1%;
    margin-bottom: 1%;
}

/* Texte */
.caseProjet p {
    margin-top: 1%;
    line-height: 1.5;
    opacity: 0.9;
}

#about, #services {
    background-color: rgb(15, 25, 40);
    text-align: center;
}

#txtAbout, #txtService {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 1.5%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* ================= CONTACT ================= */

#contact {
    background-color: rgb(18, 30, 50);
    padding: 60px 20px;
    text-align: center;
}

/* Conteneur form */
#blocForm {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Zone message */
#boxMessage {
    position: relative;
}

/* Label icône */
#label_contact {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #4fc3f7;
    font-size: 14px;
    opacity: 0.8;
}

/* Textarea */
#message {
    width: 100%;
    min-height: 140px;
    resize: none;
    padding: 12px;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: all 0.3s ease;
}
/* Placeholder */
#message::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Focus (très important pour le ressenti) */
#message:focus {
    border: 1px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

/* Bouton */
#boutonVerif {
    padding: 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    color: white;
    /* même style glass */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Hover bouton */
#boutonVerif:hover {
    transform: translateY(-3px);
    border: 1px solid rgba(79, 195, 247, 0.4);
    color: #4fc3f7;
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.2);
}

#message:focus::placeholder {
    opacity: 0.3;
}
/***************************************/

#footer{
    background-color: rgb(15, 25, 40);
    padding: 15px 5px;
    text-align: center;
}
/* ================= RESPONSIVE ================= */

@media (max-width: 768px){
    .nav-links {
        position: absolute;
        top: 80px;
        right: 20px;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        padding: 20px;
        display: none;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    h1 {
        font-size: 3rem;
    }

    .caseProjet {
        width: 90%;
    }
}