body,
html {
    margin: 0;
    padding: 0;
    background-color: #1c1c1c;
    font-family: 'Montserrat', sans-serif;
}
* {
    box-sizing: border-box;
}

nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.logo_texte {
    columns: 1;
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
    column-gap: 10px;
    margin: 25px 55px;
}

.logo_texte a {
    text-decoration: none;
}

.logo_texte img {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    object-position: center;
}

.logo_texte p {
    color: white;
    font-size: 20px;
    margin: 0;
}

.tel {
    display: grid;
    place-items: center;
}

.tout {
    columns: 2;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    column-gap: 25px;
}

.tout a,
.tout p {
    text-decoration: none;
    color: rgb(129, 129, 129);
    transition: all 0.3s ease;
}
.tout a:hover,
.tout p:hover {
    color: white;
    text-shadow:white 0px 0px 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.about {
    display: none;
    position: absolute;
    top: 100%;
    left: -50%;
    background: #222;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.dropdown:hover .about {
    display: block;
}

#me {
    cursor: pointer;
    color: white;
}

.about a {
    display: block;
    padding: 10px 20px;
    color: #aaa;
    text-decoration: none;
}

.about a:hover {
    background: #3a3a3a;
    color: white;
}



.header_index {
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
    column-gap: 50px;
    margin: 9% 19%;
    font-size: 110%;
}

header img {
    border-radius: 100%;
    border: solid 10px #818181;
    width: 300px;
    height: 300px;
    box-shadow: 0px 0px 22px 0px #000000;
}

header i {
    color: #007bff;
    font-size: 24px;
}

.header_contact {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    place-items: center;
    margin: 5%;
}

.contacte {
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
    color: white;
    column-gap: 50px;
    background-color: #2c2c2c;
    border: 1px solid #818181;
    border-radius: 8px;
    padding: 5% 0;
    padding-left: 10%;
    width: 60%;
    margin: 10px 0;
    text-align: left;
}

.envoie {
    background-color: #2c2c2c;
    border: 1px solid #818181;
    border-radius: 8px;
    height: 96%;
    width: 60%;
}

.envoie form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    row-gap: 15px;
    padding: 3% 10%;
    height: 93%;
}

.input {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: flex-start;
    width: 100%;
}

.input input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #818181;
    color: white;
    padding: 10px 10px 10px 0;
    width: 95%;
}

.input input:focus {
    outline: none;
    border-bottom: 1px solid #3f49cc;
}

.input textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #818181;
    color: white;
    padding: 10px 10px 10px 0;
    width: 95%;
    resize: vertical;
}

.input textarea:focus {
    outline: none;
    border-bottom: 1px solid #3f49cc;
}

.input label {
    color: rgb(129, 129, 129);
    margin-bottom: 5px;
    font-weight: bold;
    text-decoration: underline;
}

.envoie input[type="submit"] {
    background-color: #3f49cc;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.envoie {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.envoie input[type="submit"]:hover {
    background-color: #2c2c2c;
}

.contacte a {
    text-decoration: none;
    color: rgb(129, 129, 129);
}

.info h5 {
    color: rgb(129, 129, 129);
}

.info h1,
.info p {
    color: white;
    text-align: justify;
}

.boutton button {
    box-shadow: 0px 0px 22px 0px #000000;
    background-color: #222222;
    border-radius: 38px;
    border: 3px solid #3f49cc;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 15px;
    font-weight: bold;
    padding: 9px 40px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.boutton button:hover {
    background-color: #3f49cc;
}

.boutton a {
    text-decoration: none;
    color: white;
}

section {
    margin: 0 120px;
    color: white;
}

section h2 {
    font-weight: 1900;
    margin-bottom: 0;
}

.barre::before,
.barre::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
}

.barre::before {
    background-color: #3f49cc;
    width: 35px;
    height: 2px;
}

.barre::after {
    background-color: #818181;
    width: 55px;
    height: 2px;
}

.annee {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 50px;
    margin: 0 25px;
}

.annee h4 {
    color: white;
    font-size: 105%;
    font-weight: 1900;
    text-decoration: underline;
}

.annee p,
.annee li {
    color: rgb(129, 129, 129);
    font-size: 95%;
    margin-left: 10px;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #222222;
    color: #818181;
    font-size: 90%;
    border-top: 1px solid #3f49cc;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

.header_formation,
.header_experience,
.header_competence,
.header_hobbie {
    background-color: #222222;
    margin: 0 120px;
    border-radius: 8px;
    display: flex;
    border: 1px solid #818181;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 110%;
    padding: 0 40px;
    padding-bottom: 20px;
    height: auto;
}

.header_formation .annee,
.header_experience .annee,
.header_competence .annee,
.header_hobbie .annee {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 50px;
    margin: 0 25px;
}

.header_reseau , .header_cyber2 {
    background-color: #222222;
    margin: 0 120px;
    border-radius: 8px;
    display: flex;
    border: 1px solid #818181;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 110%;
    padding: 0 40px;
    padding-bottom: 20px;
    height: auto;
}

.phase-block {
    display: flex;
    gap: 30px;
    padding-bottom: 40px;
    border-left: 2px solid #333;
    margin-left: 20px;
    padding-left: 30px;
    position: relative;
}

.phase-block::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.phase-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
}

.summary {
    text-align: justify;
}


.header_cyber {
    color: white;
}
.header_cyber a {
    text-decoration: none;
}
.header_cyber2{
    margin-top: 20px;
}
.cybert_tout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    border-bottom: 3px solid #3f49cc;
    gap: 0; 
}

.cybert_tout p {
    margin: 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff; 
    position: relative;
}

#actif {
    font-weight: bold;
    background-color: #1c1c1c;
    border-top: 3px solid #3f49cc;
    border-left: 3px solid #3f49cc;
    border-right: 3px solid #3f49cc;
    border-radius: 8px 8px 0 0;
    top: 2.8px;
    z-index: 1;
}

@media screen and (max-width: 1000px) {
    .header_index {
        flex-direction: column;
        text-align: center;
    }

    .header_index img {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .logo_texte {
        margin: 25px 25px 25px 40px;
    }

    .boutton button {
        margin: 5px;
    }

    .info h1,
    .info p {
        text-align: center;
    }

    .tout {
        flex-direction: column;
        gap: 15px;
    }

    section {
        margin: 0 20px;
    }

    .annee {
        display: grid;
        grid-template-columns: auto auto;
        column-gap: 25px;
        margin: 0 10px;
    }

    .tel {
        display: grid;
        justify-items: end;
        padding-right: 40px;
        align-items: center;
    }

    .tel::before {
        content: "☰";
        color: white;
        font-size: 20px;
    }

    .tel:hover .tout {
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 70px;
        right: 0;
        width: 150px;
        background-color: #222;
        padding: 10px;
        border-radius: 8px;
        z-index: 10;
    }

    .about {
        display: none;
        position: absolute;
        top: 100%;
        left: -100%;
        background: #222;
        border-radius: 8px;
        min-width: 200px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
    }

    .tout {
        display: none;
    }

    .header_contact {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto;
        place-items: center;
        margin: 0;
        margin-top: 20px;
        height: 100%;
    }

    .contacte {
        grid-column: 1;
        width: 80%;
        margin: 0;
        margin-bottom: 10px;
    }

    .envoie {
        grid-column: 1;
        grid-row: 4;
        width: 80%;
        height: 100%;
    }

    .envoie form {
        padding: 10% 10%;
        height: 100%;
    }

    .header_formation,
    .header_experience,
    .header_competence,
    .header_hobbie {
        padding: 0 20px;
        margin: 0;
        margin-left: 50px;
        margin-top: 20px;
        width: 80%;
    }

    .header_formation .annee,
    .header_experience .annee,
    .header_competence .annee,
    .header_hobbie .annee {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto auto auto;
        margin: 0;
    }

    .header_reseau,.header_cyber2 {
        margin: 0 20px;
        margin-top: 20px;
    }

    .phase-block {
        flex-direction: column;
        gap: 10px;
        padding-left: 20px;
        padding-bottom: 30px;
        margin-left: 10px;
    }

    .phase-number {
        font-size: 1.5rem;
        line-height: 1;
        margin-bottom: 5px;
        color: #007bff;
    }

    .phase-block::before {
        top: 0;
        left: -8px;
    }
    .cybert_tout {
        display: grid;
        grid-template-columns: auto auto auto;
        border-bottom: none;
        place-items: center;
        padding:0 5px;
    }
    .cybert_tout a{
        font-size: 105%;
    }
    #actif {
        border-top: none;
        border-right: none;
        border-bottom: 2px solid #3f49cc;
        border-left: none;
        border-radius: 10px 10px 0 0 ; 
        background-color: rgba(63, 73, 204, 0.1); 
    }
}