/* COMMUN */

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --primary-color: rgb(255, 240, 253);
    --secondary-color: #ffffff;
}

body.dark {
    --bg-color: rgba(66, 66, 66, 0);
    --text-color: #f0f0f0;
    --primary-color: #3030308a;
    --secondary-color: #000000;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text-color);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: black;
    background: var(--bg-color);
    z-index: 1;
    position: relative;
}

.content-left {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    pointer-events: auto;
}

.content-right {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    pointer-events: auto;
}

.content-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: auto;
    text-align: center;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#shader-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
}

#hero {
    z-index: -1;
    font-size: 86px;
    background: var(--primary-color);
}

.bg {
    background: var(--primary-color);
    color: var(--text-color);
}

section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 2em;
    z-index: 1;
    pointer-events: auto;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    z-index: 1;
    pointer-events: auto;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background-color: transparent;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + label img {
    border: 2px solid #000;
}

.radio-option label {
    display: block;
    cursor: pointer;
    user-select: none;
}

.radio-option label img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
}

.radio-option label span {
    display: none;
}

/* Styles pour le texte des sections */
.section-text {
    max-width: 600px;
    line-height: 1.6;
    font-size: 1.2rem;
    margin-top: 20px;
}

h1, h2, h3, h4 {
    margin: 0;
}

h1 {
    font-size: 6rem;
    font-weight: 500;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 200;
    text-transform: uppercase;
}

h4 {
    font-size: 4rem;
    font-weight: 200;
    text-transform: uppercase;
}

a {
    color: black;
    text-decoration: none;
    z-index: 1;
    pointer-events: auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #0b3e27, #197149);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-titre {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f0f0;
}

.navbar-lien {
    display: flex;
    gap: 30px;
}

.navbar-lien a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar-lien a:hover {
    text-decoration: underline;
}

.banniere {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.banniere h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banniere .section-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.footer {
    background: linear-gradient(90deg, #0b3e27, #197149);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #5b5b5b;
}

.footer-bottom p {
    color: #d8d8d8;
    font-size: 0.9rem;
}

.footer-section img {
    width: 60px;
    margin-bottom: -10px;
}

.section-split {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.section-split .banniere {
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section-split .footer {
    height: 30%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-bottom {
    padding: 20px;
    margin-top: 0;
}


/* VISUALISATION */

#visualisation-section {
    position: relative;
    background-color: #f4f4f4;
    z-index: 1;
    height: 100vh;
}

#three-visualisation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
    z-index: 10;
}

#visualisation-section {
    display: block;
}

#three-visualisation {
    display: block;
    pointer-events: auto;
    z-index: 10;
}

.controls-form {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}