@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap');
@import url('https://fonts.googleapis.com/css?family=Poppins:500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}
h1 { 
    color: #fcfcfc;
    font-size: 28px;
    font-family: Gotham, Helvetica Neue, Helvetica, Arial," sans-serif";
    }

/* Contenu principal */
.main-content {
    display: flex;
    justify-content: space-between;
    padding: 100px 50px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Section réseaux sociaux */
.social-links {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 3;
}

/* Styles communs pour les animations */
.form-group, button[type="submit"], .social-item {
    opacity: 0;
    will-change: transform, opacity;
}

/* Animation des social-links */
.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-item:hover {
    transform: scale(1.05);
}

.social-item img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-item:hover img {
    transform: scale(1.1);
}

.social-item span {
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-item:hover span {
    transform: translateX(10px) scale(1.05);
}

/* Formulaire de contact */
.contact-form {
    width: 50%;
    padding: 45px;
    transform: translateY(10%);
    position: relative;
    z-index: 3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 3px solid #ffffff30;
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: cell;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #ffffffb0;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffffffda;
    transform: scale(1.02);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    padding: 15px;
}

.form-group:has(textarea) {
    margin-bottom: 30px;
}

button {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

button:hover {
    background: #fff;
    color: #000;
}

/* Titre Contact */
.big-title {
    position: fixed;
    bottom: -2%;
    left: 1em;
    font-family: 'Climate Crisis', sans-serif;
    font-size: 100px;
    color: #ffffffda;
    transition: all 0.3s ease;
    z-index: 3;
}

.big-title:hover {
    color: transparent;
    -webkit-text-stroke: 2px #ffffffda;
    opacity: 0.8;
}

/* Remplacer par le style exact de index.css */
.cursor{
    height: 50px;
    width: 50px;
    display: block;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    position: fixed;
    top: -25px;
    left: -25px;
    z-index: 999;
    opacity: 1;
    transition: scale .5s ease;
}

.cursor-small{
    height: 50px;
    width: 50px;
    display: block;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #fff;
    pointer-events: none;
    position: fixed;
    top: -25px;
    left: -25px;
    z-index: 999;
    opacity: 1;
    transition: scale .4s ease;
}

/* Media Queries */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 80px 20px;
    }

    .social-links,
    .contact-form {
        width: 100%;
    }

    .big-title {
        font-size: 80px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group.half {
        width: 100%;
    }
}

/* Styles du menu hamburger copiés de index.css */
#navigation-bar {
    position: fixed;
    height: 100px;
    width: 100%;
    z-index: 3;
    padding: 10px;
    background: transparent;
    overflow: hidden;
}

.menubar {
    position: absolute;
    right: 4%;
    top: 40%;
    cursor: cell;
    opacity: .8;
    transition: all .4s ease;
}

.menubar span {
    position: relative;
    display: block;
    background: transparent;
    height: 2px;
    width: 35px;
    margin: 8px;
}

.menubar span::before {
    content: "";
    position: absolute;
    height: 120%;
    width: 100%;
    top: 0;
    right: 0;
    background-color: #fff;
    transition: all .3s ease;
}

.menubar:hover .second-span::before,
.menubar:hover .first-span::before,
.menubar:hover .third-span::before {
    height: 100%;
}

.menubar:hover {
    opacity: 1;
}

#navigation-bar a {
    position: absolute;
    top: 35%;
    left: 2.5%;
    opacity: .8;
    transition: all .4s ease;
    cursor: cell;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    border: 5px solid #fcfcfc;
    animation: glitch-middle 3s infinite;
}

@keyframes glitch-middle {
    0%,26%,30%,72%,76%,100% { transform: translate(0em,0em) skew(0deg); box-shadow: none }
    30%,70% { transform: translate(0em,0em) skew(30deg); }
    29%,31%,69%,71% { transform: translate(0em,0em) skew(0deg); }
    28%,74% { box-shadow: -0.2em 0.1em 0 0 cyan, 0.2em -0.1em 0 0 magenta }
}

.close-first {
    transform: rotate(45deg);
}

.close-second {
    transform: rotate(-45deg);
}

/* Styles exacts copiés de index.css */
#breaker {
    height: 300vh;
    width: 120%;
    background-color: #fff;
    opacity: 1;
    animation: breakeranimate 1.5s linear;
    display: none;
    transition: all .4s ease;
    z-index: 10;
    transform: rotate(15deg);
    position: fixed;
    transform: translateY(-100%);
}

#breaker-two {
    height: 300vh;
    width: 120%;
    background-color: #fff;
    opacity: 1;
    animation: breakeranimate 1.5s linear;
    display: none;
    transition: all .4s ease;
    z-index: 10;
    transform: rotate(15deg);
    position: fixed;
    transform: translateY(-100%);
}

#navigation-content {
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 5;
    background-color: #020202;
    transform: translateY(-200%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo a {
    position: absolute;
    top: 3%;
    left: 2.5%;
    opacity: .8;
    z-index: 2;
    transition: all .4s ease;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    border: 5px solid #fcfcfc;
    animation: glitch-middle 3s infinite;
    cursor: cell;
}

.logo a:hover {
    opacity: 1;
}

.navigation-close {
    position: absolute;
    top: 6%;
    right: 4%;
    padding: 10px;
    cursor: cell;
    transition: all .3s ease;
    opacity: .8;
}

.navigation-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.close-first, .close-second {
    height: 0px;
    width: 35px;
    background-color: #fff;
    display: block;
    margin: -2px;
    cursor: cell;
    padding: 1px;
    border-radius: 20px;
}

.close-first {
    transform: rotate(45deg);
}

.close-second {
    transform: rotate(-45deg);
}

.navigation-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: poppins;
}

.navigation-links a {
    padding: 10px;
    text-decoration: none;
    color: rgba(252, 252, 252, 0);
    font-size: 40px;
    opacity: .7;
    -webkit-text-stroke: 1px #fcfcfc;
    transition: all .4s ease;
}

.navigation-links a:hover {
    opacity: 1;
    color: rgba(252, 252, 252, 1);
    -webkit-text-stroke: 0px;
}

.navigation-links a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    transform: translate(-50%, -50%);
    align-items: center;
    font-size: 9vw;
    font-weight: 400;
    font-family: "Climate Crisis", serif;
    color: rgb(255, 255, 255, .1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    letter-spacing: 100px;
    transition: all .4s ease;
}

.navigation-links a:hover::before {
    content: attr(data-text);
    opacity: 1;
    letter-spacing: 10px;
}

#header {
    background: #111010;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    animation: scale 0.8s ease;
    position: relative;
    display: block;
}

#navigation-bar {
    position: fixed;
    height: 100px;
    width: 100%;
    z-index: 3;
    padding: 10px;
    background: transparent;
    overflow: hidden;
}

#navigation-bar a:hover {
    opacity: 1;
}

.menubar {
    position: absolute;
    right: 4%;
    top: 40%;
    cursor: cell;
    opacity: .8;
    transition: all .4s ease;
}

.menubar span {
    position: relative;
    background-color: transparent;
    height: 3px;
    width: 20px;
    display: block;
    margin: 6px;
    border-radius: 20px;
}

.menubar .first-span {
    width: 35px;
}

.menubar .first-span::before {
    content: "";
    position: absolute;
    height: 120%;
    width: 100%;
    top: 0;
    right:0;
    background-color: #fff;
    transition: all .5s ease;
}

.menubar .second-span {
    width: 35px;
}

.menubar .second-span::before {
    content: "";
    position: absolute;
    height: 120%;
    width: 100%;
    top: 0;
    right: 0;
    background-color: #fff;
    transition: all .3s ease;
}

.menubar .third-span {
    width: 35px;
}

.menubar .third-span::before {
    content: "";
    position: absolute;
    height: 120%;
    width: 100%;
    top: 0;
    right: 0;
    background-color: #fff;
    transition: all .3s ease;
}

.menubar:hover .second-span::before,
.menubar:hover .first-span::before,
.menubar:hover .third-span::before {
    height: 100%;
}

.menubar:hover {
    opacity: 1;
}

@keyframes breakeranimate {
    0% { transform: translateX(-150%) rotate(15deg) translateY(-50%); }
    50% { transform: translateX(0%) rotate(15deg) translateY(-50%); }
    100% { transform: translateX(150%) rotate(15deg) translateY(-50%); }
}

@keyframes scale {
    0% { transform: scale(.6); }
    100% { transform: scale(1); }
}

/* Media Queries */
@media only screen and (max-width: 500px) {
    .header-content{
        height: 100vh;
        width: 100%;
        float: left;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: #fff;
        }    
    .navigation-links a { font-size: 20px; }
    .cursor { display: none; }
    #navigation-bar a {
        height: 80px;
        position: absolute;
        top: 15%;
        left: 2.5%;
        opacity: .8;
        transition: all .4s ease;
        display: none;
    }
    .header-content-box{
        padding-left: 0px;
        z-index: 2;
        text-align: center;
        }
    .logo a { display: none; }
}

@media all and (max-width: 800px) and (min-width: 500px) {
    .navigation-links a { font-size: 30px; }
    .cursor { display: none; }
}

@media all and (max-width: 9000px) and (min-width: 1441px) {
    .navigation-links a { font-size: 50px; }
}

/* Styles pour les animations du formulaire */
.form-group, button[type="submit"] {
    opacity: 0; /* Initialement caché */
    will-change: transform, opacity;
}

.social-item {
    opacity: 0;
    will-change: transform, opacity;
}

/* Style pour l'effet de bulle */
.form-group input,
.form-group textarea,
button[type="submit"] {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-group input:focus,
.form-group textarea:focus,
button[type="submit"]:hover {
    transform: scale(1.02);
}

/* Styles pour la validation */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
    animation: shake 0.5s;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

button[type="submit"].error {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
    animation: shake 0.5s;
}

button[type="submit"].success {
    background: #00c851;
    border-color: #00c851;
    color: white;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Cache le champ de manière subtile */
.additional-info {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* Styles pour le système de particules */
#canvas-container {
    position: fixed;
    top: 0;
    left: -19%;
    width: 50%;
    height: 100%;
    z-index: 1;
}

/* Cache les slides tout en les gardant accessibles pour le JS */
.slides {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}
