/* =========================
   BASE DU SITE
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0f14;
    color: #ffffff;
    line-height: 1.6;
}

main {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 100px 0 60px;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================
   MENU
   ========================= */

#menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 10px;

    background: rgba(15, 20, 30, 0.9);
    color: #ffffff;

    font-size: 26px;
    cursor: pointer;
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 280px;
    height: 100vh;

    padding: 100px 30px 30px;

    background: rgba(10, 15, 22, 0.97);

    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#menu.open {
    transform: translateX(0);
}

#menu a {
    display: block;

    padding: 15px 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 1.1rem;

    transition: background 0.2s ease;
}

#menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* =========================
   VIDÉO DE FOND
   ========================= */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.video-background::after {
    content: "";
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: -1;
}

body:has(.video-background)::before {
    content: "";

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: -1;

    pointer-events: none;
}

/* =========================
   ACCUEIL
   ========================= */

body:has(.video-background) main {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px;
}

body:has(.video-background) h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);

    letter-spacing: 0.08em;

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

body:has(.video-background) main p {
    max-width: 700px;

    font-size: 1.25rem;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* =========================
   RÉALISATIONS
   ========================= */

.realisation {
    margin-bottom: 30px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    backdrop-filter: blur(10px);

    transition: transform 0.25s ease,
                background 0.25s ease;
}

.realisation:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.08);
}

.realisation h2 {
    margin-bottom: 10px;
}

.realisation a {
    display: inline-block;

    margin-top: 10px;
    padding: 10px 18px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.1);

    transition: background 0.2s ease;
}

.realisation a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================
   TECHNOLOGIES
   ========================= */

.Maitrise,
.Apprentissage,
.Bases,
.pas-encore {
    margin-bottom: 40px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    backdrop-filter: blur(10px);
}

.Maitrise h1,
.Maitrise h2,
.Apprentissage h2,
.Bases h2,
.pas-encore h2 {
    margin-bottom: 15px;
}

.Maitrise ul,
.Apprentissage ul,
.Bases ul,
.pas-encore ul {
    list-style: none;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 20px;
}

.Maitrise li,
.Apprentissage li,
.Bases li,
.pas-encore li {
    padding: 12px 15px;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    transition: transform 0.2s ease,
                background 0.2s ease;
}

.Maitrise li:hover,
.Apprentissage li:hover,
.Bases li:hover,
.pas-encore li:hover {
    transform: translateX(5px);

    background: rgba(255, 255, 255, 0.1);
}

/* =========================
   LOGICIELS SUR MESURE
   ========================= */

main > section {
    margin-bottom: 25px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    backdrop-filter: blur(10px);

    transition: transform 0.25s ease,
                background 0.25s ease;
}

main > section:hover {
    transform: translateY(-4px);

    background: rgba(255, 255, 255, 0.08);
}

main > section h2 {
    margin-bottom: 12px;
}

main > section:last-child {
    text-align: center;

    padding: 40px 30px;
}

main > section:last-child a {
    display: inline-block;

    margin-top: 15px;
    padding: 12px 22px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.12);

    transition: background 0.2s ease,
                transform 0.2s ease;
}

main > section:last-child a:hover {
    background: rgba(255, 255, 255, 0.2);

    transform: translateY(-2px);
}

/* =========================
   À PROPOS
   ========================= */

main > header {
    margin-bottom: 40px;
}

main > header p {
    max-width: 750px;
}

main > section ul {
    padding-left: 20px;
}

main > section li {
    margin-bottom: 8px;
}

main > section p:last-child {
    margin-bottom: 0;
}

/* =========================
   CONTACT
   ========================= */

#contact-form {
    display: flex;
    flex-direction: column;

    gap: 20px;

    max-width: 700px;
}

#contact-form > div {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;

    outline: none;

    transition: border-color 0.2s ease,
                background 0.2s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);

    background: rgba(255, 255, 255, 0.1);
}

#contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

#contact-form button {
    width: fit-content;

    padding: 12px 24px;

    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    cursor: pointer;

    transition: background 0.2s ease,
                transform 0.2s ease;
}

#contact-form button:hover {
    background: rgba(255, 255, 255, 0.2);

    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {

    main {
        width: 92%;
        padding-top: 90px;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    #menu {
        width: 85%;
        max-width: 300px;
    }

    .Maitrise ul,
    .Apprentissage ul,
    .Bases ul,
    .pas-encore ul {
        grid-template-columns: 1fr;
    }

    .realisation,
    main > section {
        padding: 22px;
    }

    body:has(.video-background) h1 {
        font-size: clamp(3rem, 18vw, 5rem);
    }

    body:has(.video-background) main p {
        font-size: 1rem;
    }

    #contact-form {
        max-width: 100%;
    }

    #contact-form button {
        width: 100%;
    }

}

/* =========================
   CONFIRMATION FORMULAIRE
   ========================= */

#form-confirmation {
    margin-top: 10px;
    padding: 12px 16px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);

    text-align: center;
}

#form-confirmation {
    margin-top: 15px;
    padding: 14px 18px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);

    font-weight: 500;
    text-align: center;
}
	
