/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #121212;
    color: #fff;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

header.hidden {
    top: -100px; /* Hide the header by moving it up */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00bfff;
}

#theme-toggle {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

section {
    padding: 2rem;
    margin: 2rem 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
    transition: background-color 0.3s, color 0.3s;
}

section.dark-mode {
    background-color: #1f1f1f;
    color: #fff;
}

body.dark-mode section h2 {
    color: #fff; /* Couleur pour le thème sombre */
}

h2 {
    color: #000000;
    margin-bottom: 1rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: url('images/CUB2.png') no-repeat center center/cover;
}

.hero-content {
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00bfff;
    animation: fadeInDown 1s ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    animation: fadeInUp 1s ease-in-out;
}

.typing-effect {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00bfff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #00bfff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    animation: fadeInUp 1s ease-in-out;
}

.btn:hover {
    background-color: #009fff;
}

#presentation {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#presentation.dark-mode {
    background-color: #181818;
    color: #e0e0e0;
}

.presentation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.presentation-text {
    width: 100%;
    max-width: 1200px;
    line-height: 1.6;
}

.presentation-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.highlight-box, .location-highlight {
    background-color: #e9f5ff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-box.dark-mode, .location-highlight.dark-mode {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.highlight-box h3, .location-highlight h3 {
    margin-bottom: 0.5rem;
    color: #007BFF;
}

.inline-image {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s;
    cursor: pointer;
}

.inline-image:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .presentation-content {
        padding: 0 4rem;
    }
}

#schematique {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
    text-align: left;
}

#schematique.dark-mode {
    background-color: #181818;
    color: #e0e0e0;
}

.schematique-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.schema-item {
    text-align: center;
}

.schema-item h3 {
    margin-bottom: 1rem;
    color: #007BFF;
}

.schema-image {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1rem; /* Centrer l'image */
    transition: transform 0.3s;
    cursor: pointer;
}

.schema-image:hover {
    transform: scale(1.05);
}

.schema-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

#schematique.dark-mode .schema-description {
    color: #ccc;
}

#documentation {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
    text-align: left;
}

#documentation.dark-mode {
    background-color: #181818;
    color: #e0e0e0;
}

.documentation-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.category h3 {
    margin-bottom: 1rem;
    color: #007BFF;
}

.category ul {
    list-style-type: none;
    padding: 0;
}

.category ul li {
    margin-bottom: 0.5rem;
}

.category ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.category ul li a:hover {
    color: #007BFF;
}

#documentation.dark-mode .category {
    border-color: #444;
}

#documentation.dark-mode .category ul li a {
    color: #ccc;
}

.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Fond blanc pour une meilleure visibilité */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #333; /* Couleur visible sur fond blanc */
    cursor: pointer;
}
