:root {
    --primary-color: #002b60;
    --secondary-color: #f4d7e6;
    --black-color: #1e1e1e;
    --white-color: #ffff;
}


*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*******COMMUNS********/
body {
    background-color: #f4d7e6;
    font-family: "Lora", sans-serif;
    color: #002b60;

}


header {
    padding: 2rem;
}

.h2 {
    font-size: 3rem;
    text-align: center;
    font-family: "Alice", serif;
    margin: 2rem;

}

h1 {
    font-family: "Alice", serif;
    text-align: center;
    margin: 2rem;
    padding: 3rem;
    background-color: white;
    border-radius: 2rem;
}

@media screen and (max-width: 768px) {

    h1 {
        font-family: "Alice", serif;
        text-align: center;
        margin: 1rem;
        padding: 20px;
        font-size: 26px;
        background-color: white;
        border-radius: 2rem;
    }
}

/*******HEADER - MENU********/


@media screen and (max-width: 768px) {
    #liste_menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0;

    }

    .lien {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center;
    }

    #menu {
        padding: 1rem;
        border-radius: 0;
    }

}

#liste_menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.lien {
    position: relative;
    text-decoration: none;
    color: #002b60;
    font-family: "Lora", serif;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.lien::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #002b60;
    transition: width 0.3s ease;
}

.lien:hover::after {
    width: 100%;
}

.lien:hover {
    color: white;
}

#menu {
    background: linear-gradient(135deg, #f8e8ef, #f4d7e6, #e6b8c8, #d4a5b5);
    border-radius: 20px;
    padding: 1.2rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}



#menu {
    animation: fadeIn 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/*******CONTENU TITRE + MISSIONS********/


#logo1 {
    display: flex;
    justify-content: center;
    height: 9rem;
}

#missions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}


@media screen and (max-width: 768px) {
    #missions {
        grid-template-columns: 1fr;
        padding: 0 6px;
    }
}


.card {
    text-align: center;
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h2 {
    background-color: var(--secondary-color);
    font-family: "Alice", serif;
    color: var(--primary-color);
    margin: 0;
    padding: 16px;
    font-size: 18px;
}

.card p {
    background-color: #ecf0f1;
    margin: 0;
    padding: 16px;
    font-size: 14px;
}


.card-link {
    text-decoration: none;
    color: #1e1e1e;
}

#btnScrollTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 100;
    background-color: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

#btnScrollTop:hover {
    background-color: #001e44;
}


.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


@media screen and (max-width: 768px) {
    .container{
        padding:23px;
    }
}



/*******************PLANNING DES TACHES*******************/

.planning-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.planning-table th,
.planning-table td {
    border: 1px solid #ddd;
    padding: 16px;
    vertical-align: top;
}

.planning-table th {
    background-color: #2c3e50;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.planning-table td ul {
    padding-left: 20px;
    margin: 0;
}

.planning-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

@media screen and (max-width: 768px) {

    .planning-table,
    .planning-table thead,
    .planning-table tbody,
    .planning-table th,
    .planning-table td,
    .planning-table tr {
        display: block;
    }

    .planning-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .planning-table td {
        .planning-table td {
            border: none;
            position: relative;
            padding-top: 14%;
            padding-left: 12%;
            text-align: left;
        }

        .planning-table td::before {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 45%;
            white-space: nowrap;
            font-weight: bold;
            color: #555;
        }

        .planning-table td:nth-of-type(1)::before {
            content: "Semaine";
            font-family: "Alice", serif;

        }

        .planning-table td:nth-of-type(2)::before {
            content: "Période estimée";
        }

        .planning-table td:nth-of-type(3)::before {
            content: "Travail réalisé";
        }
    }
}

/*********** Commentaire patrice ******/

.testimonial {
    background-color: #f9f9f9;
    border-left: 4px solid #d4a5b5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


.quote {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.author {
    margin-top: 15px;
    text-align: right;
}

.name {
    font-weight: bold;
    color: #2c3e50;
    display: block;
    font-size: 1.1rem;
}

.role {
    color: #777;
    font-size: 0.95rem;
}