@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

* {
  cursor: none !important;
}

a, button, input, textarea, select {
  cursor: none !important;
}
body,
html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: black;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

header {

    background-color: rgba(243, 243, 243, 0.9);
    font-weight: 500;
    margin: 25px auto;
    border-radius: 30px;
    padding: 10px 11px;
    width: fit-content;
    position: relative;
    transition: all 404ms ease;
}

header:hover {
    background-color: #013afb;
    transition: all 0.42s ease;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

li {
    display: inline-block;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header a {
    text-decoration: none;
    display: inline-block;
    width: 120px;
    text-align: center;
    line-height: 2.5;
    color: #000000;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.42s ease;
}

header a:hover {
    background: linear-gradient(135deg, rgba(225, 225, 225, 0.3) 0%, rgba(182, 182, 182, 0.7) 100%);
    color: #ffffff;
}

#hello {
    transition: opacity 1s ease-in-out;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}



.contact_section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}


.contact-my_info {
    flex: 1;
    text-align: left;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-right: 20px;
    margin: auto;
    margin: 1
}


#form_contact {
    flex: 1;
    border-radius: 10px;
    margin: 24px;
}

footer p {
    margin: 0;
    padding: 0;
}

footer {
    bottom: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    margin-top: 100px;
}

footer a {
    margin: 10px;
}


/*----- Logo Instagram -----*/
.instagram-logo {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("logo/Instagram_logo_2016.svg");
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(1) brightness(1.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.instagram-logo:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/*----- END Instagram -----*/


/*----- Logo Github -----*/
.github-logo {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("logo/GitHub_Invertocat_Light.png");
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(1) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.github-logo:hover {
    filter: grayscale(0) opacity(1) drop-shadow(0 0 6px rgba(1,58,251,0.7));
    transform: scale(1.1);
}

/*----- END Github -----*/


/*----- Logo Linkedin -----*/
.linkedin-logo {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("logo/LinkedIn_icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(1) brightness(1.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.linkedin-logo:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/*----- END Linkedin -----*/



/*---- Bouton tel et mail de contact ---- */
.bouton_contact {
    margin: 25px auto;
    text-decoration: none;
    display: inline-block;
    width: auto;
    text-align: center;
    line-height: 1.5;
    color: #ffffff;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 500;
    padding: 10px 20px;
    margin: 10px;

}

.bouton_contact:hover {
    outline: none;
    background-color: #002bcc;
    transform: scale(1.1);
    transition: all 0.42s ease;
}

/*---- Bouton tel et mail de contact  END ---- */



/*------ animation du _ ------*/
.underscore {

    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/*----- animation du _ END ----*/


.section-container {
    display: flex;
    flex-wrap: wrap;
    /* block les un en dessous des autre */
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* espacement*/
    margin: 0 auto;
    max-width: 80%;
    /* largeur*/
    padding: 20px;
}

.section-item {
    margin: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    gap: 8px;
}

.section-item:hover {
    border-color: rgba(1, 58, 251, 0.5);
}

.section-item span {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.4;
}

.section-item p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

.section-item img:not(.projet_img) {
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.section-item img.logo_fond_blanc {
    background: rgba(255, 255, 255, 0.92);
    padding: 8px;
}

.section-item:hover img:not(.projet_img) {
    transform: scale(1.07);
}

.projet_img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.dgac_logo,
.gg-an_logo,
.orange_logo,
.HQE_logo,
.EPITECH_logo,
.UNSS_logo,
.vik_logo,
.ppnm_logo {
    display: block;
    width: auto;
    height: 60px;
    margin: 8px;
    text-align: center;
}

.section-container.formation {
    flex-direction: column;
    align-items: center;
}

.titre {
    align-items: center;
    text-align: center;
}



/* FORMULAIRE */

.form-container {
    width: 50%;
}


.custom-form-container {


    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}


.form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #ffffff;
}


.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    color: #cccccc;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(20, 20, 20, 0.7);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
    resize: none;
}

.form-group textarea {
    min-height: 150px;
    resize: none;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #013afb;
    box-shadow: 0 0 0 2px rgba(1, 58, 251, 0.3);
}

/* Bouton envoyer */
.submit-button {

    padding: 14px;
    background-color: #013afb;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #002bcc;
}


.form-response {
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
}

.home_me {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    max-width: auto;
    padding: 20px;
}


.image_me {
    left: 5%;
    width: 300px;
    height: auto;
    position: relative;
    margin: 20px;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 300px; 

}

.me_text {
    width: 50%;
    margin: 20px;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    gap: 8px;
    box-sizing: border-box;
}

.me_text h1 {
    margin: 0;
    display: inline-block;
}


.mouse {
  width: 20px;
  height: 20px;
  background-color: white; 
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;

  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.3s ease; 
  opacity: 1;
}

.mouse.is-hovering {
  opacity: 0;
  /* On le réduit pour un effet de disparition fluide lors du hover magnétique */
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.2s, transform 0.2s;
}

/* Supp affichage si on est sur un bouton*/
.bouton_contact, .submit-button, header a, footer a {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s ease;
    will-change: transform;
}

.legal-link {
    text-decoration:none;
    color: #ffffff;

    
}

.legal-link:hover {
    color: #002bcc;
    font-weight: bold;
}


#eco-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    max-width: 340px;
    transition: border-color .3s;
    font-family: system-ui, -apple-system, sans-serif;
}

#eco-badge:hover {
    border-color: rgba(29,158,117,0.4);
}

.eco-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.eco-icon-main {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(29,158,117,0.14);
    border: 1px solid rgba(29,158,117,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eco-stats {
    flex: 1;
}

.eco-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.eco-unit {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
}

.eco-rank {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.eco-grade {
    font-size: 28px;
    font-weight: 700;
    color: #5DCAA5;
    padding-right: 4px;
}

.eco-pills-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.eco-pill {
    font-size: 11px;
    padding: 1px 9px; 
    border-radius: 20px;
    font-weight: 500;
    line-height: 0.42; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-green {
    background: rgba(29,158,117,0.13);
    color: #5DCAA5;
    border: 1px solid rgba(29,158,117,0.22);
}

.pill-blue {
    background: rgba(55,138,221,0.1);
    color: #85B7EB;
    border: 1px solid rgba(55,138,221,0.18);
}

/* Style du lien spécifique pour éviter le bleu */
.arost-link {
    color: #ffffff; 
    text-decoration: none;
}

.arost-link:hover {
    text-decoration: underline;
}

.eco-footer-text {
    font-size: 11px;
    color: rgba(255,255,255,0.32);
    text-align: center;
    line-height: 1.5;
    margin: 4px 0 0 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 10px;
}

.eco-external {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.eco-link {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
    margin-top: 5px;
}

.eco-link:hover {
    color: rgba(255,255,255,0.7);
}

#announcement-banner {
    width: 100%;
    padding: 10px 16px;
    font-family: sans-serif;
    font-size: 0.9em;
    display: none;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.banner-button {
    padding: 5px 12px;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.banner-button:hover {
    opacity: 0.8;
}

  @media (prefers-reduced-motion: reduce) {
    * { cursor: auto !important; }
    .mouse { display: none !important; }
}

@media (max-width: 640px) {
    header {
        width: calc(100vw - 32px);
        margin: 16px auto;
        overflow-x: auto;
        border-radius: 20px;
    }

    header ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
    }

    header a {
        width: auto;
        padding: 0 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}