/* --------------------------------------------------------------------------------------------- */
/* Version telephone */

@media (max-width: 768px) {

    nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 12px 10px !important;
    }

    .profil {
        margin: 15px;
        font-size: 20px !important;
        white-space: nowrap !important;
    }

    nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
        font-size: 14px !important;
    }

    nav ul a {
        padding: 6px 10px !important;
        white-space: nowrap !important;
        color: #BEA064;
    }


    /* --------------------------------------------------------------------------------------------- */
    /* Page principale (index) */

    .index {
        height: auto;
        min-height: 70vh;
        padding: 0 20px;
    }

    .index h1 {
        font-size: 36px;
        margin: 20px 0 15px;
    }

    .index .description {
        font-size: 14px;
        line-height: 1.5;
    }

    .reseaux {
        gap: 12px;
        padding: 25px 10px;
        flex-wrap: wrap;
    }

    .reseaux a {
        padding: 10px 18px;
    }

    .reseaux a img {
        width: 22px;
    }


    /* --------------------------------------------------------------------------------------------- */
    /* parcours & competences */

    .bandeau h1 {
        margin: 25px 15px;
        font-size: 28px ;
    }

    main h1 {
        margin: 25px 15px;
        font-size: 28px;
    }

    .colonnes {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px ;
        box-sizing: border-box;
    }

    .colonnes h2 {
        font-size: 22px;
    }

    .space {
        font-size: 14px;
        margin: 20px 0 12px;
    }

    .item {
        min-height: 70px;
        padding: 10px 80px 10px 16px;
        font-size: 15px;
    }

    .item small {
        font-size: 12px;
    }

    .item .emoji {
        font-size: 70px;
        right: -5px;
        bottom: -14px;
    }

    .item img {
        width: 70px;
        height: 70px;
        right: 12px;
    }


    /* --------------------------------------------------------------------------------------------- */
    /* Page experience */

    .experience {
        padding: 16px 13px;
    }

    .frise {
        padding-left: 24px;
    }

    .etape {
        margin-bottom: 29px;
        padding: 16px;
    }

    .etape::before {
        left: -30px;
        top: 21px;
    }

    .date {
        font-size: 12px;
    }

    .etape h3 {
        font-size: 17px;
    }

    .etape p {
        font-size: 14px;
    }

    .logo-etape {
    top: 16px!important;
    right: 16px!important;
    width: 85px!important;
    transform: none !important;
    }


    /* --------------------------------------------------------------------------------------------- */
    /* Page contact */

    .contact-table {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 15px;
        border-spacing: 0;
    }

    .contact-table tbody,
    .contact-table tr {
        display: block;
    }

    .contact-table td {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin: 20px;
    }

    .contact-table .cv {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        text-align: center;
    }

    .contact-table .cv-icone {
        font-size: 48px;
    }

    .contact-table .cv h2 {
        margin: 8px 0;
        font-size: 24px;
    }

    .contact-table .cv p {
        margin: 0 0 20px;
        font-size: 15px;
        line-height: 22px;
    }

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

    .form-contact h2 {
        margin: 0 0 16px;
        font-size: 24px;
        text-align: center;
    }

    .form-contact input,
    .form-contact textarea {
        font-size: 16px;
    }

    .form-contact textarea {
        min-height: 140px;
    }

    .contact-table .bouton,
    .reseaux-contact a {
        margin-left: auto;
        margin-right: auto;
    }

    .reseaux-contact {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

}

.paillettes {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.nom {
    text-align: center;
    color: #BEA064;
}

/* Version PC */
/* --------------------------------------------------------------------------------------------- */
/* Page principale (index) */

body {
    background-color: black;
    margin: 0;
    color: white;
    font-family: Ubuntu;
}
 
a {
    color: white;
    text-decoration: none;
}

nav {
    margin: 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 40px;
    font-weight: bold;
}
 
nav img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}
 
nav p {
    margin: 0;
}
 

nav ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
}
 

nav ul a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.5s, color 0.5s;
}

nav ul a:hover {
    background: #BEA064;
    color: white;
    /* color: #BEA064 ; */
}

.profil {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.index {
    height: 80vh;
    justify-content: center;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.index h1 {
    text-align: center;
    margin: 25px;
    font-size: 55px;
}

.index .description {
    margin: 1px; 
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: white;
}

.reseaux {
    gap: 20px;
    display: flex;
    padding: 30px;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
}

.reseaux a {
    display: flex;
    align-items: center;
    padding: 7px 17px;
    border: 1px solid gray;
    border-radius: 50px;
    color: lavender;
    transition: background 0.5s, color 0.5s;
}

.reseaux a img {
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: auto;
}

.reseaux a:hover{
    background: white;
    color: black;
}


/* --------------------------------------------------------------------------------------------- */
/* Page contact */

.reseaux-contact {
    padding: 30px;
    text-align: center;
}

.contact-table .bouton,
.reseaux-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 150px;
    border-radius: 10px;
    margin: 0 10px 10px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.5s, color 0.5s;
}

.reseaux-contact a img {
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: auto;
}

.reseaux-contact a:hover{
    background: white;
    color: black;
}

.form-contact {
    width: 400px;
    max-width: 100%;
    margin: 0;
}

.form-contact h2 {
    margin: 0 0 16px;
}

.form-contact form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-contact label {
    margin-top: 8px;
    font-weight: 500;
}

.form-contact input,
.form-contact textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font: inherit;
    color: white;
    background: rgb(10, 10, 16);
    border: 1px solid rgb(70, 70, 95);
    border-radius: 10px;
}

.form-contact textarea {
    min-height: 120px;
}

.form-contact button {
    margin-top: 16px;
    padding: 14px;
    font: inherit;  
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.5s, color 0.5s;
}

.form-contact button:disabled {
    cursor: default;
}

.form-contact button:hover {
    background: white;
    color: black;
}

.contact-table {
    margin: auto;
    border-spacing: 40px 0;
}

.contact-table td {
    padding: 25px;
    background: rgb(20, 20, 28);
    border: 1px solid rgb(50, 50, 70);
    border-radius: 18px;
}

.contact-table .cv {
    width: 240px;
    margin: 0;
    text-align: center;
}

.contact-table .cv-icone {
    font-size: 3.5rem;
}

.contact-table .cv h2 {
    margin: 8px 0;
}

.contact-table .cv p {
    margin-bottom: 20px;
    color: lightgrey;
}

.contact-table .bouton {
    font-weight: bold;
    display: inline-block;
    padding: 12px 24px;
    color: white;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.5s, color 0.5s;
}

.contact-table .bouton:hover {
    background: white;
    color: black;
}


/* --------------------------------------------------------------------------------------------- */
/* parcours & competences */

.bandeau h1 {

    text-align: center;
    margin: 50px;
}

main h1 { 
    text-align: center; 
    margin: 40px; 
}

.colonnes {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.colonnes h2 { 
    text-align: center;
}

.space {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 15px;
    font-weight: normal;
    margin: 28px 0 16px;
}

.item {
    position: relative;
    overflow: hidden;
    min-height: 80px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 12px 100px 12px 24px;
    margin-bottom: 12px;
    border: 1px solid #444;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    text-align: left;
}

.item small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: normal;
    color: #aaa;
}

.item .emoji {
    position: absolute;
    right: -5px;
    bottom: -18px;
    font-size: 90px;
    line-height: 1;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to right, transparent, black 55%);
    mask-image: linear-gradient(to right, transparent, black 55%);
}

.item img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, black 80%);
    mask-image: linear-gradient(to right, transparent, black 80%);
}



/* --------------------------------------------------------------------------------------------- */
/* Page experience */

.experience {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.frise {
  position: relative;
  padding-left: 2rem;
}

.frise::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #BEA064, transparent);
}

.etape {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: rgb(20, 20, 30);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  transition: 0.3s;
}

.etape::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 6px);
  top: 1.6rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #BEA064;
  box-shadow: 0 0 12px #BEA064;
}

.etape:hover {
  border-color: #BEA064;
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.2);
  transform: translateX(6px);
}

.date {color: #BEA064; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.etape h3 { margin: 0.3rem 0; color: gainsboro; }
.etape p { color: silver; }

.logo-etape {
    position: absolute;
    top: 50%;
    right: 40px;
    width: 120px;
    height: auto;
    object-fit: contain;
    transform: translateY(-50%);
}