@font-face {
    font-family: 'Canopee';
    src: url('./fonts/Canopee/Canopee.otf') format('opentype');
}

:root {
    /* Mode sombre (par défaut) */
    --color-primary: #000000;
    --color-secondary: #f5f5f5;
    --color-tertiary: #d6d6d6;
    --color-accent: #ff5f1f;
    --color-accent-light: #ff8f5f;
}

:root[data-theme="light"] {
    /* Mode clair */
    --color-primary: #ffffed;
    --color-secondary: #000000;
    --color-tertiary: #666666;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--color-primary);
    position: relative;
    overflow-x: hidden;
}

.intro{
    width: 100vw;
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    position: relative;
    width: 90%;

    height: auto;
    padding: 1rem;
}

.intro-small {
    font-family: 'Canopee';
    font-size: 4rem;
    color: var(--color-secondary);
    grid-row: 1;
    text-align: left;
    position: relative;
    z-index: 1;
    margin-bottom: -2rem;
    margin-left: 15%;
}

.intro-image {
    width: 500px;
    height: auto;
    margin: 0 auto;
    grid-row: 2;
    position: relative;
    z-index: 0;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.intro-large {
    font-family: 'Canopee';
    font-size: 12rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    grid-row: 3;
    text-align: right;
    position: relative;
    z-index: 1;
    margin-top: -6rem;
    margin-right: 20%;
}

.intro-subtitle {
    font-family: serif  ;
    font-size: 1.8rem;
    color: var(--color-tertiary);
    grid-row: 4;
    text-align: center;
    margin-top: 5rem;
}

.info {
    width: 100vw;
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    position: relative;
    width: 90%;
    height: auto;
    padding: 1rem;
}

.info-title {
    font-family: 'Canopee';
    font-size: 8rem;
    color: var(--color-secondary);
    grid-row: 1;
    text-align: left;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    opacity: 1;
    visibility: visible;
}

.info-image {
    width: 500px;
    height: auto;
    margin: 0 auto;
    grid-row: 2;
    position: relative;
    z-index: 0;
    opacity: 1;
    visibility: visible;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
}

.info-details {
    grid-row: 3;
    margin-top: 3rem;
    text-align: center;
    color: var(--color-secondary);
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 1rem;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.info-card:hover .info-card-title {
    color: var(--color-accent);
}


.info-card-title,
.info-card-text {
    transition: color 0.3s ease;
}

.info-card-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.info-card-title {
    font-family: 'Canopee';
    font-size: 2rem;
    color: var(--color-tertiary);
    text-align: center;
}

.info-card-text {
    font-family: serif;
    font-size: 1.3rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-align: center;
}

.somaire{
    overflow: hidden;
}

.somaire-wrapper{
    width: 100%;
}

.sommaire-container {
    width: 100%;
    height: 100vh; /* hauteur importante pour le pin */
    display: flex;
    flex-wrap: nowrap; /* empêche le retour à la ligne */
    background-color: var(--color-primary);
}

.sommaire-title {
    font-family: 'Canopee';
    font-size: 8rem;
    color: var(--color-secondary);
    text-align: center;
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.chapitres {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding-top: 0rem;
    margin-top: 0rem;
    padding-left: 25vw;
}

.chapitre {
    min-width: 30vw;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    padding: 0 2rem;
}

.chapitre-card {
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.chapitre-number {
    font-family: 'Canopee';
    font-size: 4rem;
    color: var(--color-tertiary);
    transition: color 0.3s ease;
    position: absolute;
    top: -30px;
    left: 20px;
    background-color: var(--color-primary);
    padding: 0 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 5px;
}

.chapitre-title {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.2;
    padding: 2.5rem;
    margin-top: 2rem;
}

.chapitre-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.chapitre-card:hover .chapitre-number {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: none;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

.theme-toggle-dark,
.theme-toggle-light {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-light {
    opacity: 0;
    transform: translateY(20px);
}

/* Styles pour le mode clair */
:root[data-theme="light"] .theme-toggle-dark {
    opacity: 0;
    transform: translateY(-20px);
}

:root[data-theme="light"] .theme-toggle-light {
    opacity: 1;
    transform: translateY(0);
}

.chapitre-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 450px;
}

/* Déplacer l'effet hover sur le lien plutôt que la carte */
.chapitre-link:hover .chapitre-card {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.chapitre-link:hover .chapitre-number {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.chapitre-page {
    min-height: 100vh;
    background-color: var(--color-primary);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.chapitre-page-header {
    position: fixed;
    top: -1rem;
    left: -1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid var(--color-secondary);
    padding-left: 4rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
    padding-right: 3rem;
    border-radius: 10px;
    background-color: var(--color-primary);
}

.chapitre-page-number {
    font-family: 'Canopee';
    font-size: 8rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.chapitre-page-title {
    font-family: 'Canopee';
    font-size: 4rem;
    color: var(--color-secondary);
}

.chapitre-page-subtitle {
    font-family: serif;
    font-size: 1.3rem;
    color: var(--color-tertiary);
    margin-top: 1rem;
}

.chapitre-content {
    width: 100%;
    margin: 0 auto;
    margin-top: 0;
    font-family: serif;
    font-size: 1.2rem;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

.retour-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-family: 'Canopee';
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.retour-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

html {
    scroll-behavior: smooth;
}

.bio-container {
    display: flex;
    gap: 4rem;
    margin: 0;
    padding: 2rem;
    width: 100%;
    min-height: 200vh;
    position: relative;
    justify-content: space-between;
}

.bio-image {
    position: sticky;
    top: 38vh;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text-container {
    position: relative;
    flex: 1;
    margin: 0;
    padding: 0;
}

.bio-title {
    font-family: 'Canopee';
    font-size: 4rem;
    color: var(--color-accent);
    margin: 0;
    padding: 0;
}

.bio-text {
    position: relative;
    font-size: 1.8rem;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    max-width: 800px; /* Pour limiter la largeur du texte */
}

.bio-text-mask {
    position: relative;
    color: var(--color-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 0;
}

.bio-text-mask span.word {
    display: inline-block;
    margin-right: 0.5rem;
}

.competences-container {
    margin-top: 4rem;
    padding: 2rem;
    width: 100%;
    visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
    margin-left: calc(300px + 6rem);
    position: relative;
}

.competences-title {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 3rem;
    align-self: flex-start;
}

.competences-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 800px;
    visibility: visible;
    margin-right: 0;
}

.competence-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.competence-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}

.check-icon {
    font-size: 1.5rem;
}

.competence-item h4 {
    font-family: 'Canopee';
    font-size: 2rem;
    color: var(--color-secondary);
}

.competence-details {
    margin-top: 1.5rem;
    padding-left: 3rem;
    font-size: 1.4rem;
    color: var(--color-tertiary);
    line-height: 1.6;
}

.competence-details p {
    margin-bottom: 1rem;
}

.competence-item:hover {
    transform: translateX(20px);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.competences-images {
    position: fixed;
    left: 2rem;
    bottom: -6em;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
    pointer-events: none;
    z-index: 100;
}

.competence-hover-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 101;
}

.competence-item {
    cursor: pointer;
}

/* Animation des images au hover */
.competence-item[data-competence="web"]:hover ~ .competences-images img[data-competence="web"],
.competence-item[data-competence="seo"]:hover ~ .competences-images img[data-competence="seo"] {
    opacity: 1;
}

.next-chapter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    margin: 4rem auto;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-top: 10rem;
}

/* Ajout du fond qui se remplit */
.next-chapter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--color-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.next-chapter:hover::before {
    width: 100%;
    height: 100%;
}

.next-chapter-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.next-chapter-number {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.next-chapter-text {
    font-family: serif;
    font-size: 1rem;
    color: var(--color-tertiary);
    transition: color 0.3s ease;
}

.next-chapter:hover .next-chapter-number,
.next-chapter:hover .next-chapter-text {
    color: var(--color-primary);
}

.entreprise-info-container {
    display: flex;
    gap: 2rem;
    margin: 4rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.entreprise-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.entreprise-info {
    flex: 1;
}

.entreprise-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    padding: 0.5rem;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.entreprise-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.entreprise-card:hover .entreprise-logo {
    transform: scale(1.1);
    border-color: var(--color-accent-light);
}

.entreprise-card:hover .entreprise-logo img {
    transform: scale(1.1);
}

.entreprise-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.entreprise-card-title {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-tertiary);
}

.entreprise-card-text {
    font-family: serif;
    font-size: 1.8rem;
    color: var(--color-secondary);
    line-height: 1.4;
}

.location-card {
    margin: 4rem auto;
    max-width: 600px;
    background: linear-gradient(45deg, var(--color-accent), var(--color-accent-light));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.location-header {
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.location-title {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-primary);
    margin: 0;
}

.location-content {
    padding: 2rem;
}

.location-text {
    font-family: serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin: 0;
}

.entreprise-layout {
    display: grid;
    grid-template-columns: 800px 1fr;
    gap: 2rem;
    margin-top: 12rem;
    padding: 1rem;
    margin-bottom: -8rem;
    min-height: calc(100vh - 16rem);
}

.entreprise-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    position: sticky;
    margin-top: -10rem;
    height: fit-content;
    width: 550px;
}

.map-card {
    background-color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.map-header {
    padding: 1.5rem;
    background-color: var(--color-accent);
}

.map-title {
    font-family: 'Canopee';
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0;
}

.map-subtitle {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.map-content {
    height: 450px;
    width: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

.styled-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-accent-light), var(--color-accent));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Ajoutez ces styles pour personnaliser la carte */
.map-tiles {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* En mode clair, inversez les couleurs */
:root[data-theme="light"] .map-tiles {
    filter: none;
}

/* Ajustez la couleur des attributions */
.leaflet-container .leaflet-control-attribution {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: var(--color-tertiary) !important;
}

/* Ajoutez ces styles pour le popup */
.custom-popup .leaflet-popup-content-wrapper {
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: 10px;
}

.custom-popup .leaflet-popup-content {
    color: var(--color-secondary);
    font-family: 'Canopee';
    font-size: 1.2rem;
    margin: 0.5rem 1rem;
}

.custom-popup .leaflet-popup-tip {
    background-color: var(--color-accent);
}

.logo-letter {
    font-family: 'Canopee';
    font-size: 4rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.custom-marker {
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Canopee';
    font-size: 2rem; /* Augmenté pour correspondre au logo */
    color: var(--color-accent);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.custom-marker:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.1);
    border-color: var(--color-accent-light);
}

.motivation-section {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.motivation-title {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-tertiary);
    margin-bottom: 1.5rem;
}

.motivation-content {
    padding: 1rem;
    border-left: 3px solid var(--color-accent);
    margin-left: 1rem;
}

.motivation-text {
    font-family: serif;
    font-size: 1.8rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

.motivation-section:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.map-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.chapter-navigation::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 60%;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
    transform: translate(-50%, -50%);
}

/* Décaler le deuxième bouton vers le bas */
.chapter-navigation .next-chapter:last-child {
    transform: translateY(20px);
}

/* Ajuster le hover pour le deuxième bouton */
.chapter-navigation .next-chapter:last-child:hover {
    transform: translateY(20px) scale(1.1);
}

.missions-layout {
    display: grid;
    grid-template-columns: 500px 800px;
    gap: 10rem;
    margin-top: 1rem; /* Espace pour le header sticky */
    padding: 2rem;
}

.mission-principale {
    position: sticky;
    top: 25rem;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deux-point {
    font-family: 'Canopee';
    font-size: 10rem;
    color: var(--color-secondary);
    line-height: 1.2;
    margin-top: -3rem;
}

.mission-title {
    font-family: 'Canopee';
    font-size: 4rem;
    color: var(--color-secondary);
    line-height: 1.2;
}

.missions-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 80%;
}

.mission-card {
    background-color: rgba(255, 95, 31, 0.1);
    border: 2px solid var(--color-accent);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.mission-letter {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-primary);
    position: absolute;
    left: -15px;
    top: -15px;
    background-color: var(--color-accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-accent);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 2rem;
}

.mission-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.mission-text {
    font-family: serif;
    font-size: 1.8rem;
    color: var(--color-secondary);
    line-height: 1.4;
}

.mission-card:hover {
    transform: translateX(10px);
    border-color: var(--color-accent);
    background-color: rgba(255, 95, 31, 0.1);
}

.mission-card:hover .mission-letter {
    color: var(--color-primary);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.mission-card:hover .mission-icon {
    color: var(--color-accent);
}

.mission-hover-images {
    position: fixed;
    top: -1rem;
    left: -1rem;
    width: calc(100% + 2rem);
    height: 250px; /* Ajusté pour correspondre au header */
    z-index: 1;
    pointer-events: none;
}

.mission-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
    padding: 4rem 4rem 3rem 4rem; /* Ajusté pour correspondre au padding du header */
}

.mission-hover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.85; /* Augmenté pour une meilleure lisibilité du texte */
    border-radius: 8px;
}

/* Augmenter le z-index du titre pour qu'il reste visible */
.chapitre-page-header {
    z-index: 2;
}

.header-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Overlay pour la lisibilité */
.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.85;
}

.journee-section {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 4rem;
    padding: 6rem 0;
    margin-top: 15rem;
    position: relative;
    min-height: 180vh;
}

.journee-title {
    font-family: 'Canopee';
    font-size: 6rem;
    color: var(--color-secondary);
    line-height: 1.2;
    position: fixed;
    top: 0rem;
    right: -20%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: var(--color-primary);
    padding: 4rem 2rem 2rem 2rem;
    width: fit-content;
    opacity: 0;
    visibility: hidden;
}

.clock-container {
    position: sticky;
    top: 20vh;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock {
    width: 300px;
    height: 300px;
    border: 4px solid var(--color-secondary);
    border-radius: 50%;
    position: relative;
    background-color: var(--color-primary);
}

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
}

.hour-hand {
    width: 4px;
    height: 30%;
    background-color: var(--color-accent);
    transform: translateX(-50%) rotate(0deg);
}

.minute-hand {
    width: 2px;
    height: 40%;
    background-color: var(--color-secondary);
    transform: translateX(-50%) rotate(0deg);
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.journee-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    margin-top: 20rem;
}

.text-block {
    opacity: 0;
    transform: translateY(50px);
    padding: 2rem;
    font-family: serif;
    font-size: 2.5rem;
    color: var(--color-secondary);
    line-height: 1.4;
    background: none;
    border: none;
}

/* Ajouter des marques d'heures sur l'horloge */
.clock::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 29deg,
        var(--color-secondary) 29deg,
        var(--color-secondary) 31deg
    );
    opacity: 0.2;
}

/* Styles pour le livre */
.book-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem;
    margin-top: 3rem;
}

.book-container {
    width: 500px;
    height: 700px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg);
    perspective: 1500px;
    margin-left: 30rem;
}

.book {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateZ(-25px);
    transition: transform 0.5s ease-out;
}

.page {
    position: absolute;
    width: 500px;
    height: 700px;
    top: 0;
    left: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.page-front, .page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #ffffed;
    padding: 40px;
    box-sizing: border-box;
    border-radius: 0 5px 5px 0;
    backface-visibility: hidden;
    border: 2px solid #000000;
}

.page-front {
    transform: rotateY(0deg);
    background: #ffffed;
    z-index: 1;
}

.page-back {
    transform: rotateY(180deg);
    background: #ffffed;
}

.page-content {
    padding: 30px;
    color: #000000;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff5f1f;
}

.page-content p, .page-content li {
    color: #000000;
}

.page-content ul {
    list-style: none;
    padding: 0;
}

.page-content li {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.page-content li::before {
    content: '•';
    color: #ff5f1f;
    position: absolute;
    left: 0;
}

.cover, .back-cover {
    background: #ffffed;
    border: 4px solid #ff5f1f;
}

.page-number {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-style: italic;
    color: #666666;
    font-size: 1.4rem;
}

.shadow {
    width: 500px;
    height: 700px;
    position: absolute;
    top: 20px;
    left: 10px;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(20px);
    transform: rotateX(80deg);
    border-radius: 50%;
    z-index: -1;
}

.navigation {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
}

.btn {
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Canopee';
    font-size: 1.6rem;
}

.btn:hover {
    transform: scale(1.1);
}

.btn:disabled {
    background-color: var(--color-tertiary);
    cursor: not-allowed;
    transform: none;
}

.future-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 4rem 8rem;
    gap: 4rem;
}

.future-container h3 {
    font-family: 'Canopee';
    font-size: 2.2rem;
    color: var(--color-secondary);
}

.future-container ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.future-container p {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.future-container ul li {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.future-block-stage {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 2px solid var(--color-secondary);
    gap: 2rem;
    height: 400px;
    padding: 2rem;
    border-radius: 10px;
}

.future-block-stage .future-stage-content {
    flex: 1;
}

.future-block-stage img {
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    width: 450px;
    height: 300px;
    object-fit: cover;
}


.future-block-formation {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    border: 2px solid var(--color-secondary);
    gap: 4rem;
    padding: 2rem;
    height: 400px;
    border-radius: 10px;
}

.future-block-formation .future-formation-content {
    flex: 1;
}

.future-block-formation img {
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    width: 450px;
    height: 300px;
    object-fit: cover;
}

.chapter-navigation-6 {
    margin-top: -10rem;
}

.chapitre-page-header-7 {
    width: 60%;
    position: relative;
    border:none
}

.text-reveal-container {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.text-reveal-content {
    font-family: serif;
    font-size: 2rem;
    line-height: 1.6;
}

.text-reveal-content span {
    color: #999999;
    transition: color 0.3s ease;
}

.text-reveal-content span.revealed {
    color: var(--color-secondary);
}

.card-section-7 {
    padding: 4rem;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

.card-section-title-7 {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    background-color: var(--color-primary);
    padding: 2rem 0;
    z-index: 4;

}

.card-container-7 {
    position: relative;
    max-height: 100vh;
}

.card-inner-7 {
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    gap: 6rem;
    background-color: var(--color-primary);
    margin-bottom: -1rem;
    position: sticky;
    top: 150px;
    padding-bottom: 6rem;
}

/* Z-index pour contrôler la superposition */
.card-inner-7:nth-child(1) { z-index: 1; }
.card-inner-7:nth-child(2) { z-index: 2; }
.card-inner-7:nth-child(3) { z-index: 3; }

.card-content-7 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-title-7 {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-accent);
}

.card-text-7 {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.card-text-7 {
    margin-top: 2rem;
}



.card-img-7 {
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    width: 400px;
    height: 250px;
}

/* Le titre de la section doit rester au-dessus de tout */
.card-section-title-7 {
    z-index: 4;
}

.section-apres {
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-apres {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-secondary);
    text-align: center;
}

.bloc-apres {
    margin-top: 4rem;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.apres-sntn {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-align: start;
    width: 100%;
}

.apres-sntn-text {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.timeline-section {
    margin-top: 8rem;
    padding: 4rem;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.timeline-header {
    position: relative;
    top: 20px;
    z-index: 5;
    background-color: var(--color-primary);
    padding: 2rem;
    width: 60%;
    margin: 0 auto 4rem auto;
}

.timeline-header-title {
    font-family: 'Canopee';
    font-size: 3rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-header-subtitle {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.timeline-header-text {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

.timeline-container {
    position: relative;
    width: 300%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 4rem;
}

.timeline {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    margin: 15rem 0;
}

.timeline-point {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--color-accent);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-point:nth-child(1) { left: 10%; }
.timeline-point:nth-child(2) { left: 30%; }
.timeline-point:nth-child(3) { left: 50%; }
.timeline-point:nth-child(4) { left: 70%; }
.timeline-point:nth-child(5) { left: 90%; }

.timeline-blocks {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 5%;
    margin-top: -15rem;
}

.timeline-block {
    width: 600px;
    height: 230px;
    padding: 1rem;
    background-color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    position: absolute;
    transform: translateX(-50%);
}

/* Position des blocs au-dessus des points */
.timeline-block:nth-child(1) { left: 10%; top: -250px; }
.timeline-block:nth-child(2) { left: 30%; top: -250px; }
.timeline-block:nth-child(3) { left: 50%; top: -250px; }
.timeline-block:nth-child(4) { left: 70%; top: -250px; }
.timeline-block:nth-child(5) { left: 90%; top: -250px; }

/* Ajuster la ligne de connexion */
.timeline-block::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: var(--color-secondary);
    bottom: -20px;
    left: 51%;
    transform: translateX(-50%);
}

.timeline-block-title {
    font-family: 'Canopee';
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.timeline-block-text {
    font-family: serif;
    font-size: 1.4rem;
    color: var(--color-secondary);
    line-height: 1.4;
}

/* Conteneur pour les images flottantes */
.floating-images {
    position: absolute;
    top: -300px;
    left: 0;
    width: 100%;
    height: 300px;
    pointer-events: none;
    z-index: 100;
    display: none;
}

.floating-image {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

/* Positions aléatoires pour chaque image */
.floating-image-1 {
    bottom: 200px;
    left: 0;
    transform: rotate(-15deg);
}

.floating-image-2 {
    bottom: 500px;
    left: 200px;
    transform: rotate(10deg);
}

.floating-image-3 {
    bottom: 300px;
    left: 400px;
    transform: rotate(5deg);
}

/* Animation au survol */
.timeline-block:hover + .floating-images {
    display: block;
}

.timeline-block:hover + .floating-images .floating-image {
    opacity: 1;
}

.floating-images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999; /* Augmenté significativement */
}

.floating-images {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    pointer-events: none;
    display: none;
}

.floating-image {
    position: absolute;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Positions aléatoires pour chaque image */
.floating-image-1 {
    top: -100px;
    left: -100px;
    transform: rotate(-15deg);
}

.floating-image-2 {
    top: -50px;
    left: 300px;
    transform: rotate(10deg);
}

.floating-image-3 {
    top: -100px;
    left: 700px;
    transform: rotate(5deg);
}

/* Animation au survol */
.timeline-block:hover ~ .floating-images-container .floating-images[data-card="${index + 1}"] {
    display: block;
}

.timeline-block:hover ~ .floating-images-container .floating-images[data-card="${index + 1}"] .floating-image {
    opacity: 1;
}

.phone-section {
    min-height: 300vh;
    width: 100%;
    position: relative;
    margin-bottom: 150px; /* Ajoute de l'espace pour la navigation */
}

.phone-wrapper {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: 100%;
    height: 100vh;  
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.phone {
    position: relative;
    width: 375px;
    height: 812px;
    background-color: var(--color-primary);
    border: 3px solid var(--color-secondary);
    border-radius: 50px;
    overflow: hidden;
    padding: 20px;
    pointer-events: none;
}

.phone-header {
    position: relative;
    height: 30px;
    background-color: var(--color-primary);
    border-radius: 20px 20px 0 0;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background-color: var(--color-secondary);
    border-radius: 0 0 20px 20px;
}

.phone-screen {
    height: calc(100% - 30px);
    background-color: var(--color-primary);
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    pointer-events: none;
}

.chat-container {
    padding: 20px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
    pointer-events: none;
}

/* Masquer la scrollbar tout en gardant la fonctionnalité */
.chat-container::-webkit-scrollbar {
    display: none;
}

.chat-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-message {
    opacity: 0;
    transform: translateY(20px);
    max-width: 85%; /* Augmenté pour plus d'espace */
    padding: 16px;
    background-color: var(--color-accent);
    border-radius: 20px;
    color: var(--color-primary);
    position: relative;
}

/* Style pour les questions (alignées à gauche) */
.chat-message.question {
    align-self: flex-start;
    border-top-left-radius: 5px;
    background-color: var(--color-secondary);
}

/* Style pour les réponses (alignées à droite) */
.chat-message.response {
    align-self: flex-end;
    border-top-right-radius: 5px;
    background-color: var(--color-accent);
}

.message-sender {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--color-primary);
    opacity: 0.9;
}

.message-time {
    font-size: 12px;
    color: var(--color-primary);
    opacity: 0.7;
    margin-bottom: 4px;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

/* Animation des messages */
.chat-message.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Styles pour les images latérales */
.side-images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9;
}

.side-image {
    position: absolute;
    object-fit: cover;
    width: 300px;
    height: 300px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.side-image.left {
    left: 50px;
}

.side-image.right {
    right: 50px;
}

.side-image.visible {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.chapter-navigation {
    position: relative;
    z-index: 20; /* S'assure que la navigation est au-dessus */
    pointer-events: auto; /* Réactive les interactions */
    margin-top: -100px; /* Remonte légèrement la navigation */
}

/* Ajuster le conteneur principal */
.chapitre-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

.livre-image{
    margin-top: 10px;
}

.page-1{
    width: 400px;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;

}

.page-2{
    width: 400px;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
}

.page-3{
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.page-4 {
    width: 350px;
    border-radius: 10px;
}

.page-5{
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.page-6{
    width: 380px;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
}

.calpet-logo{
    width: 300px!important;
    height: 150px!important;
    object-fit: cover;
}

.thanks-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
}

.thanks-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.thanks-card:hover {
    transform: translateY(-5px);
}

.thanks-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
}

.thanks-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thanks-content h3 {
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.thanks-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-secondary);
}

.embed {
    font-weight: bold;
}

.page-content h1{
    font-family: 'Canopee';
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Style pour l'indication de scroll */
.bio-container .scroll-indication {
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
}

.lien-site{
    color: var(--color-tertiary);
    font-size: 1.3rem;

    font-weight: bold;
}

.page-indication {
    margin-top: auto;
    color: var(--color-tertiary);
    font-size: 0.9rem;
}

.timeline-header .scroll-indication {
    margin-bottom: -3rem;
}

.journee-content .scroll-indication {
    text-align: center;
    position: absolute;
    top: 0;
    left: 70%;
}

.phone-section .scroll-indication {
    text-align: fixed;
    position: absolute;
    top: -7rem;
    left: 45%;

}

.scroll-indication {
    text-align: center;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    display: block;
    font-family: 'Canopee';
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    display: block;
    font-size: 2rem;
    color: var(--color-accent);
}

.somaire .scroll-indication{
    margin-top: 10rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Style pour l'indication de clic sur les cartes */
.chapitre-card {
    position: relative;
}

.click-indication {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--color-secondary);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.chapitre-card:hover .click-indication {
    opacity: 1;
    font-weight: bold;
}

/* Style pour l'indication de survol des compétences */
.hover-indication {
    font-size: 0.9rem;
    color: var(--color-secondary);
    opacity: 0.7;
    margin-left: 1rem;
    font-style: italic;
}

.competence-item:hover .hover-indication {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.competence-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}