@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@0,100..900;1,100..900&family=Dancing+Script:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

a {
    text-decoration: none;
    font-size: 13px;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    position: relative;
    background-color: #fff;
    z-index: 1001;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    width: 40px;
    height: 40px;
}

header .logo h1 {
    font-size: 30px;
    color: #2768f3;
}

.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.menu li {
    list-style: none;
}

.menu li a {
    color: #000;
    transition: 0.3s;
}

/* .menu li a:hover {
    font-size: 15px;
    color: #FFF;
}

.menu li:hover::after {
    content: "";
    position: absolute;
    height: 30px;
    z-index: -1;
    width: 30px;
    background-color: beige;
    border-radius: 50px;
}
 */

/* ************HOME************* */

.home {
    padding: 0 5%;
    margin: 50px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
    height: calc(50vh - 20px);
}

.home .left {
    width: 55%;
}

.home .right {
    width: 55%;
    height: 100%;
}

.home .right img {
    width: 70%;
    object-fit: cover;
    border-radius: 10%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    margin-left: 100px;
}

.home .left h1 {
    font-size: 60px;
    color: #2768f3;
    font-weight: 600;
    padding: 0;
    margin-left: -8px;
    margin-bottom: -10px;
}

.home .left h1 span {
    color: #4f4f4f;
}

.home .left h4 {
    font-weight: 500;
    font: 25px;
    margin-bottom: 10px;
    color: #999;
    text-transform: capitalize;
}

.home .left p {
    font-size: 14px;
    color: #999;
}

.button-link {
    margin-top: 30px;
    border: 0;
    background: transparent;
}

.button-link a {
    font-size: 14px;
    color: #fff;
    padding: 10px 25px;
    background: #2768f3;
    border-radius: 40px;
    text-transform: uppercase;
}

/* **********COMPETENCES************* */

section {
    padding: 0 5%;
    margin-bottom: 50px;
    margin-top: 150px;
}

.title {
    text-transform: uppercase;
    color: #2768f3;
    font-size: 40px;
    position: relative;
    margin-bottom: 20px;
    margin-top: 120px;
}


.small_title {
    font-size: small;
    color: #999;
}

.list_service {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}



.affiche {
    width: 100%;
    height: 380px;
    /* ou adapte selon ton besoin */
    object-fit: cover;
    /* ou "contain" si tu préfères ne rien rogner */
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}






.serv p {
    color: #7127f3;
}

/* ***************************competences******************************* */

.competences {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 100px;
}

.competences-column {
    flex: 1 1 400px;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

h2 {
    color: #1a56db;
    /* bleu similaire au titre du portfolio */
    margin-bottom: 0.5rem;
}

.date {
    font-weight: bold;
    color: #666;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.skills span {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 0.9rem;
    background-color: #fff;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

ul li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}



/* ************************footer******************* */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.footer-title {
    font-weight: bold;
    font-size: 1.5rem;
    color: #2563eb;
    /* bleu */
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    text-decoration: none;
    color: #000;
    position: relative;
}

.footer-nav a::before {

    color: #2563eb;
    margin-right: 0.3rem;
    font-weight: bold;
}

.alerte-connexion {
    background-color: #e6f1fd;
    color: #0077ff;
    padding: 12px 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}

.alerte-non-connecte {
    background-color: #ffe6e6;
    color: #d63031;
    padding: 12px 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}




/* ======================== RESPONSIVE DESIGN ======================== */

/* TABLETTE (768px à 1023px) */
@media screen and (max-width: 1023px) {
    .home {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .home .left,
    .home .right {
        width: 100%;
    }

    .home .right img {
        margin: 20px auto;
        width: 80%;
    }

    .menu {
        gap: 15px;
    }

    .competences {
        flex-direction: column;
        align-items: center;
    }

    .list_service {
        justify-content: center;
        gap: 1rem;
    }

    .serv {
        width: 80%;
        margin-bottom: 30px;
    }

    .affiche {
        height: auto;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* MOBILE (< 768px) */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2rem;
        text-align: center;
    }

    .title {
        font-size: 1.6rem;
        text-align: center;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home .left,
    .home .right {
        width: 100%;
    }

    .home .right img {
        width: 90%;
        margin: 20px auto;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .competences {
        flex-direction: column;
        padding: 0 1rem;
    }

    .competences-column {
        width: 100%;
        padding: 1rem;
    }

    .serv {
        width: 100%;
        padding: 20px;
    }

    .affiche {
        width: 100%;
        height: auto;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .alerte-connexion,
    .alerte-non-connecte {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* ======== RESPONSIVE HEADER & FOOTER ======== */

/* TABLETTE ET MOBILE */
@media screen and (max-width: 1023px) {

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header .logo {
        margin-bottom: 10px;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .menu li {
        margin: 0;
        padding: 5px 0;
    }

    /* FOOTER */
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 1.5rem 1rem;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav a {
        font-size: 14px;
    }

    .footer-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }
}

/* ======== RESPONSIVE HEADER & FOOTER ======== */

@media screen and (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 20px 5%;
    }

    header .logo {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .menu li {
        margin: 0;
        padding: 0;
    }

    .menu li a {
        font-size: 16px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-logo {
        width: 40px;
        height: 40px;
    }

    .footer-title {
        font-size: 1.4rem;
    }
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    height: 30px;
    width: 35px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #2768f3;
    border-radius: 2px;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE MENU ===== */
@media screen and (max-width: 768px) {
    .burger {
        display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 1000;
    }

    .menu.show {
        display: flex;
    }
}

