:root {
    --primary-color: #002b60;
    --secondary-color: #f4d7e6;
    --black-color: #1e1e1e;
    --white-color: #ffff;
}


*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/****** COMMUN *****/
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f8e8ef;
    color: #333;
    line-height: 1.6;
}

.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);
}

.h2 {
    font-size: 2.5rem;
    text-align: center;
    font-family: "Alice", serif;
    margin: 1rem;
    color: var(--primary-color);

}

#h1 {
    font-family: "Alice", serif;
    color: var(--primary-color);
    font-size: 3rem;
    text-align: center;
}

.h3 {
    font-family: "Alice", serif;
    color: var(--primary-color);


}

.h4 {
    font-family: "Alice", serif;
    color: var(--primary-color);


}

p,
ul,
li {
    font-family: "Lora", serif;
    font-size: 16px;

}

/********* 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;
    }

    .h2 {
        font-size: 1.5rem
    }

    #h1 {
        font-size: 2rem;
    }

    .h3{
        text-align: center;
    }

    p {
        text-align: center;
    }


    .gantt-bar-label {
        font-size: 12px;
    }
}

header {
    padding: 2rem;
}

#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;
    }
}

/***** ENTREPRISE INFOS *******/

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.card-list li {
    background: #f4d7e6;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.card-list li:hover {
    transform: translateY(-5px);
    background-color: #f8e8ef;
}

.card-list li span {
    font-size: 1.5em;
    color: #f4d7e6;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

/* Style pour listes numérotées */
.card-list.numbered li span {
    background-color: #f4d7e6;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    font-weight: bold;
}


/******** APERCU DU SITE ********/

#presentation_site>img {
    width: 100%;
    display: block;
    border-radius: 12px;
    height: auto;
}

#presentation_site>h3 {
    justify-content: center;
}


.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: "Lora", serif;
}

.styled-list li {
    background-color: #f4f4f4;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}



.styled-list li::before {
    content: '•';
    color: #007bff;
    font-weight: bold;
    margin-right: 10px;
}




/***** MES PREMIERES TACHES TECHNIQUES ******/
.task-card {
    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);
}

.task-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: #002b60;
}

.task-card ul {
    padding-left: 20px;
}

.task-card li {
    margin-bottom: 10px;
}

.task-card code {
    background: #eaeaea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

/******* PREVISION DES TACHES ****/
.planning-section {
    background-color: white;
    border-left: 5px solid #e6b8c8;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.planning-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.planning-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ccc;
}

.gantt-container {
    margin-top: 3rem;
}

.gantt h3 {
    text-align: center;
    font-weight: bold;
    color: #333;
}

.gantt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}



.gantt-header-cell {
    width: 22%;
    text-align: center;
    background-color: #f4f4f4;
    padding: 1rem;
}

.gantt-bar {
    position: relative;
    height: 40px;
    background-color: #3498db;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.gantt-bar-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
}

.gantt-bar:nth-child(1) {
    background-color: #e6b8c8;
    /* Synchronisation des champs */
}

.gantt-bar:nth-child(2) {
    background-color: #2ecc71;
    /* Amélioration affichage */
}

.gantt-bar:nth-child(3) {
    background-color: #f39c12;
    /* Travail sur le back-end */
}

.gantt-bar:nth-child(4) {
    background-color: #9b59b6;
    /* Contributions front-end */
}

/* Styles de survol */
.gantt-bar:hover {
    opacity: 0.9;
}

/****** ANALYSE DU PROJET  *****/
.cards-container {
    display: flex;
    flex-direction: column;
    /* Changer la direction des cartes pour qu'elles soient en colonne */
    gap: 2rem;
    margin: 2rem auto;
    max-width: 100%;
    /* Occupe toute la largeur disponible */
    width: 100%;
}

.card {
    background-color: #e6b8c8;
    border-radius: 10px;
    padding: 2rem;
    margin: 0 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
    align-items: center;
}


.card-content {
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.card-content li {
    margin-bottom: 0.5rem;
}

.card:hover {
    transform: scale(1.05);
    /* Léger effet de zoom lors du survol */
}

.card:hover .card-content {
    opacity: 1;
    max-height: 1000px;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
}

/******* VEILLE ******/
/* Mise en forme générale */
.veille-recommandations {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 2rem auto;
    padding: 1rem;
    max-width: 1100px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Contenu des paragraphes */
.veille-recommandations p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Liste des éléments */
.veille-recommandations ul {
    list-style-type: disc;
    margin-left: 2rem;
    padding-left: 1rem;
}

.veille-recommandations li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
}

/* Espacement général */
.veille-recommandations ul li strong {
    color: #333;
}

/* Liens */
.veille-recommandations a {
    color: #e6b8c8;
    text-decoration: none;
}

.veille-recommandations a:hover {
    text-decoration: underline;
}


#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;
}