/* ==== STRUCTURE GLOBALE ==== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #ffffff; /* couleur neutre de fond */
    overflow: hidden;          /* 🚫 empêche tout scroll vertical et horizontal */
    display: flex;
    flex-direction: column;
}

/* ==== HEADER ==== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #772659;
    color: white;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}

header h1 {
    margin-bottom: 10px;
}

/* ==== NAVIGATION ==== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 45px; /* espace entre les liens */
}

nav li {
    display: inline;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ==== MAIN CONTENT ==== */
main {
    flex: 1;
    padding: 0;
    margin-top: 100px;  /* espace sous le header */
    margin-bottom: 60px; /* espace au-dessus du footer */
    overflow: hidden;    /* évite tout dépassement */
}

/* ==== FOOTER ==== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #772659;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

/* ==== PAGE INSTAGRAM ==== */
.page-instagram {
    background-image: url("images/fondinsta.jpg");
    background-size: cover;          /* remplissage total sans liseré */
    background-color: #ffffff;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;                   /* pleine hauteur */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.instagram-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 200px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* ==== PAGE NAS ==== */
.page-nas {
    background-image: url("images/syno.jpg");
    background-size: cover;
    background-color: #000;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.nas-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 200px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}
/* ==== 🔁 ADAPTATION RESPONSIVE ==== */

/* 📱 Téléphones (écrans < 600px) */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.2em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .instagram-card,
    .nas-card {
        width: 85%;            /* moins large */
        padding: 25px;         /* moins d’espace interne */
        border-radius: 100px;  /* adoucit le cercle */
    }

    .instagram-card img,
    .nas-card img {
        width: 90px;
        height: 90px;
    }

    a {
        font-size: 0.9em;
    }
}

/* 📲 Tablettes (écrans entre 600px et 900px) */
@media (min-width: 600px) and (max-width: 900px) {
    .instagram-card,
    .nas-card {
        width: 60%;
        padding: 40px;
        border-radius: 150px;
    }

    nav ul {
        gap: 25px;
    }
}

