
        :root {

            --bg-body: #ffffff;
            --bg-surface: #f8f9fa;
            --bg-surface-2: #e9ecef;
            --text-main: #1a1a1a;
            --text-muted: #666666;
            --border-color: #ddd;
            --color-red: #D32F2F;
            --color-red-dark: #B71C1C;
            --color-gold: #C5A059;
            --nav-bg: rgba(255, 255, 255, 0.95);
            --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

            --recorder-bg: #f5f5f5;
        }

        [data-theme="dark"] {
            --bg-body: #0a0a0a;
            --bg-surface: #121212;
            --bg-surface-2: #1e1e1e;
            --text-main: #ffffff;
            --text-muted: #a0a0a0;
            --border-color: #333;
            --nav-bg: rgba(18, 18, 18, 0.9);
            --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

            --recorder-bg: #222;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        .nav-links a {
            font-family: 'Inter', sans-serif;
        }

        .nav-links .btn {
            padding: 0.5rem 1.25rem !important; /* §015a-L6b — aligné sur css/style.css (.btn-nav) */
            font-size: 0.95rem !important;      /* §015a-L6b — la réf. effective = .nav-links a (0.95rem, spécificité 0,1,1 > .btn-nav) */
            font-weight: 700 !important;        /* §015a-L6b — Contact uniforme avec les autres pages */
            line-height: 1.6;                   /* §015a-L6b — même hauteur que la référence (body 1.6), au lieu de « normal » */
            min-height: auto;
            white-space: nowrap;
            font-family: 'Inter', sans-serif;
        }

        .nav-links a.active {
            color: var(--color-red);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--color-red);
            transition: width 0.3s ease;
        }

        .nav-links a.active::after {
            width: 100%;
            background: black;
        }

        [data-theme="dark"] .nav-links a.active::after {
            background: white;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* §015a-L6b — .theme-toggle retiré de cette règle inline : le « cercle élégant »
                 vient désormais de css/style.css (uniforme avec les autres pages publiques). */
        .mobile-menu-btn {
            background: none;
            border: none;
            color: var(--text-main);
            cursor: pointer;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-btn {
            display: none;
            z-index: 1002;
            margin-left: 0.5rem;
        }

        @media (max-width: 960px) {
            nav {
                padding: 0.5rem 0;
            }

            .logo {
                font-size: 1.1rem;
                flex-direction: row;

                align-items: center;
                gap: 0.3rem;

                white-space: nowrap;

            }

            .mobile-menu-btn {
                display: block;
            }

            .nav-controls {
                margin-left: auto;
                gap: 0.2rem;

            }

            .nav-links {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--bg-surface-2);
                flex-direction: column;
                justify-content: center;
                gap: 2rem;
                transform: translateY(-100%);
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 1001;
                padding: 2rem;
                box-shadow: var(--shadow);
            }

            .nav-links.active {
                transform: translateY(0);
            }

            .nav-links a {
                font-size: 1.5rem;
                text-align: center;
                width: 100%;
            }

            .nav-links .btn {
                width: auto;
                margin-top: 1rem;
            }
        }

        @media (max-width: 380px) {
            .nav-controls {
                gap: 0.5rem;
            }

            .container {
                padding: 0 1rem;
            }
        }

        .recorder-section {
            display: flex;
            gap: 2rem;
            align-items: stretch;

            margin-bottom: 2rem;
            padding-bottom: 1rem;

        }

        .message-column {
            display: flex;
            flex-direction: column;
            flex: 1;

        }

        .message-column label {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 0.75rem;
        }

        .message-textarea {
            width: 100%;
            flex: 1;

            min-height: 200px;

            padding: 1.25rem;
            border: 2px solid rgba(211, 47, 47, 0.3);
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            line-height: 1.6;
            background: var(--bg-surface);
            color: var(--text-main);
            resize: none;
            transition: all 0.3s ease;
        }

        .message-textarea:focus {
            outline: none;
            border-color: var(--color-red);
            box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
        }

        #charCount {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        [data-theme="dark"] .message-textarea {
            border-color: rgba(255, 193, 7, 0.3);
        }

        [data-theme="dark"] .message-textarea:focus {
            border-color: var(--color-gold);
            box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
        }

        @media (max-width: 1024px) {
            .recorder-section {
                grid-template-columns: 1fr;
                gap: 2rem;
                align-items: stretch;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 9999px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1rem;
            position: relative;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
        }

        .form-container {

            max-width: 1400px;

            margin: 8rem auto 4rem auto;

            padding: 3rem;
            background: var(--bg-surface);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
            border: 2px solid transparent;

        }

        [data-theme="light"] .form-container {
            border: 2px solid var(--color-red);
        }

        [data-theme="dark"] .form-container {
            border: 2px solid var(--color-gold);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 0.5rem;

        }

        .form-row-inline {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        @media (max-width: 1200px) {
            .form-row-inline {
                grid-template-columns: 1fr 1fr;

            }
        }

        @media (max-width: 600px) {
            .form-row-inline {
                grid-template-columns: 1fr;

            }
        }

        .form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;

        }

        .form-header-text {
            flex: 1;
            text-align: left;
        }

        .form-header-text h1 {
            text-align: left;
            margin-bottom: 0.5rem;
        }

        .form-header-text .subtitle {
            text-align: left;
            margin-bottom: 0;
            display: none;

        }

        .subtitle-voice {
            text-align: left;
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-top: 0.5rem;
            font-weight: 400;
        }

        .form-header-logo {
            height: 80px;
            width: auto;
            margin-left: 2rem;
            display: block;
        }

        @media (max-width: 700px) {
            .form-header {
                flex-direction: column-reverse;
                text-align: center;
            }

            .form-header-text,
            .form-header-text h1,
            .form-header-text .subtitle {
                text-align: center;
            }

            .form-header-logo {
                margin: 0 auto 1.5rem auto;
            }
        }

        h1 {
            font-family: 'Outfit', sans-serif;
            color: var(--color-red);
            text-align: center;
            margin-bottom: 0.5rem;
        }

        p.subtitle {
            text-align: center;
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-main);
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        select {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-family: inherit;
            box-sizing: border-box;
            background: var(--bg-body);
            color: var(--text-main);
        }

        input[type="file"] {
            width: 100%;
            padding: 0.8rem;
            background: var(--bg-body);
            border: 1px dashed var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            color: var(--text-main);
        }

        .advice-box {
            background: var(--bg-surface-2);
            border-left: 4px solid var(--color-red);
            padding: 2rem;
            border-radius: 12px;
            margin-bottom: 2rem;
        }

        .advice-box h3 {
            color: var(--color-red);
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .advice-highlight {
            background: transparent;
            color: var(--color-gold);
            border: 2px solid var(--color-gold);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 700;
            margin-bottom: 1rem;
            margin-left: 1rem; /* §016-L5 : espacement depuis le titre (ex-style inline), remis a 0 en mobile */
            display: inline-block;
            font-size: 0.9em;
        }

        .advice-box p {
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .advice-box strong {
            color: var(--text-main);
            font-weight: 600;
        }

        .recorder-column {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .recorder-box {
            background: #1e1e1e;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            color: white;
            margin-bottom: 0;
            flex: 1;
        }

        .timer-display {
            font-family: 'Outfit', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            margin: 1rem 0;
            color: #fff;
            letter-spacing: 2px;
        }

        .timer-display.recording {
            color: var(--color-red);
            animation: pulse 1s infinite;
        }

        .recording-status {
            font-size: 0.9rem;
            color: #aaa;
            margin-bottom: 1rem;
            min-height: 20px;
        }

        canvas.visualizer {
            width: 100%;
            height: 60px;
            background-color: #1e1e1e;
            border-radius: 4px;
            margin-bottom: 1rem;
        }

        .btn-record {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            margin: 0 10px;
        }

        .btn-start {
            background: var(--color-red);
            color: white;
            box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.3);
        }

        .btn-stop {
            background: #444;
            color: white;
        }

        .btn-start:hover {
            transform: scale(1.1);
        }

        audio {
            width: 100%;
            margin-top: 1rem;

        }

        .form-actions {
            margin-top: 2rem;
            margin-bottom: 2rem;
        }

        .btn-submit {
            background: linear-gradient(135deg, #D32F2F, #B71C1C);
            color: white;
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;
            opacity: 1;
            pointer-events: all;
            transition: 0.3s;
        }

        .btn-submit.ready {
            opacity: 1;
            pointer-events: all;
        }

        .upload-progress-container {
            display: none;
            margin-top: 1rem;
            background: var(--bg-surface-2);
            border-radius: 10px;
            overflow: hidden;
            height: 28px;
            position: relative;
        }

        .upload-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #D32F2F, #FF5722, #4CAF50);
            background-size: 200% 100%;
            border-radius: 10px;
            transition: width 0.3s ease;
            width: 0%;
        }

        .upload-progress-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.8rem;
            font-weight: 700;
            color: #fff;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
            white-space: nowrap;
        }

        .back-link {
            display: block;
            text-align: center;
            margin-top: 2rem;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .back-link:hover {
            color: var(--color-red);
        }

        @keyframes pulse {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.8;
            }

            100% {
                opacity: 1;
            }
        }

        footer {
            padding: 1rem 0;
            background: black;
            color: #666;
            text-align: center;
            font-size: 0.9rem;
            margin-top: 4rem;
        }

        .footer-container {
            position: relative;
        }

        .logo-footer {
            height: 192px;
            width: auto;
            margin-bottom: 2rem;
            transition: transform 0.3s ease;
        }

        .logo-footer:hover {
            transform: scale(1.05);

        }

        @media (max-width: 768px) {
            .logo-footer {
                height: 80px;
                width: auto;
            }
        }

        .social-links {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 1.5rem;
        }

        .social-links svg {
            width: 36px;
            height: 36px;
            stroke-width: 1.5;
        }

        .social-links a {
            color: var(--text-muted);
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
        }

        .social-links a:hover {
            color: var(--color-gold);
        }

        @media (max-width: 768px) {
            .social-links {
                position: static;
                justify-content: center;
                margin-top: 1.5rem;
                transform: none;
            }

            .logo-footer {
                height: 80px;
                width: auto;
            }
        }

        @media (max-width: 768px) {

            .form-row {
                grid-template-columns: 1fr !important;
                gap: 1.5rem;
            }

            .form-container {
                padding: 1.5rem;

                margin-top: 6rem;

                width: 100%;
                border-radius: 0;

                border-left: none;
                border-right: none;
            }

            .recorder-section {
                flex-direction: column;
                gap: 2rem;
            }

            .message-textarea {
                min-height: 150px;

            }

            .recorder-status-container {
                flex-direction: column !important;
                gap: 0.5rem !important;
                text-align: center;
            }

            #statusText {
                text-align: center !important;
                max-width: 100% !important;
            }

            .advice-box {
                padding: 1.5rem;
            }

            .advice-highlight {
                margin-left: 0; /* §016-L5 : aligne l'encart a gauche en mobile */
            }

            .form-header {
                flex-direction: column-reverse;
                text-align: center;
            }

            .form-header-logo {
                margin: 0 auto 1.5rem auto;
                height: 60px;
            }

            .form-header-text h1 {
                text-align: center;
                font-size: 1.8rem;
            }

            .subtitle-voice {
                text-align: center;
            }
        }
