        html {
            height: 100%;
        }
        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            margin: 0;
            background: linear-gradient(to bottom right, white, #EBF2FF);
            background-attachment: fixed;
            background-size: cover;
            background-repeat: no-repeat;
        }
        nav {
            flex-shrink: 0;
        }
        main {
            flex-grow: 1;
            padding-bottom: 3rem;
            position: relative;
            z-index: 1;
            overflow-x: hidden; /* Empêche le défilement horizontal */
            min-height: auto !important;
            height: auto !important;
        }
        footer {
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }
        .form-select {
            transition: all 0.2s ease;
            background-position: right 0.75rem center;
        }
        .form-select:focus {
            border-color: #2C75FF;
            box-shadow: 0 0 0 3px rgba(44, 117, 255, 0.2);
        }
        .form-label {
            transition: color 0.2s ease;
        }
        .form-group:focus-within .form-label {
            color: #2C75FF;
        }
        .btn-float {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            will-change: transform, box-shadow;
        }
        .btn-float:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(44, 117, 255, 0.2);
        }
        .form-step {
            transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), 
                       opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateX(100%);
            pointer-events: none;
            visibility: hidden;
            will-change: transform, opacity;
            backface-visibility: hidden;
            transform-style: preserve-3d;
        }
        .form-step.active {
            z-index: 10;
            transform: translateX(0);
            pointer-events: auto;
            visibility: visible;
            opacity: 1;
        }
        .form-step.active#etape-3 {
            position: relative;
            height: auto;
            min-height: 1000px;
        }
        .form-step.previous {
            transform: translateX(-15%);
            z-index: 5;
            visibility: visible;
            opacity: 0.01;
        }
        .form-step.exit-right {
            transform: translateX(100%);
            z-index: 15;
            visibility: visible;
            opacity: 1;
        }
        .form-container {
            position: relative;
            min-height: 500px;
            overflow: hidden;
            margin-bottom: 0;
            perspective: 1000px;
        }
        /* Styles pour le conteneur du PDF lorsqu'il est visible */
        .form-container.showing-pdf {
            height: auto;
            overflow: visible;
            transition: height 0.3s ease-out;
        }
        .form-step.active.showing-pdf {
            position: relative;
            height: auto;
        }
        /* Style spécifique pour l'étape 3 avec le PDF */
        .form-container .form-step#etape-3.active {
            height: auto;
            min-height: 1000px;
            position: relative;
            overflow: visible;
        }
        #etape-3 .pdf-viewer-container {
            margin-bottom: 20px;
            height: auto;
        }
        #plan-container.active {
            position: relative;
            z-index: 20;
            opacity: 0;
            animation: fadeIn 0.3s ease-out forwards;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        /* Style pour la navigation */
        .nav-container {
            position: relative;
            z-index: 30; /* Plus élevé que tous les autres éléments */
            margin-top: 20px; /* Marge fixe de 20px par rapport à la carte */
            transition: transform 0.3s ease-out;
        }
        /* Styles pour uniformiser la taille des cartes */
        .bg-white.rounded-xl {
            min-height: 500px;
            transition: box-shadow 0.3s ease; /* Peut être retiré si plus d'effet de hover souhaité */
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Ombre prononcée appliquée par défaut */
        }
        /* La règle :hover ci-dessous est maintenant redondante ou peut être supprimée
        .bg-white.rounded-xl:hover {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        }
        */
        #etape-3 .bg-white.rounded-xl {
            min-height: 1000px;
            display: flex;
            flex-direction: column;
        }
        #etape-1 .grid, #etape-2 .grid, #etape-3 .grid {
            flex-grow: 1;
        }
        /* Optimisations pour les plans additionnels */
        .additional-plan-image-container {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        }
        .additional-plan-image-container.hidden {
            display: block !important;
            max-height: 0;
        }
        .additional-plan-image-container:not(.hidden) {
            max-height: 800px;
        }
        /* Animation pour l'indicateur d'étape */
        #etape-indicator {
            display: inline-block;
            transition: color 0.3s ease, transform 0.3s ease;
        }
        #etape-indicator.updating {
            transform: translateY(-5px);
            opacity: 0;
        }
        /* Style pour les plans additionnels */
        #additional-plans-container {
            margin-top: 2rem;
        }
        #additional-plans-container > div {
            margin-top: 1.5rem;
            transition: box-shadow 0.3s ease;
            background-color: transparent;
            border-top: 1px solid #e5e7eb;
            border-radius: 0;
            border-left: 0;
            border-right: 0;
            border-bottom: 0;
            padding-top: 1.5rem;
            box-shadow: none;
            overflow: visible;
            position: relative;
        }
        /* Améliorer la visibilité de la séparation entre les plans */
        #additional-plans-container > div:not(:last-child) {
            margin-bottom: 1.5rem;
        }
        /* Assurer une cohérence visuelle entre les plans */
        #additional-plans-container .show-additional-plan-btn,
        #additional-plans-container .add-plan-btn {
            display: inline-flex;
            align-items: center;
        }
        /* Style pour le plan principal */
        #plan-container {
            background-color: transparent;
        }
        
        /* Correction pour les listes déroulantes des plans supplémentaires */
        #additional-plans-container select {
            position: relative;
            z-index: 10;
        }
        
        /* Assurer que les popups des selects restent au-dessus de tout */
        select.form-select {
            position: relative;
            z-index: 5;
        }
        select.form-select:focus {
            z-index: 50;
        }
        
        /* STYLES NETTOYÉS POUR LE PDF VIEWER - DÉBUT */
        /* Styles simplifiés pour le PDF viewer */
        #pdf-viewer {
            height: auto !important;
            min-height: 1000px;
        }
        
        /* Style unique pour le conteneur PDF */
        .pdf-container {
            position: relative;
            width: 100%;
            background-color: #525659;
            min-height: 800px;
            overflow: auto;
        }
        
        /* Style unique pour la barre d'outils PDF */
        .pdf-toolbar {
            background-color: white;
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            gap: 0.5rem;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        /* Style pour la navigation entre pages */
        .pdf-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin: 0.5rem 0;
        }
        
        /* Style pour les boutons de navigation */
        .pdf-navigation button {
            padding: 6px 12px;
            background-color: white;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .pdf-navigation button:hover {
            background-color: #f9fafb;
        }
        
        .pdf-navigation button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* Style pour l'affichage de la page courante */
        .pdf-navigation input[type="number"] {
            width: 50px;
            padding: 4px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            text-align: center;
        }
        
        #edit-layer {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            pointer-events: all;
        }
        
        /* STYLES NETTOYÉS POUR LE PDF VIEWER - FIN */
        
        /* Styles pour le message d'erreur */
        #error-message {
            transition: all 0.3s ease;
            max-height: 0;
            overflow: hidden;
        }
        
        #error-message:not(.hidden) {
            max-height: 50px;
            margin-bottom: 1rem;
        }
        
        /* Styles pour le conteneur de plan */
        #plan-container {
            overflow: hidden;
            transition: opacity 0.4s ease, max-height 0.6s ease;
        }

        #plan-container.hidden {
            display: none;
        }

        #plan-wrapper {
            position: relative;
            width: 100%;
            height: 500px;
        }

        #plan-content {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #plan-content img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
        }

        /* Styles for additional plan wrappers and content to match main plan */
        [id^="additional-plan-wrapper-"] {
            position: relative;
            width: 100%;
            height: 500px;
        }

        [id^="additional-plan-content-"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        [id^="additional-plan-content-"] img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
        }

        /* Animation pour le bouton */
        #showPlanBtn {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        #showPlanBtn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(44, 117, 255, 0.3);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%, -50%);
            transform-origin: 50% 50%;
        }

        #showPlanBtn:hover::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        } 