/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-realisations {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url(images/heart.png);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}
.hero-realisations::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 30, 0.65);
  z-index: 1;
}


/* Floating Elements */
.floating-element {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: rotate(15deg);
    opacity: 0;
}

#element1 {
    width: 80px;
    height: 120px;
    top: 15%;
    left: 10%;
    z-index: 1;
}

#element2 {
    width: 150px;
    height: 90px;
    bottom: 25%;
    right: 15%;
    transform: rotate(-10deg);
    z-index: 1;
}

#element3 {
    width: 100px;
    height: 70px;
    top: 40%;
    right: 25%;
    transform: rotate(25deg);
    z-index: 3;
}

#element4 {
    width: 130px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    transform: rotate(-20deg);
    z-index: 3;
}

#element5 {
    width: 90px;
    height: 110px;
    top: 35%;
    left: 30%;
    transform: rotate(5deg);
    z-index: 1;
}

/* Content Styling */
.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

/* Glitch Effect Title */
.glitch-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: white;
    text-shadow: 
        3px 3px 0px rgba(0, 255, 255, 0.7),
        -3px -3px 0px rgba(255, 0, 255, 0.7),
        1px -1px 0px rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #6a3093 0%, #a044ff 100%);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    padding: 15px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(30px);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(0, 255, 255, 0.5);
}

.cta-button .arrow {
    margin-left: 8px;
    display: inline-block;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.3);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(var(--rotation));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotation));
    }
    100% {
        transform: translateY(0) rotate(var(--rotation));
    }
}




/* Section Réalisations */
.realisations-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 0;
    background-color: #0a0e1a; /* Bleu nuit très sombre */
    overflow: hidden;
}

/* Particules en arrière-plan */
.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Container principal */
.container {
    display: flex;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Styles du carrousel */
.projets-carrousel {
    padding-bottom: 60px; /* Espace pour la pagination */
}

.swiper-pagination {
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.5;
    background-color: #cccccc;
    border-radius: 50%;
}

.swiper-pagination-bullet-active {
    width: 25px;
    opacity: 1;
    background-color: #6a3093;
    border-radius: 5px;
}

/* Grid layout pour les projets - CORRIGÉ */
.projets-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Styles des lignes de la grille - CORRIGÉ */
.grid-row {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Configurations spécifiques pour chaque type de ligne - CORRIGÉ */
.row-60-40 {
    grid-template-columns: 60% 40%;
}

.row-40-60 {
    grid-template-columns: 40% 60%;
}

.row-50-50 {
    grid-template-columns: 50% 50%;
}

/* Projet card styles */
.projet-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    /* SUPPRIMÉ: width qui causait des conflits */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

.projet-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Image du projet */
.projet-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.projet-card:hover .projet-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Contenu du projet */
.projet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}

/* Tags du projet */
.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.projet-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #6a3093;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* Titre du projet */
.projet-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    line-height: 1.2;
}

/* Date du projet */
.projet-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

/* Description du projet */
.projet-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.projets-carrousel {
    width: 100%;
    
    position: relative; /* Important pour le positionnement absolu des éléments internes */
}

/* Assurez-vous que chaque slide prend toute la largeur */
.swiper-slide {
    width: 100% !important; /* Force la largeur à 100% */
    opacity: 1 !important; /* Force l'opacité à 1 */
}

/* Assurez-vous que tous les éléments sont visibles par défaut */
.projet-card {
    opacity: 1; /* Les cartes sont visibles par défaut */
    transform: translateY(0); /* Position initiale normale */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Assurez-vous que le wrapper a une position correcte */
.swiper-wrapper {
    display: flex;
    align-items: stretch; /* Important pour que tous les slides aient la même hauteur */
    height: auto; /* Permet aux slides de définir leur propre hauteur */
}




/* Section Testimonial */
.testimonial-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    overflow: hidden;
}

/* Overlay semi-transparent */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Container principal */
.container-avis {
    position: relative;
    max-width: 1000px;
    width: 100%;
    z-index: 2;
}

/* Contenu du testimonial */
.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Barre décorative */
.decorative-bar {
    height: 4px;
    width: 80px;
    background-color: #8A3FFC; /* Couleur violette */
    margin-bottom: 25px;
    transform: scaleX(0); /* Initialement invisible */
    transform-origin: center;
    transition: transform 0.8s ease-out;
}

.testimonial-section.animate .decorative-bar {
    transform: scaleX(1); /* Animation complète */
}

/* Container de la citation */
.quote-container {
    position: relative;
    margin-bottom: 40px;
    opacity: 0; /* Initialement invisible */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s; /* Délai après la barre */
}

.testimonial-section.animate .quote-container {
    opacity: 1;
    transform: translateY(0);
}

/* Texte de la citation */
.quote-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

/* Guillemets stylisés */
.quote-mark {
    font-size: 3rem;
    color: #8A3FFC; /* Même couleur violette que la barre */
    position: absolute;
    line-height: 1;
}

.quote-mark.opening {
    top: -10px;
    left: 0;
}

.quote-mark.closing {
    bottom: -20px;
    right: 0;
}

/* Container de l'auteur */
.author-container {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Initialement invisible */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s; /* Délai après la citation */
}

.testimonial-section.animate .author-container {
    opacity: 1;
    transform: translateY(0);
}

/* Avatar de l'auteur */
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2C3E50; /* Fond bleu-gris foncé */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.author-avatar span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* Informations de l'auteur */
.author-info {
    text-align: left;
}

.author-name {
    color: #8A3FFc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.author-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Effet de survol */
.testimonial-content:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-out;
}

.testimonial-content:hover .decorative-bar,
.testimonial-content:hover .quote-mark {
    filter: brightness(1.2);
    transition: filter 0.3s ease-out;
}







/* Section CTA Final */
.cta-final {
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Container principal */
.container {
    max-width: 1200px;
    width: 100%;
}

/* Contenu CTA */
.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.cta-final.animate .cta-content {
    opacity: 1;
    transform: translateY(0);
}

/* Titre */
.cta-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Description */
.cta-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Container du bouton */
.cta-button-container {
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bouton CTA */
.cta-button-final {
    background-color: #6a3aef;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    height: 60px;
    position: relative;
    overflow: hidden;
    outline: none;
    
    /* États initiaux pour l'animation */
    width: 60px;
    opacity: 0;
    transform: scale(0);
    
    /* Transitions pour les animations */
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1), 
                background-color 0.3s ease, 
                transform 0.3s ease;
}

/* Animation d'entrée du bouton */
.cta-final.animate .cta-button-final{
    animation: buttonAppear 0.4s ease-out forwards 0.5s,
               buttonPulse 2s infinite 1.8s;
}

/* Animation d'expansion du bouton */
.cta-final.animate.button-expanded .cta-button-final{
    width: 250px;
}

/* Contenu du bouton (icône + texte) */
.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0 25px;
}

.cta-final.animate.button-expanded .button-content {
    opacity: 1;
}

/* Icône de fusée */
.rocket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    transform: rotate(-45deg);
}

/* Texte du bouton */
.button-text {
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Effet au survol du bouton */
.cta-button-final:hover {
    background-color: #7b4dff;
    transform: scale(1.05);
}

/* Animations keyframes */
@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(106, 58, 239, 0.6);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px rgba(106, 58, 239, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(106, 58, 239, 0.6);
    }
}

/* Responsivité */
@media (max-width: 992px) {
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-final.animate.button-expanded .cta-button-final{
        width: 230px;
    }
}

@media (max-width: 576px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }
    
    .cta-button-final {
        height: 50px;
        width: 50px;
    }
    
    .cta-final.animate.button-expanded .cta-button-final {
        width: 210px;
    }
    
    .button-content {
        padding: 0 20px;
    }
    
    .rocket-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .button-text {
        font-size: 0.9rem;
    }
}









/* Responsivité */
@media (max-width: 992px) {
    .quote-text {
        font-size: 1.8rem;
    }
    
    .quote-mark {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 80px 30px;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .quote-mark {
        font-size: 2.2rem;
    }
    
    .quote-mark.opening {
        top: -5px;
    }
    
    .quote-mark.closing {
        bottom: -15px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .testimonial-section {
        padding: 60px 25px;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
    
    .quote-mark {
        font-size: 2rem;
    }
}




/* Responsive design - CORRIGÉ */
@media (max-width: 992px) {
    .grid-row {
        grid-template-columns: 100% !important; /* Force une seule colonne */
    }
    
    .projet-card {
        min-height: 350px;
    }
    
    .projet-title {
        font-size: 1.5rem;
    }
    
    .projet-description {
        font-size: 0.9rem;
    }
    
    /* Pagination en mode mobile */
    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
    
    .swiper-pagination-bullet-active {
        width: 20px;
    }
}

@media (max-width: 576px) {
    .projet-content {
        padding: 20px;
    }
    
    .projet-title {
        font-size: 1.25rem;
    }
    
    .projet-tag {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}




/* Responsive Design */
@media (max-width: 992px) {
    .glitch-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .glitch-title {
        font-size: 2.5rem;
        text-shadow: 
            2px 2px 0px rgba(0, 255, 255, 0.7),
            -2px -2px 0px rgba(255, 0, 255, 0.7),
            1px -1px 0px rgba(255, 255, 255, 0.7);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .glitch-title {
        font-size: 2rem;
        text-shadow: 
            1.5px 1.5px 0px rgba(0, 255, 255, 0.7),
            -1.5px -1.5px 0px rgba(255, 0, 255, 0.7),
            0.5px -0.5px 0px rgba(255, 255, 255, 0.7);
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}