/* =========================
   Base du site
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", serif;
    background-color: #f9f8f1;
    color: 3px 3px 3px 3px #333;
    /* padding-top: 200px; */
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   THÈME SOMBRE
========================= */

body.dark {
    background-color: #121212;
    color: #eaeaea;
}

body.dark .header h1{
    color: white;
}

body.dark .header a{
    color: white;
}

body.dark .boxprojet h3 {
    color: white;
}

body.dark .boxprojet p {
    color: white;
}

body.dark .boxprojet {
    box-shadow: 0 8px 20px rgba(133, 133, 133, 0.18);
}

/* =========================
   Mentions légales
========================= */



/* =========================
   Header = entête
========================= */
.headerPhone {
    display: none;
}

.navPhone {
    display: none;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    padding: 25px 20px;
    transition: transform 0.4s ease;
    padding-bottom: 280px;
}

.header a {
    text-decoration: none;
}

.logo h1 {
    display: block;
    margin: -25px 0 0 0;
    gap: 15px;
    font-weight: bold;
    align-items: center;
    font-size: 50px;
    color: rgb(0, 0, 0);
}

.nav {
    margin-top: -5px;
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: #111;
    font-size: 25px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.header .nav a:hover {
    color: #bcede8;
    /* couleur qui change */
    transform: scale(1.1);
    /* léger agrandissement */
}

.theme-toggle {
    font-size: 24px;
    cursor: pointer;
    transition-property: transform;
    transition-duration: 1s;
    transition-timing-function: ease;
    transition-delay: 0s;
}

.theme-toggle:hover {
    transform: rotate(360deg);
}


/* =========================
   Accueil
========================= */

.accueil {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 400px;
}

.accueil h3 {
    margin-top: 20px;
}

.nom {
    text-align: center;
    font-size: 60px;
    color: #0866ff;
    text-decoration: solid;
    padding-bottom: 10px;

    width: 500px;
    border-right: 5px solid;
    white-space: nowrap;
    overflow: hidden;
    animation: 
        typing 2s steps(11),
        cursor .4s step-end infinite alternate;
}
@keyframes cursor {
    50% {   border-color: transparent;}
}
@keyframes typing {
    from { width:0}
}

.textaccueil {
    text-align: center;
    font-size: 25px;
    padding-bottom: 10px;
    text-decoration: none;
}

.textaccueil p {
    padding-bottom: 15px;
}

.boutonvoirprojet {
    background-color: #0866ff;
    width: 180px;
    height: 50px;
    color: #f9f8f1;
    text-decoration: solid;
    font-size: 20px;
    border-radius: 8px;
    border: none;
}


/* =========================
   Accueil
========================= */

.competences {
    padding-bottom: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.introcompetences h2 {
    font-size: 40px;
    padding-bottom: 10px;
    text-align: center;
}

.introcompetences p {
    font-size: 25px;
    padding-bottom: 30px;
    text-align: center;
}

.boxs {
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.boxcompetences {
    width: 310px;
    padding: 20px;
    border-radius: 12px;


    background-color: 0 10px 25px rgba(84, 84, 84, 0.1);
    /* box-shadow: 3px 3px 3px 3px black; */
    border: solid #454545 3px;

    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;

    transition-property: transform;
    transition-duration: 1s;
    transition-timing-function: ease;
    transition-delay: 0s;
}

.emojicompetences {
   font-size: 40px;
}

.titrecompetences {
    font-size: 25px;
}

.textcompetences {
    font-size: 20px;
    text-align: center;
    list-style-type: none;
    line-height: 35px;
}


/* =========================
   Projets
========================= */

.projets {
    padding-bottom: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.introprojet h2 {
    font-size: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.introprojet p {
    font-size: 25px;
    padding-bottom: 50px;
    text-align: center;
}

.boxs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.boxprojet {
    width: 380px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: no;
    align-items: center;

    transition-property: transform;
    transition-duration: 1s;
    transition-timing-function: ease;
    transition-delay: 0s;
}

.boxprojet img {
    width: 380px;
    height: 200px;
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.18); */
    /* border-bottom: 5px solid #0099ff; */
    margin-top: -25px;
    
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
    display: block;
}

.boxprojet iframe {
    width: 380px;
    height: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    margin-top: -25px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
    display: block;
}

/* contenu texte */
.boxprojet h3 {
    font-size: 25px;
    margin: 20px 20px 10px;
    color: #1e2a39;
}

.boxprojet p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 20px 20px;
    color: #5a6a7a;
}

/* zone des tags */
.typedeprojet {
    display: flex;
    gap: 10px;
    padding: 0 20px 25px;
}

/* style commun des pastilles */
.typedeprojet span {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* couleurs des technos */
.type1 { background: #d9e8ff; color: #2a63c7; }
.type2 { background: #ffe9a6; color: #b07a00; }
.type3 { background: #ffd3cf; color: #b23a32; }
.type4 { background: #d7f1df; color: #2e8b57; }


/* =========================
   Contact
========================= */

.contact {
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.introcontact h2 {
    font-size: 40px;
    padding-bottom: 10px;
    text-align: center;
}

.introcontact p {
    font-size: 25px;
    padding-bottom: 40px;
    text-align: center;
}

.formcontact {
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-top: 5px solid #0866ff;
}

body.dark .formcontact {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(133, 133, 133, 0.15);
}

.inputgroup {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inputgroup label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

body.dark .inputgroup label {
    color: #eaeaea;
}

.inputgroup input,
.inputgroup textarea {
    font-family: "Georgia", serif;
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f8f1;
    color: #333;
    transition: border-color 0.3s ease;
    resize: vertical;
    outline: none;
}

body.dark .inputgroup input,
body.dark .inputgroup textarea {
    background-color: #2a2a2a;
    border-color: #444;
    color: #eaeaea;
}

.inputgroup input:focus,
.inputgroup textarea:focus {
    border-color: #0866ff;
}

.boutoncontact {
    background-color: #0866ff;
    color: #f9f8f1;
    font-family: "Georgia", serif;
    font-size: 18px;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.boutoncontact:hover {
    background-color: #0550cc;
    transform: scale(1.03);
}

.boutoncontact:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.confirmationcontact {
    font-size: 16px;
    min-height: 20px;
}

/* =========================
   Footer
========================= */

.footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 20px;
    color: #888;
    border-top: 1px solid #ddd;
}

body.dark .footer {
    color: #666;
    border-top-color: #333;
}

/* =========================
   Responsive contact
========================= */

@media (min-width: 500px) and (max-width: 1278px) {
    .formcontact {
        width: 90%;
        padding: 25px;
    }

    .introcontact p {
        font-size: 18px;
        padding: 0 20px 30px;
    }
}








/* =========================
   Affichage grand écran
========================= */

@media (min-width:2400px) {

    .box {
        width: 400px;
    }


    .box img {
        width: 400px;
        height: 550px;

    }

    .box-title {
        font-size: 1.5rem;
    }

}


/* =========================
   Affichage écran plus petit
========================= */

@media (min-width: 1230px) and (max-width: 1770px) {
    .logo img {
        height: 100px;
        margin-left: -180px;
        margin-top: 10px;
    }

    .lesresaux {
        display: flex;
        justify-content: space-between;
        gap: 355px;
    }
}




/* =========================
   Affichage téléphone
========================= */



@media (min-width: 500px) and (max-width: 1278px) {
    body {
        background: #f9f8f1;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    /* =========================
     Header
  ========================= */


    .header {
        display: none;
    }

    .headerPhone {
        max-width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .headerPhone img {
        width: 300px;
        margin-top: 5px;
    }

    .menuHamburger i {
        padding-right: 15px;
        font-size: 150px;
        z-index: 1001;
        position: relative;
        cursor: pointer;
    }

    .navPhone {
        top: 0;
        left: 0;
        position: fixed;
        display: flex;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.724);
        backdrop-filter: blur(5px);
        width: 100%;
        height: 100vh;
        padding: 0;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }

    .navPhone a {
        margin: 50px 0;
        text-decoration: none;
        color: #111;
        font-size: 60px;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .navPhone a:hover {
        color: #bcede8;
        transform: scale(1.1);
    }

    .navPhone.mobile-menu {
        transform: translateX(0);
    }

    .theme-toggle {
        font-size: 60px;
    }

    body.dark .navPhone a {
        color: #ffffff;
    }

    body.dark .navPhone {
        background-color: rgba(0, 0, 0, 0.724);
    }

}