/* --- Thème Sombre Moderne avec Particules --- */

/* --- Variables de Couleur --- */
:root {
    --bg-color: #0f0f1a;
    --bg-gradient: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    --text-color: #f0f0f0;
    --primary-color: #a855f7; /* Violet vibrant */
    --primary-light: #c084fc;
    --primary-hover-color: #9333ea; /* Violet plus foncé */
    --accent-color: #64ffda; /* Turquoise pour les accents */
    --glass-bg: rgba(25, 20, 40, 0.6); /* Fond glassmorphism amélioré */
    --glass-border: rgba(255, 255, 255, 0.15);
    --menu-bg: rgba(15, 15, 30, 0.85);
    --menu-hover: rgba(168, 85, 247, 0.2);
}

/* --- Styles Généraux --- */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: var(--text-color);
    overflow: hidden; /* Empêche tout défilement */
    font-size: 18px;
    line-height: 1.7;
    text-align: center; /* Centrage par défaut */
}

/* Amélioration du scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.6);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover-color);
}

main {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-right: 180px; /* Espace augmenté pour le menu latéral */
    text-align: center; /* Centrage du contenu principal */
}

/* --- Fond de Particules --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Sections Pleine Page --- */
.full-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center; /* Centrage horizontal */
    align-items: center; /* Centrage vertical */
    padding: 5rem 2rem;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    pointer-events: none;
    transform: translateY(20px);
}

.full-page.active-section {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.content {
    max-width: 1200px;
    z-index: 3;
    position: relative;
    margin: 0 auto; /* Centrage automatique */
    width: 100%; /* Utilisation de toute la largeur disponible */
}

/* --- Menu Vertical Caché avec Bouton --- */
#wheel-nav {
    position: fixed;
    right: -250px; /* Caché par défaut */
    top: 0;
    height: 100%;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#wheel-nav.hidden {
    opacity: 0;
    pointer-events: none;
    right: -250px;
}

#wheel-nav.active {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}

.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(25, 20, 40, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    z-index: 1001;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    background: rgba(168, 85, 247, 0.3);
    transform: scale(1.1);
}

.menu-toggle.active {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .line {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.side-menu {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    gap: 5px;
}

.menu-item {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInMenu 0.5s forwards ease-out;
    animation-delay: calc(0.1s * var(--i, 0));
}

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-radius: 8px;
    margin: 0 10px;
}

.menu-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
}

.menu-item a .nav-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-light);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.menu-item a:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateX(5px);
}

.menu-item a:hover::before {
    transform: scaleY(1);
}

.menu-item a:hover .nav-icon {
    color: var(--accent-color);
    transform: scale(1.2);
}

.menu-item a.active {
    background: rgba(168, 85, 247, 0.3);
    color: var(--accent-color);
    font-weight: 600;
}

.menu-item a.active::before {
    transform: scaleY(1);
}

.menu-item a.active .nav-icon {
    color: var(--accent-color);
}

/* Logo dans le menu */
.menu-logo {
    margin: 20px 0 40px;
    text-align: center;
}

.menu-logo img {
    max-width: 80px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    transition: all 0.5s ease;
}

.menu-logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.8));
}

/* --- Refonte complète du Responsive Design --- */

/* Tablettes et petits écrans - Mode paysage */
@media (max-width: 1200px) {
    main {
        padding-right: 0; /* Suppression de l'espace réservé au menu */
    }
    
    .full-page {
        padding: 3rem 1.5rem;
    }
    
    .services-container,
    .tarifs-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    footer p {
        padding: 0;
    }
    
    /* Ajustement des sections de fond */
    .circle-decoration, 
    .geo {
        opacity: 0.08;
    }
}

/* Tablettes en mode portrait */
@media (max-width: 992px) {
    body {
        font-size: 17px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .service,
    .tarif-category {
        padding: 1.8rem;
    }
    
    .glass-container {
        padding: 2rem;
    }
    
    /* Ajustement des statistiques */
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    
    .stat-item {
        flex: 0 0 45%;
    }
    
    /* Gestion des sections du portfolio */
    .project-content {
        gap: 1.5rem;
    }
    
    /* Menu toggle position */
    .menu-toggle {
        top: 15px;
        right: 15px;
    }
    
    /* Empêcher les effets de hover sur tablette */
    .service:hover,
    .tarif-category:hover,
    .stat-item:hover {
        transform: translateY(-5px); /* Effet réduit */
    }
}

/* Appareils mobiles - Mode portrait */
@media (max-width: 768px) {
    /* Fondations */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    main {
        padding: 0;
        overflow: hidden;
    }
    
    /* Typographie */
    h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    h2::after {
        bottom: -8px;
        height: 2px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    /* Structure des sections */
    .full-page {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 70px; /* Espace pour le bouton de menu */
    }
    
    .content {
        padding-bottom: 60px; /* Espace pour le footer */
    }
    
    /* Conteneurs */
    .glass-container {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    /* Services */
    .services-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service {
        padding: 1.5rem;
        transform: none !important; /* Désactivation des effets de survol */
    }
    
    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        padding: 1.3rem;
        transform: none !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Partenariat */
    .partnership-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .partner-logo img {
        max-width: 70px;
    }
    
    .plus-icon {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    /* Portfolio */
    .project-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-description {
        padding: 1.2rem !important;
        order: 2; /* Description après l'iframe sur mobile */
    }
    
    .project-iframe-container {
        order: 1; /* iframe avant la description sur mobile */
        height: 0;
        padding-bottom: 65%; /* Ratio adapté au mobile */
    }
    
    /* Tarifs */
    .tarifs-tabs {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .tarif-tab {
        width: 100%;
        min-width: auto;
        padding: 10px 15px;
    }
    
    .tarif-tab.active::after {
        display: none; /* Supprimer la flèche qui peut causer des problèmes sur mobile */
    }
    
    .tarifs-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tarif-category {
        padding: 1.2rem !important;
        transform: none !important;
    }
    
    .tarif-category h3 {
        font-size: 1.2rem !important;
    }
    
    .tarif-item {
        padding: 0.6rem 0;
    }
    
    /* Descriptions au survol - Adaptation tactile */
    .tarif-description {
        width: 90%;
        max-width: 280px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Contact */
    .map-container {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .map-container iframe {
        height: 100%;
    }
    
    .contact-details li {
        margin-bottom: 0.8rem;
    }
    
    /* Boutons */
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Menu Navigation */
    #wheel-nav {
        width: 100%;
        right: -100%;
        justify-content: flex-start;
        padding-top: 70px;
    }
    
    #wheel-nav.active {
        right: 0;
    }
    
    .menu-item {
        margin: 3px 0;
    }
    
    .menu-item a {
        padding: 12px 20px;
        font-size: 1.1rem;
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .menu-item a .nav-icon {
        font-size: 1.3rem;
    }
    
    .menu-logo {
        margin: 10px 0 30px;
    }
    
    .menu-logo img {
        max-width: 70px;
    }
    
    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        z-index: 1002; /* Au-dessus de tout */
    }
    
    /* Footer */
    footer {
        padding: 10px 0;
    }
    
    footer p {
        padding: 0;
        font-size: 0.8rem;
    }
}

/* Correction d'urgence : afficher le contenu même si .hidden est présent */
.content.hidden {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Petits téléphones */
@media (max-width: 480px) {
    /* Typographie */
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    /* Structure */
    .full-page {
        padding: 1.2rem 0.8rem;
        padding-top: 65px;
    }
    
    /* Conteneurs */
    .glass-container {
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    /* Logo */
    .logo {
        max-width: 120px;
    }
    
    /* Services */
    .service {
        padding: 1.2rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* Menu & Navigation */
    .menu-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        width: 20px;
        height: 16px;
    }
    
    .menu-item a {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    /* Tarifs */
    .tarif-description {
        width: 85%;
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Éléments de fond */
    .tech-symbol {
        font-size: 100px;
        opacity: 0.05;
    }
    
    .geo,
    .circle-decoration,
    .glow-orb {
        opacity: 0.03;
    }
    
    /* Animation code */
    .code-line {
        font-size: 12px;
    }
}

/* Mode paysage sur mobile */
@media (max-height: 600px) and (orientation: landscape) {
    /* Structure */
    .full-page {
        height: auto;
        min-height: 100vh;
        padding: 1rem;
        padding-top: 60px;
        padding-bottom: 50px;
        overflow-y: auto;
    }
    
    /* Contenu */
    h1 {
        font-size: 2.2rem;
        margin: 0.5rem 0;
    }
    
    h2 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    
    .tagline {
        margin-bottom: 1rem;
    }
    
    .content {
        padding-bottom: 50px;
    }
    
    /* Stats en ligne */
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        padding: 1rem;
        flex: 0 0 45%;
    }
    
    /* Menu */
    .menu-logo {
        margin-bottom: 15px;
    }
    
    .menu-logo img {
        max-width: 60px;
    }
    
    #wheel-nav {
        padding-top: 60px;
    }
    
    .menu-item {
        margin: 2px 0;
    }
    
    .menu-item a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .menu-item a .nav-icon {
        font-size: 1.1rem;
    }
    
    /* Services & Tarifs */
    .service, 
    .tarif-category {
        padding: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 8px 0;
    }
}

/* Correction pour les très petits écrans comme iPhone SE */
@media (max-width: 375px) {
    /* Typographie */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Tarifs */
    .tarif-item {
        flex-wrap: wrap;
    }
    
    .service-name {
        width: 100%;
        margin-bottom: 0.3rem;
    }
    
    .price {
        margin-left: auto;
    }
    
    /* Menu */
    .menu-item a {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
    
    .menu-item a .nav-icon {
        margin-right: 10px;
    }
}

/* --- Styles adaptés pour les appareils à haute densité de pixels --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-container {
        border-width: 0.5px; /* Bordures plus fines pour les écrans haute résolution */
    }
    
    .menu-item a::before {
        width: 2px; /* Ligne plus fine */
    }
    
    .tarif-description::after {
        width: 8px;
        height: 8px;
    }
}

/* --- Correction spécifique pour iPad et tablettes --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tarifs-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-toggle {
        top: 20px;
        right: 20px;
    }
    
    #wheel-nav {
        width: 50%;
        right: -50%;
    }
}

/* --- Fond de Particules --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Sections Pleine Page --- */
.full-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center; /* Centrage horizontal */
    align-items: center; /* Centrage vertical */
    padding: 5rem 2rem;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    pointer-events: none;
    transform: translateY(20px);
}

.full-page.active-section {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.content {
    max-width: 1200px;
    z-index: 3;
    position: relative;
    margin: 0 auto; /* Centrage automatique */
    width: 100%; /* Utilisation de toute la largeur disponible */
}

/* --- Menu Latéral Amélioré --- */
#wheel-nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centrage des éléments du menu */
    z-index: 1000;
    background-color: var(--menu-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu {
    position: relative;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.menu-item {
    margin: 10px 0;
    width: 90%;
    text-align: left; /* Le texte du menu est aligné à gauche */
}

.menu-item a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item a:hover {
    background-color: var(--menu-hover);
    color: var(--primary-light);
    transform: translateX(5px);
}

.menu-item a:hover::before {
    transform: scaleY(1);
}

.menu-item a.active {
    color: var(--accent-color);
    background-color: var(--menu-hover);
    font-weight: 600;
}

.menu-item a.active::before {
    transform: scaleY(1);
}

/* Logo dans le menu */
.menu-logo {
    margin-bottom: 40px;
    padding: 0 15px;
    text-align: center;
}

.menu-logo img {
    max-width: 80px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

/* --- Effet "Glassmorphism" amélioré --- */
.glass-container {
    background: var(--glass-bg);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto; /* Centrage automatique */
    text-align: center; /* Centrage du texte */
}

/* --- Styles des Composants --- */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center; /* Centrage des titres */
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    text-align: center; /* Centrage des sous-titres */
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%); /* Centrage de la ligne de décoration */
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
}

/* --- Section Services améliorée --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto 0; /* Centrage avec marge */
    text-align: left;
    max-width: 1200px; /* Largeur maximale */
}

.service {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    text-align: left; /* Le contenu du service est aligné à gauche */
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(168, 85, 247, 0.15), rgba(100, 255, 218, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.25);
}

.service:hover::before {
    opacity: 1;
}

.service h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.service h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.service:hover h3::after {
    width: 80px;
}

/* --- Section À Propos --- */
.about-content {
    margin: 0 auto 2rem; /* Centrage avec marge */
    text-align: left;
    max-width: 1000px; /* Largeur maximale */
}

/* --- Section À Propos - Statistiques --- */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 3rem auto 0; /* Centrage avec marge */
    gap: 1.5rem;
    max-width: 1000px; /* Largeur maximale */
}

.stat-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transition: text-shadow 0.3s ease;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

/* --- Section Contact --- */
.contact-section {
    max-width: 800px;
    margin: 2rem auto 0; /* Centrage avec marge */
    text-align: center;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
    text-align: center;
}

/* --- Bouton CTA --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    margin: 2rem auto 0; /* Centrage avec marge */
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--primary-hover-color), var(--primary-color));
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

/* --- Styles pour l'animation de code en arrière-plan --- */
#code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    color: rgba(100, 255, 218, 0.3);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0);
    animation: typeLine 8s linear forwards;
    text-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
}

@keyframes typeLine {
    0% {
        opacity: 0;
        width: 0;
    }
    5% {
        opacity: 0.7;
        width: 0;
    }
    20% {
        width: 100%;
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
        width: 100%;
    }
    100% {
        opacity: 0;
        width: 100%;
    }
}

/* Assurer que les animations ne gênent pas le contenu */
#particles-js {
    z-index: -1;
}

/* --- Section Accueil améliorée --- */
#accueil .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

#accueil p {
    margin: 0.5rem auto;
    max-width: 700px;
}

/* --- Section Partenariat - Ajustement des logos --- */
.partnership-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.partner-logo img {
    max-width: 80px; /* Réduction de la taille des logos */
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

/* --- Section Portfolio - Amélioration des iframes --- */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem auto;
    align-items: center;
}

.project-description {
    text-align: left;
}

.project-iframe-container {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Ratio 4:3 pour l'iframe */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-iframe-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.2);
}

.project-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Optimisation de la section Portfolio pour tout afficher sur une page --- */
#portfolio .content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

#portfolio h2 {
    margin-bottom: 0.8rem;
}

#portfolio > .content > p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.project {
    margin-bottom: 1rem;
    width: 100%;
}

.project h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.8rem auto;
    align-items: center;
    height: auto;
}

.project-description {
    text-align: left;
    padding: 1rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-description p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-features {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    text-align: left;
}

.project-features li {
    margin-bottom: 0.3rem;
}

.project-iframe-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 pour l'iframe */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-iframe-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.2);
}

.project-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .project-description {
        padding: 0.8rem !important;
    }
    
    .project-iframe-container {
        padding-bottom: 60%; /* Ratio adapté pour mobile */
    }
}

/* --- Fix pour le media query dupliqué --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .stats-container {
        flex-direction: column;
    }

    .partnership-content {
        flex-direction: column;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    #wheel-nav {
        width: 80px;
    }
    
    .menu-item a {
        padding: 10px 15px;
        font-size: 14px;
        justify-content: center;
    }
    
    main {
        padding-right: 80px;
    }
    
    .partner-logo img {
        max-width: 60px; /* Logos encore plus petits sur mobile */
    }
    
    .project-iframe-container {
        padding-bottom: 90%; /* Ratio plus carré sur mobile */
    }
}

/* --- Section Tarifs améliorée --- */
.tarifs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin: 2rem auto;
    width: 100%;
    padding-bottom: 1rem;
    max-width: 100vw; /* Limite la largeur au viewport */
    overflow-x: auto; /* Permet le scroll horizontal si besoin */
    box-sizing: border-box;
}

.tarif-category {
    max-width: 420px; /* Limite la largeur d'une carte */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--glass-bg);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--primary-color); /* bordure colorée */
    padding: 2rem 1.5rem !important;
    margin-bottom: 0 !important;
    height: auto !important;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    z-index: 1;
}

.tarif-category:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 18px 60px rgba(168, 85, 247, 0.28);
    border-color: var(--accent-color); /* bordure turquoise au survol */
}

.tarif-category h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.2rem !important;
    font-size: 1.3rem !important;
    position: relative;
    text-align: center;
    padding-bottom: 0.8rem;
}

.tarif-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Gardons les onglets améliorés sans modifier l'affichage des tarifs */
.tarifs-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem auto 2rem;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    max-width: 600px;
}

/* Mise en page des items de tarif à l'intérieur des cartes */
.tarif-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem !important;
    flex-wrap: wrap; /* Permet le retour à la ligne si trop long */
}

.tarif-item:last-child {
    border-bottom: none;
}

.service-name {
    flex-grow: 1;
    padding-right: 0.8rem;
    text-align: left;
}

.price {
    font-weight: bold;
    color: var(--accent-color);
    white-space: nowrap;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    padding: 0.2rem 0.6rem !important;
    font-size: 0.9rem !important;
}

/* Optimisation de la note en bas */
.tarif-note {
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem !important;
    margin: 2rem auto 0 !important;
    max-width: 800px;
    position: static !important;
}

/* Onglets de sélection PC/Téléphone */
.tarif-switch {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.tarif-switch-btn {
    background: rgba(168,85,247,0.08);
    color: var(--primary-color);
    border: none;
    border-radius: 14px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tarif-switch-btn.active,
.tarif-switch-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Affichage conditionnel des tarifs */
.tarif-device {
    display: none;
}
.tarif-device.active {
    display: block;
}

/* Centrage et adaptation sur une page */
.tarifs-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 2rem 1rem;
    background: var(--glass-bg, rgba(25, 20, 40, 0.6));
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.15));
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .tarifs-section {
        padding: 1.2rem 0.5rem;
    }
}

@media (max-width: 600px) {
    .tarif-switch {
        flex-direction: column;
        gap: 0.7rem;
    }
    .tarifs-section {
        border-radius: 14px;
        padding: 0.7rem 0.2rem;
    }

    
    footer p {
        padding: 0;
    }
    
    /* Ajustement des sections de fond */
    .circle-decoration, 
    .geo {
        opacity: 0.08;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 17px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .service,
    .tarif-category {
        padding: 1.8rem;
    }
    
    .glass-container {
        padding: 2rem;
    }
    
    /* Ajustement des statistiques */
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    
    .stat-item {
        flex: 0 0 45%;
    }
    
    /* Gestion des sections du portfolio */
    .project-content {
        gap: 1.5rem;
    }
    
    /* Menu toggle position */
    .menu-toggle {
        top: 15px;
        right: 15px;
    }
    
    /* Empêcher les effets de hover sur tablette */
    .service:hover,
    .tarif-category:hover,
    .stat-item:hover {
        transform: translateY(-5px); /* Effet réduit */
    }
}

/* Appareils mobiles - Mode portrait */
@media (max-width: 768px) {
    /* Fondations */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    main {
        padding: 0;
        overflow: hidden;
    }
    
    /* Typographie */
    h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    h2::after {
        bottom: -8px;
        height: 2px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    /* Structure des sections */
    .full-page {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 70px; /* Espace pour le bouton de menu */
    }
    
    .content {
        padding-bottom: 60px; /* Espace pour le footer */
    }
    
    /* Conteneurs */
    .glass-container {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    /* Services */
    .services-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service {
        padding: 1.5rem;
        transform: none !important; /* Désactivation des effets de survol */
    }
    
    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        padding: 1.3rem;
        transform: none !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Partenariat */
    .partnership-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .partner-logo img {
        max-width: 70px;
    }
    
    .plus-icon {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    /* Portfolio */
    .project-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-description {
        padding: 1.2rem !important;
        order: 2; /* Description après l'iframe sur mobile */
    }
    
    .project-iframe-container {
        order: 1; /* iframe avant la description sur mobile */
        height: 0;
        padding-bottom: 65%; /* Ratio adapté au mobile */
    }
    
    /* Tarifs */
    .tarifs-tabs {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .tarif-tab {
        width: 100%;
        min-width: auto;
        padding: 10px 15px;
    }
    
    .tarif-tab.active::after {
        display: none; /* Supprimer la flèche qui peut causer des problèmes sur mobile */
    }
    
    .tarifs-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tarif-category {
        padding: 1.2rem !important;
        transform: none !important;
    }
    
    .tarif-category h3 {
        font-size: 1.2rem !important;
    }
    
    .tarif-item {
        padding: 0.6rem 0;
    }
    
    /* Descriptions au survol - Adaptation tactile */
    .tarif-description {
        width: 90%;
        max-width: 280px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Contact */
    .map-container {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .map-container iframe {
        height: 100%;
    }
    
    .contact-details li {
        margin-bottom: 0.8rem;
    }
    
    /* Boutons */
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Menu Navigation */
    #wheel-nav {
        width: 100%;
        right: -100%;
        justify-content: flex-start;
        padding-top: 70px;
    }
    
    #wheel-nav.active {
        right: 0;
    }
    
    .menu-item {
        margin: 3px 0;
    }
    
    .menu-item a {
        padding: 12px 20px;
        font-size: 1.1rem;
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .menu-item a .nav-icon {
        font-size: 1.3rem;
    }
    
    .menu-logo {
        margin: 10px 0 30px;
    }
    
    .menu-logo img {
        max-width: 70px;
    }
    
    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        z-index: 1002; /* Au-dessus de tout */
    }
    
    /* Footer */
    footer {
        padding: 10px 0;
    }
    
    footer p {
        padding: 0;
        font-size: 0.8rem;
    }
}

/* --- Ajustements finaux pour éviter les débordements --- */

/* Éléments de constellation */
.constellation-dot {
    position: absolute;
    width: 2px; /* Réduit pour éviter les débordements */
    height: 2px; /* Réduit pour éviter les débordements */
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.5; /* Opacité réduite */
    animation: twinkle 4s infinite alternate ease-in-out;
    transform-origin: center;
}

.constellation-dot:nth-child(2n) {
    animation-duration: 6s;
    animation-delay: 1s;
}

.constellation-dot:nth-child(3n) {
    animation-duration: 5s;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6; /* Valeur réduite */
        transform: scale(1.3); /* Valeur réduite */
    }
}

/* Amélioration des symboles tech - Redimensionnement contrôlé */
.symbol4 {
    top: 75%;
    left: 15%;
    transform: rotate(-8deg);
    font-size: clamp(60px, 10vw, 120px); /* Taille adaptative réduite */
    max-width: 30vw; /* Limite la largeur */
    overflow: hidden; /* Empêche le débordement */
    white-space: nowrap; /* Évite les retours à la ligne */
    text-overflow: ellipsis; /* Ajoute des points de suspension si nécessaire */
}

.symbol5 {
    top: 40%;
    right: 20%;
    transform: rotate(5deg);
    font-size: clamp(60px, 10vw, 160px); /* Taille adaptative ajustée */
    max-width: 40vw; /* Limite la largeur */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.symbol6 {
    bottom: 20%;
    right: 25%;
    transform: rotate(-5deg);
    font-size: clamp(50px, 8vw, 110px); /* Taille adaptative réduite */
    max-width: 30vw; /* Limite la largeur */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Ajustements supplémentaires pour éviter les débordements */
.tech-symbol {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    max-width: 40vw; /* Limite commune pour tous les symboles */
    max-height: 40vh; /* Limite commune pour tous les symboles */
    overflow: hidden;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Amélioration des éléments géométriques */
.geo {
    max-width: min(150px, 25vw);
    max-height: min(150px, 25vh);
    overflow: hidden;
}

.cube {
    width: min(120px, 20vw);
    height: min(120px, 20vw);
    top: 15%;
    right: 10%;
}

.pyramid {
    border-left-width: min(60px, 10vw);
    border-right-width: min(60px, 10vw);
    border-bottom-width: min(120px, 20vw);
    bottom: 15%;
    left: 10%;
}

.sphere {
    width: min(100px, 15vw);
    height: min(100px, 15vw);
    top: 70%;
    right: 15%;
}

.torus {
    width: min(120px, 20vw);
    height: min(120px, 20vw);
    border-width: min(10px, 2vw);
    top: 40%;
    left: 15%;
}

/* Correction des orbes qui peuvent déborder */
.glow-orb {
    max-width: min(300px, 50vw);
    max-height: min(300px, 50vh);
    overflow: hidden;
}

.orb1 {
    width: min(250px, 40vw);
    height: min(250px, 40vh);
}

.orb2 {
    width: min(350px, 45vw);
    height: min(350px, 45vh);
}

.orb3 {
    width: min(200px, 35vw);
    height: min(200px, 35vh);
}

.orb4 {
    width: min(250px, 40vw);
    height: min(250px, 40vh);
}

/* Étoiles filantes - Ajustement pour éviter les débordements */
.shooting-star {
    max-width: min(80px, 15vw);
    overflow: hidden;
}

/* Conteneurs principaux - Garantir l'absence de débordement */
.full-page {
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.content {
    max-width: min(1200px, 92vw); /* Légèrement réduit pour garantir les marges */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Correction des conteneurs qui pourraient déborder */
.glass-container {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Réduire davantage les éléments d'arrière-plan sur mobile */
@media (max-width: 768px) {
    .tech-symbol {
        font-size: clamp(40px, 8vw, 90px);
        opacity: 0.04; /* Encore plus transparent sur mobile */
        max-width: 30vw;
        max-height: 30vh;
    }
    
    .geo, 
    .circle-decoration,
    .glow-orb {
        opacity: 0.02; /* Encore plus transparent sur mobile */
        transform: scale(0.6);
        max-width: 40vw;
        max-height: 40vh;
    }
    
    /* Désactiver certaines animations pour améliorer les performances */
    .shooting-star,
    .constellation-dot {
        display: none; /* Cacher les éléments moins essentiels sur mobile */
    }
    
    .circle-decoration {
        width: min(200px, 40vw);
        height: min(200px, 40vh);
    }
    
    /* Limiter la taille des symboles sur petits écrans */
    .symbol4, .symbol5, .symbol6 {
        font-size: clamp(40px, 7vw, 80px);
    }
}

/* Ajuster la position des éléments décoratifs pour qu'ils ne débordent pas */
@media (max-width: 480px) {
    .symbol1, .symbol4 {
        left: 2%;
    }
    
    .symbol2, .symbol5 {
        right: 2%;
    }
    
    .symbol3, .symbol6 {
        left: 5%;
        right: auto;
    }
    
    .circle1 {
        left: -15%;
        top: -15%;
    }
    
    .circle2 {
        right: -15%;
        bottom: -15%;
    }
}


h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%); /* Centrage de la ligne de décoration */
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
}

/* --- Section Services améliorée --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto 0; /* Centrage avec marge */
    text-align: left;
    max-width: 1200px; /* Largeur maximale */
}

.service {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    text-align: left; /* Le contenu du service est aligné à gauche */
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(168, 85, 247, 0.15), rgba(100, 255, 218, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.25);
}

.service:hover::before {
    opacity: 1;
}

.service h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.service h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.service:hover h3::after {
    width: 80px;
}

/* --- Section À Propos --- */
.about-content {
    margin: 0 auto 2rem; /* Centrage avec marge */
    text-align: left;
    max-width: 1000px; /* Largeur maximale */
}

/* --- Section À Propos - Statistiques --- */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 3rem auto 0; /* Centrage avec marge */
    gap: 1.5rem;
    max-width: 1000px; /* Largeur maximale */
}

.stat-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transition: text-shadow 0.3s ease;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

/* --- Section Contact --- */
.contact-section {
    max-width: 800px;
    margin: 2rem auto 0; /* Centrage avec marge */
    text-align: center;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
    text-align: center;
}

/* --- Bouton CTA --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    margin: 2rem auto 0; /* Centrage avec marge */
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--primary-hover-color), var(--primary-color));
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

/* --- Styles pour l'animation de code en arrière-plan --- */
#code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    color: rgba(100, 255, 218, 0.3);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0);
    animation: typeLine 8s linear forwards;
    text-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
}

@keyframes typeLine {
    0% {
        opacity: 0;
        width: 0;
    }
    5% {
        opacity: 0.7;
        width: 0;
    }
    20% {
        width: 100%;
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
        width: 100%;
    }
    100% {
        opacity: 0;
        width: 100%;
    }
}

/* Assurer que les animations ne gênent pas le contenu */
#particles-js {
    z-index: -1;
}

/* --- Section Accueil améliorée --- */
#accueil .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

#accueil p {
    margin: 0.5rem auto;
    max-width: 700px;
}

/* --- Section Partenariat - Ajustement des logos --- */
.partnership-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.partner-logo img {
    max-width: 80px; /* Réduction de la taille des logos */
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

/* --- Section Portfolio - Amélioration des iframes --- */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem auto;
    align-items: center;
}

.project-description {
    text-align: left;
}

.project-iframe-container {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Ratio 4:3 pour l'iframe */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-iframe-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.2);
}

.project-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Optimisation de la section Portfolio pour tout afficher sur une page --- */
#portfolio .content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

#portfolio h2 {
    margin-bottom: 0.8rem;
}

#portfolio > .content > p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.project {
    margin-bottom: 1rem;
    width: 100%;
}

.project h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.8rem auto;
    align-items: center;
    height: auto;
}

.project-description {
    text-align: left;
    padding: 1rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-description p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-features {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    text-align: left;
}

.project-features li {
    margin-bottom: 0.3rem;
}

.project-iframe-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 pour l'iframe */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-iframe-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.2);
}

.project-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .project-description {
        padding: 0.8rem !important;
    }
    
    .project-iframe-container {
        padding-bottom: 60%; /* Ratio adapté pour mobile */
    }
}

/* --- Fix pour le media query dupliqué --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .stats-container {
        flex-direction: column;
    }

    .partnership-content {
        flex-direction: column;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    #wheel-nav {
        width: 80px;
    }
    
    .menu-item a {
        padding: 10px 15px;
        font-size: 14px;
        justify-content: center;
    }
    
    main {
        padding-right: 80px;
    }
    
    .partner-logo img {
        max-width: 60px; /* Logos encore plus petits sur mobile */
    }
    
    .project-iframe-container {
        padding-bottom: 90%; /* Ratio plus carré sur mobile */
    }
}

/* --- Section Tarifs améliorée --- */
.tarifs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin: 2rem auto;
    width: 100%;
    padding-bottom: 1rem;
    max-width: 100vw; /* Limite la largeur au viewport */
    overflow-x: auto; /* Permet le scroll horizontal si besoin */
    box-sizing: border-box;
}

.tarif-category {
    max-width: 420px; /* Limite la largeur d'une carte */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--glass-bg);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--primary-color); /* bordure colorée */
    padding: 2rem 1.5rem !important;
    margin-bottom: 0 !important;
    height: auto !important;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    z-index: 1;
}

.tarif-category:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 18px 60px rgba(168, 85, 247, 0.28);
    border-color: var(--accent-color); /* bordure turquoise au survol */
}

.tarif-category h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.2rem !important;
    font-size: 1.3rem !important;
    position: relative;
    text-align: center;
    padding-bottom: 0.8rem;
}

.tarif-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Gardons les onglets améliorés sans modifier l'affichage des tarifs */
.tarifs-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem auto 2rem;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    max-width: 600px;
}

/* Mise en page des items de tarif à l'intérieur des cartes */
.tarif-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem !important;
    flex-wrap: wrap; /* Permet le retour à la ligne si trop long */
}

.tarif-item:last-child {
    border-bottom: none;
}

.service-name {
    flex-grow: 1;
    padding-right: 0.8rem;
    text-align: left;
}

.price {
    font-weight: bold;
    color: var(--accent-color);
    white-space: nowrap;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    padding: 0.2rem 0.6rem !important;
    font-size: 0.9rem !important;
}

/* Optimisation de la note en bas */
.tarif-note {
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem !important;
    margin: 2rem auto 0 !important;
    max-width: 800px;
    position: static !important;
}

/* --- Améliorations Responsive --- */
@media (max-width: 1200px) {
    main {
        padding-right: 0; /* Suppression de l'espace réservé au menu */
    }
    
    .full-page {
        padding: 3rem 1.5rem;
    }
    
    .services-container,
    .tarifs-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    footer p {
        padding: 0;
    }
    
    /* Ajustement des sections de fond */
    .circle-decoration, 
    .geo {
        opacity: 0.08;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 17px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .service,
    .tarif-category {
        padding: 1.8rem;
    }
    
    .glass-container {
        padding: 2rem;
    }
    
    /* Ajustement des statistiques */
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    
    .stat-item {
        flex: 0 0 45%;
    }
    
    /* Gestion des sections du portfolio */
    .project-content {
        gap: 1.5rem;
    }
    
    /* Menu toggle position */
    .menu-toggle {
        top: 15px;
        right: 15px;
    }
    
    /* Empêcher les effets de hover sur tablette */
    .service:hover,
    .tarif-category:hover,
    .stat-item:hover {
        transform: translateY(-5px); /* Effet réduit */
    }
}

/* Appareils mobiles - Mode portrait */
@media (max-width: 768px) {
    /* Fondations */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    main {
        padding: 0;
        overflow: hidden;
    }
    
    /* Typographie */
    h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    h2::after {
        bottom: -8px;
        height: 2px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    /* Structure des sections */
    .full-page {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 70px; /* Espace pour le bouton de menu */
    }
    
    .content {
        padding-bottom: 60px; /* Espace pour le footer */
    }
    
    /* Conteneurs */
    .glass-container {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    /* Services */
    .services-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service {
        padding: 1.5rem;
        transform: none !important; /* Désactivation des effets de survol */
    }
    
    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        padding: 1.3rem;
        transform: none !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Partenariat */
    .partnership-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .partner-logo img {
        max-width: 70px;
    }
    
    .plus-icon {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    /* Portfolio */
    .project-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-description {
        padding: 1.2rem !important;
        order: 2; /* Description après l'iframe sur mobile */
    }
    
    .project-iframe-container {
        order: 1; /* iframe avant la description sur mobile */
        height: 0;
        padding-bottom: 65%; /* Ratio adapté au mobile */
    }
    
    /* Tarifs */
    .tarifs-tabs {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .tarif-tab {
        width: 100%;
        min-width: auto;
        padding: 10px 15px;
    }
    
    .tarif-tab.active::after {
        display: none; /* Supprimer la flèche qui peut causer des problèmes sur mobile */
    }
    
    .tarifs-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tarif-category {
        padding: 1.2rem !important;
        transform: none !important;
    }
    
    .tarif-category h3 {
        font-size: 1.2rem !important;
    }
    
    .tarif-item {
        padding: 0.6rem 0;
    }
    
    /* Descriptions au survol - Adaptation tactile */
    .tarif-description {
        width: 90%;
        max-width: 280px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Contact */
    .map-container {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .map-container iframe {
        height: 100%;
    }
    
    .contact-details li {
        margin-bottom: 0.8rem;
    }
    
    /* Boutons */
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Menu Navigation */
    #wheel-nav {
        width: 100%;
        right: -100%;
        justify-content: flex-start;
        padding-top: 70px;
    }
    
    #wheel-nav.active {
        right: 0;
    }
    
    .menu-item {
        margin: 3px 0;
    }
    
    .menu-item a {
        padding: 12px 20px;
        font-size: 1.1rem;
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .menu-item a .nav-icon {
        font-size: 1.3rem;
    }
    
    .menu-logo {
        margin: 10px 0 30px;
    }
    
    .menu-logo img {
        max-width: 70px;
    }
    
    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        z-index: 1002; /* Au-dessus de tout */
    }
    
    /* Footer */
    footer {
        padding: 10px 0;
    }
    
    footer p {
        padding: 0;
        font-size: 0.8rem;
    }
}

/* --- Ajustements finaux pour éviter les débordements --- */

/* Éléments de constellation */
.constellation-dot {
    position: absolute;
    width: 2px; /* Réduit pour éviter les débordements */
    height: 2px; /* Réduit pour éviter les débordements */
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.5; /* Opacité réduite */
    animation: twinkle 4s infinite alternate ease-in-out;
    transform-origin: center;
}

.constellation-dot:nth-child(2n) {
    animation-duration: 6s;
    animation-delay: 1s;
}

.constellation-dot:nth-child(3n) {
    animation-duration: 5s;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6; /* Valeur réduite */
        transform: scale(1.3); /* Valeur réduite */
    }
}

/* Amélioration des symboles tech - Redimensionnement contrôlé */
.symbol4 {
    top: 75%;
    left: 15%;
    transform: rotate(-8deg);
    font-size: clamp(60px, 10vw, 120px); /* Taille adaptative réduite */
    max-width: 30vw; /* Limite la largeur */
    overflow: hidden; /* Empêche le débordement */
    white-space: nowrap; /* Évite les retours à la ligne */
    text-overflow: ellipsis; /* Ajoute des points de suspension si nécessaire */
}

.symbol5 {
    top: 40%;
    right: 20%;
    transform: rotate(5deg);
    font-size: clamp(60px, 10vw, 160px); /* Taille adaptative ajustée */
    max-width: 40vw; /* Limite la largeur */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.symbol6 {
    bottom: 20%;
    right: 25%;
    transform: rotate(-5deg);
    font-size: clamp(50px, 8vw, 110px); /* Taille adaptative réduite */
    max-width: 30vw; /* Limite la largeur */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Ajustements supplémentaires pour éviter les débordements */
.tech-symbol {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    max-width: 40vw; /* Limite commune pour tous les symboles */
    max-height: 40vh; /* Limite commune pour tous les symboles */
    overflow: hidden;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Amélioration des éléments géométriques */
.geo {
    max-width: min(150px, 25vw);
    max-height: min(150px, 25vh);
    overflow: hidden;
}

.cube {
    width: min(120px, 20vw);
    height: min(120px, 20vw);
    top: 15%;
    right: 10%;
}

.pyramid {
    border-left-width: min(60px, 10vw);
    border-right-width: min(60px, 10vw);
    border-bottom-width: min(120px, 20vw);
    bottom: 15%;
    left: 10%;
}

.sphere {
    width: min(100px, 15vw);
    height: min(100px, 15vw);
    top: 70%;
    right: 15%;
}

.torus {
    width: min(120px, 20vw);
    height: min(120px, 20vw);
    border-width: min(10px, 2vw);
    top: 40%;
    left: 15%;
}

/* Correction des orbes qui peuvent déborder */
.glow-orb {
    max-width: min(300px, 50vw);
    max-height: min(300px, 50vh);
    overflow: hidden;
}

.orb1 {
    width: min(250px, 40vw);
    height: min(250px, 40vh);
}

.orb2 {
    width: min(350px, 45vw);
    height: min(350px, 45vh);
}

.orb3 {
    width: min(200px, 35vw);
    height: min(200px, 35vh);
}

.orb4 {
    width: min(250px, 40vw);
    height: min(250px, 40vh);
}

/* Étoiles filantes - Ajustement pour éviter les débordements */
.shooting-star {
    max-width: min(80px, 15vw);
    overflow: hidden;
}

/* Conteneurs principaux - Garantir l'absence de débordement */
.full-page {
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.content {
    max-width: min(1200px, 92vw); /* Légèrement réduit pour garantir les marges */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Correction des conteneurs qui pourraient déborder */
.glass-container {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Réduire davantage les éléments d'arrière-plan sur mobile */
@media (max-width: 768px) {
    .tech-symbol {
        font-size: clamp(40px, 8vw, 90px);
        opacity: 0.04; /* Encore plus transparent sur mobile */
        max-width: 30vw;
        max-height: 30vh;
    }
    
    .geo, 
    .circle-decoration,
    .glow-orb {
        opacity: 0.02; /* Encore plus transparent sur mobile */
        transform: scale(0.6);
        max-width: 40vw;
        max-height: 40vh;
    }
    
    /* Désactiver certaines animations pour améliorer les performances */
    .shooting-star,
    .constellation-dot {
        display: none; /* Cacher les éléments moins essentiels sur mobile */
    }
    
    .circle-decoration {
        width: min(200px, 40vw);
        height: min(200px, 40vh);
    }
    
    /* Limiter la taille des symboles sur petits écrans */
    .symbol4, .symbol5, .symbol6 {
        font-size: clamp(40px, 7vw, 80px);
    }
}

/* Ajuster la position des éléments décoratifs pour qu'ils ne débordent pas */
@media (max-width: 480px) {
    .symbol1, .symbol4 {
        left: 2%;
    }
    
    .symbol2, .symbol5 {
        right: 2%;
    }
    
    .symbol3, .symbol6 {
        left: 5%;
        right: auto;
    }
    
    .circle1 {
        left: -15%;
        top: -15%;
    }
    
    .circle2 {
        right: -15%;
        bottom: -15%;
    }
}

/* Amélioration des symboles tech - Redimensionnement contrôlé */
.symbol4 {
    top: 75%;
    left: 15%;
    transform: rotate(-8deg);
    font-size: clamp(60px, 10vw, 120px); /* Taille adaptative réduite */
    max-width: 30vw; /* Limite la largeur */
    overflow: hidden; /* Empêche le débordement */
    white-space: nowrap; /* Évite les retours à la ligne */
    text-overflow: ellipsis; /* Ajoute des points de suspension si nécessaire */
}

.symbol5 {
    top: 40%;
    right: 20%;
    transform: rotate(5deg);
    font-size: clamp(60px, 10vw, 160px); /* Taille adaptative ajustée */
    max-width: 40vw; /* Limite la largeur */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.symbol6 {
    bottom: 20%;
    right: 25%;
    transform: rotate(-5deg);
    font-size: clamp(50px, 8vw, 110px); /* Taille adaptative réduite */
    max-width: 30vw; /* Limite la largeur */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Ajustements supplémentaires pour éviter les débordements */
.tech-symbol {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    max-width: 40vw; /* Limite commune pour tous les symboles */
    max-height: 40vh; /* Limite commune pour tous les symboles */
    overflow: hidden;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Amélioration des éléments géométriques */
.geo {
    max-width: min(150px, 25vw);
    max-height: min(150px, 25vh);
    overflow: hidden;
}

.cube {
    width: min(120px, 20vw);
    height: min(120px, 20vw);
    top: 15%;
    right: 10%;
}

.pyramid {
    border-left-width: min(60px, 10vw);
    border-right-width: min(60px, 10vw);
    border-bottom-width: min(120px, 20vw);
    bottom: 15%;
    left: 10%;
}

.sphere {
    width: min(100px, 15vw);
    height: min(100px, 15vw);
    top: 70%;
    right: 15%;
}

.torus {
    width: min(120px, 20vw);
    height: min(120px, 20vw);
    border-width: min(10px, 2vw);
    top: 40%;
    left: 15%;
}

/* Correction des orbes qui peuvent déborder */
.glow-orb {
    max-width: min(300px, 50vw);
    max-height: min(300px, 50vh);
    overflow: hidden;
}

.orb1 {
    width: min(250px, 40vw);
    height: min(250px, 40vh);
}

.orb2 {
    width: min(350px, 45vw);
    height: min(350px, 45vh);
}

.orb3 {
    width: min(200px, 35vw);
    height: min(200px, 35vh);
}

.orb4 {
    width: min(250px, 40vw);
    height: min(250px, 40vh);
}

/* Étoiles filantes - Ajustement pour éviter les débordements */
.shooting-star {
    max-width: min(80px, 15vw);
    overflow: hidden;
}

/* Conteneurs principaux - Garantir l'absence de débordement */
.full-page {
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.content {
    max-width: min(1200px, 92vw); /* Légèrement réduit pour garantir les marges */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Correction des conteneurs qui pourraient déborder */
.glass-container {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Réduire davantage les éléments d'arrière-plan sur mobile */
@media (max-width: 768px) {
    .tech-symbol {
        font-size: clamp(40px, 8vw, 90px);
        opacity: 0.04; /* Encore plus transparent sur mobile */
        max-width: 30vw;
        max-height: 30vh;
    }
    
    .geo, 
    .circle-decoration,
    .glow-orb {
        opacity: 0.02; /* Encore plus transparent sur mobile */
        transform: scale(0.6);
        max-width: 40vw;
        max-height: 40vh;
    }
    
    /* Désactiver certaines animations pour améliorer les performances */
    .shooting-star,
    .constellation-dot {
        display: none; /* Cacher les éléments moins essentiels sur mobile */
    }
    
    .circle-decoration {
        width: min(200px, 40vw);
        height: min(200px, 40vh);
    }
    
    /* Limiter la taille des symboles sur petits écrans */
    .symbol4, .symbol5, .symbol6 {
        font-size: clamp(40px, 7vw, 80px);
    }
}

/* Ajuster la position des éléments décoratifs pour qu'ils ne débordent pas */
@media (max-width: 480px) {
    .symbol1, .symbol4 {
        left: 2%;
    }
    
    .symbol2, .symbol5 {
        right: 2%;
    }
    
    .symbol3, .symbol6 {
        left: 5%;
        right: auto;
    }
    
    .circle1 {
        left: -15%;
        top: -15%;
    }
    
    .circle2 {
        right: -15%;
        bottom: -15%;
    }
}



