/* Variables CSS */
:root {
    --main-text-color: #d6d0c2;
    --main-text-color-50: rgba(214, 208, 194, 0.5);
    --background-color-1: #2A3336;
    --background-color-2: #9D7857;
    --background-color-3: #3D4B4B;
    --bubble-bg: rgba(233, 243, 240, 0.6);
    --bubble-text: #2A3336;
    --border-light: rgba(228, 225, 218, 0.3);
    --accent-green: #d6d0c2;
    --gray-soft: #6C767A;
}

/* Animation de fond (conservée) */
@keyframes backgroundAnimation {
    0% {
        background-color: var(--background-color-1);
    }
    33% {
        background-color: var(--background-color-2);
    }
    66% {
        background-color: var(--background-color-3);
    }
    100% {
        background-color: var(--background-color-1);
    }
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    animation: backgroundAnimation 200s ease infinite;
    animation-delay: 5s;
    background-color: var(--background-color-1);
    color: var(--main-text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / AppBar */
.appbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    /* Synchroniser l'animation de fond avec la page */
    animation: backgroundAnimation 200s ease infinite;
    animation-delay: 5s;
    background-color: var(--background-color-1);
}

.appbar-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-container a:hover {
    opacity: 0.8;
}

.logo-svg {
    height: 100px;
    width: auto;
    display: block;
    vertical-align: middle;
}

/* Burger menu */
.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

.burger-menu:hover {
    opacity: 0.8;
}

.burger-menu:focus {
    outline: 2px solid var(--main-text-color);
    outline-offset: 2px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--main-text-color);
    transition: all 0.3s;
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu latéral */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--background-color-1);
    animation: backgroundAnimation 200s ease infinite;
    animation-delay: 5s;
    backdrop-filter: blur(10px);
    z-index: 200;
    transition: right 0.3s ease;
    padding: 40px 0 20px;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.close-menu {
    background: none;
    border: none;
    color: var(--main-text-color);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: opacity 0.2s;
}

.close-menu:hover {
    opacity: 0.8;
}

.close-menu:focus {
    outline: 2px solid var(--main-text-color);
    outline-offset: 2px;
}

.menu-links {
    list-style: none;
    padding: 0;
}

.menu-links li {
    margin: 0;
}

.menu-link {
    display: block;
    padding: 16px 20px;
    color: var(--main-text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.menu-link:hover,
.menu-link:focus {
    background-color: rgba(214, 208, 194, 0.1);
    border-left-color: var(--accent-green);
    outline: none;
}

.menu-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.menu-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 0 0 20px 0;
}

.menu-footer-link {
    display: block;
    padding: 12px 20px;
    color: var(--main-text-color-50);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.menu-footer-link:hover,
.menu-footer-link:focus {
    color: var(--main-text-color);
    text-decoration: underline;
    outline: none;
}

.menu-footer-copyright {
    padding: 12px 20px 0;
    color: var(--main-text-color-50);
    font-size: 14px;
    margin: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Zone de conversation */
.conversation-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

/* Bulles de message */
.message {
    display: flex;
    max-width: 75%;
    animation: messageSlideIn 0.3s ease;
    position: relative;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    background-color: var(--bubble-bg);
    color: var(--bubble-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Queue de bulle pour bot (gauche) */
.message.bot .message-bubble::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 12px 8px;
    border-color: transparent transparent transparent var(--bubble-bg);
}

.message.bot .message-bubble {
    border-bottom-left-radius: 0;
}

/* Queue de bulle pour user (droite) */
.message.user .message-bubble::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 12px 0;
    border-color: transparent var(--bubble-bg) transparent transparent;
}

.message.user .message-bubble {
    border-bottom-right-radius: 0;
}

.message-bubble p {
    margin: 0 0 8px 0;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

/* Styles spécifiques pour les liens email et téléphone dans les messages */
.message-bubble a.protected-email,
.message-bubble a.protected-phone {
    color: #256b5a;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.message-bubble a.protected-email:hover,
.message-bubble a.protected-phone:hover {
    opacity: 0.8;
}

.message-bubble a.protected-email:focus,
.message-bubble a.protected-phone:focus {
    outline: 2px solid #256b5a;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Styles pour les ancres de conversation */
.message-bubble a.conversation-anchor {
    color: #256b5a;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
}

.message-bubble a.conversation-anchor:hover {
    opacity: 0.8;
}

.message-bubble a.conversation-anchor:focus {
    outline: 2px solid #256b5a;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Indicateur de frappe dans la bulle */
.typing-bubble .typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-bubble .typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--bubble-text);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
    opacity: 0.4;
}

.typing-bubble .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-bubble .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* CTA dans les bulles */
.cta-container {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #256b5a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
}

.cta-button:hover {
    background-color: white;
    color: #256b5a;
    transform: translateY(-1px);
}

.cta-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Zone de saisie */
.input-container {
    position: sticky;
    bottom: 60px;
    display: flex;
    gap: 8px;
    padding: 7px 12px;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    margin-top: 20px;
    margin-bottom: 0;
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    flex-shrink: 0;
    transition: opacity 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    pointer-events: none;
    background-color: transparent;
}

/* État visible du prompt (sans animation) */
.input-container.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Animation d'apparition uniquement pour le premier prompt */
.input-container.first-appear {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Le fond devient transparent après l'animation */
.input-container.first-appear.visible {
    background-color: transparent;
}

/* Animation pour mettre en avant le prompt pendant l'écriture */
.input-container.typing-active {
    transform: translateY(-2px) scale(1.02);
    animation: promptPulse 0.6s ease-in-out;
    background-color: transparent;
}

@keyframes promptPulse {
    0%, 100% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1);
    }
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--main-text-color);
    font-size: 16px;
    padding: 8px 12px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--main-text-color-50);
}

.chat-input:focus {
    outline: none;
}

.chat-input:disabled,
.chat-input[readonly] {
    opacity: 1;
    cursor: default;
    /* background-color: rgba(255, 255, 255, 0.05); */
}

.send-btn {
    /* background: var(--accent-green); */
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    /* background-color: #256b5a; */
    transform: scale(1.05);
}

.send-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sections classiques */
.content-section {
    min-height: 60vh;
    padding: 80px 20px;
    max-width: 860px;
    margin: 0 auto;
    scroll-margin-top: 80px;
}

.section-content {
    padding: 40px;
    background: rgba(42, 51, 54, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.section-content h2 {
    color: var(--main-text-color);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-content p {
    color: var(--main-text-color);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Modal vidéo fullscreen */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-video-bg {
    width: 100%;
    max-height: 100vh;
    object-fit: contain;
    background: #000;
}

/* Masquer tous les contrôles vidéo natifs - commenté pour activer contrôles natifs */
/* .demo-video-bg::-webkit-media-controls {
    display: none !important;
}

.demo-video-bg::-webkit-media-controls-enclosure {
    display: none !important;
}

.demo-video-bg::-webkit-media-controls-panel {
    display: none !important;
}

.demo-video-bg::-webkit-media-controls-play-button {
    display: none !important;
}

.demo-video-bg::-webkit-media-controls-start-playback-button {
    display: none !important;
} */

/* Bouton fermer */
.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-modal-close:active {
    transform: scale(0.95);
}

/* Bouton pause/play - commenté car utilisation contrôles natifs */
/* .video-modal-play-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s, transform 0.2s, background 0.2s;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
} */

/* Bouton play toujours visible quand la vidéo est en pause - commenté */
/* .video-modal-play-pause:not(.playing) {
    opacity: 1;
    pointer-events: auto;
} */

/* Bouton pause visible au hover sur le container quand la vidéo est en lecture - commenté */
/* .video-modal-container:hover .video-modal-play-pause.playing {
    opacity: 1;
    pointer-events: auto;
} */

/* Bouton pause caché par défaut quand la vidéo est en lecture (sans hover) - commenté */
/* .video-modal-container:not(:hover) .video-modal-play-pause.playing {
    opacity: 0;
    pointer-events: none;
} */

/* .video-modal-play-pause:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
} */

/* .video-modal-play-pause:active {
    transform: translate(-50%, -50%) scale(0.95);
} */

/* .video-modal-play-pause .play-icon,
.video-modal-play-pause .pause-icon {
    width: 48px;
    height: 48px;
} */

/* Décaler l'icône play de 10px vers la droite pour un meilleur centrage visuel */
/* .video-modal-play-pause .play-icon {
    transform: translateX(5px);
} */

/* .video-modal-play-pause.playing .play-icon {
    display: none;
} */

/* .video-modal-play-pause.playing .pause-icon {
    display: block;
} */

/* .video-modal-play-pause:not(.playing) .play-icon {
    display: block;
} */

/* .video-modal-play-pause:not(.playing) .pause-icon {
    display: none;
} */

/* @media (max-width: 1200px) {
    .video-modal-play-pause {
        width: 64px;
        height: 64px;
    }
    
    .video-modal-play-pause .play-icon,
    .video-modal-play-pause .pause-icon {
        width: 36px;
        height: 36px;
    }
} */

/* Overlay faux chat sur la vidéo */
.video-chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none; /* Chat dynamique désactivé */
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    z-index: 100;
    padding: 20px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.video-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80%;
    overflow-y: auto;
    pointer-events: auto;
    padding-right: 10px;
    align-items: flex-end;
    width: 100%;
    max-width: 60%;
    /* transform: scale(2); */
    transform-origin: right center;
    justify-content: flex-start;
    /* Masquer la scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

/* Masquer la scrollbar pour WebKit (Chrome, Safari, etc.) */
.video-chat-messages::-webkit-scrollbar {
    display: none;
}

.video-chat-message {
    display: flex;
    max-width: 70%;
    animation: messageSlideIn 0.3s ease;
    align-self: flex-end;
    margin-left: auto;
}

.video-chat-message-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.video-chat-message.bot .video-chat-message-bubble {
    background: rgba(233, 243, 240, 0.95);
    color: var(--bubble-text);
}

.video-chat-message.user .video-chat-message-bubble {
    background: rgba(47, 125, 107, 0.95);
    color: white;
}

/* Modal formulaire pilote */
.pilote-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pilote-modal.active {
    opacity: 1;
    visibility: visible;
}

.pilote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.pilote-modal-content {
    position: relative;
    background: var(--background-color-1);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

.pilote-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--main-text-color);
    transition: background 0.2s, transform 0.2s;
}

.pilote-modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.pilote-form-header {
    margin-bottom: 24px;
    text-align: center;
}

.pilote-form-header h2 {
    color: var(--main-text-color);
    font-size: 24px;
    margin-bottom: 12px;
}

.pilote-form-header p {
    color: var(--main-text-color-50);
    font-size: 16px;
    line-height: 1.5;
}

.pilote-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--main-text-color);
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--main-text-color);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder {
    color: var(--main-text-color-50);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--main-text-color);
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-green);
    flex-shrink: 0;
}

.form-actions {
    margin-top: 8px;
}

.pilote-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-green);
    color: var(--bubble-text);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-family: inherit;
}

.pilote-submit-btn:hover:not(:disabled) {
    background-color: #256b5a;
    transform: translateY(-1px);
}

.pilote-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pilote-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
}

.form-message.success {
    background: rgba(47, 125, 107, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.contact-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: #256b5a;
}

.contact-btn.secondary {
    background-color: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.contact-btn.secondary:hover {
    background-color: var(--accent-green);
    color: white;
}

/* Footer */
.footer {
    position: sticky;
    bottom: 0;
    padding: 20px;
    text-align: right;
    color: var(--main-text-color-50);
    font-size: 14px;
    z-index: 5;
    margin-top: auto;
}

.footer-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: 0;
}

.footer a {
    color: var(--main-text-color-50);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer a:hover,
.footer a:focus {
    color: var(--main-text-color);
    text-decoration: underline;
    outline: none;
}

/* Responsive */
@media (max-width: 1200px) {

    .logo-svg {
        height: 60px;
    }

    .conversation-container {
        padding-top: 130px;
        padding-left: 30px !important;
        padding-right: 25px !important;
        padding-bottom: 0px !important;
    }

    .input-container {
        /* max-width: 90%; */
        padding: 10px;
        bottom: 0px !important;
    }

    .appbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 8px 20px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        /* L'animation est déjà héritée de .appbar, donc synchronisée */
        /* mask-image: linear-gradient(to bottom, 
            transparent 0%, 
            black 8%, 
            black 92%, 
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(to bottom, 
            transparent 0%, 
            black 8%, 
            black 92%, 
            transparent 100%
        ); */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .video-chat-overlay {
        justify-content: flex-end;
        align-items: center;
    }

    .video-chat-messages {
        gap: 6px;
        max-height: 30vh;
        transform: scale(1);
        max-width: 90%;
        align-items: flex-end;
        padding-bottom: 150px;
    }

    .video-chat-message {
        max-width: 100%;
    }

    .video-chat-message-bubble {
        padding: 8px 12px;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .footer {
        display: none;
    }

    .side-menu {
        display: flex;
        flex-direction: column;
    }

    .conversation-container {
        padding-top: 130px;
    }

    .input-container {
        bottom: 20px;
    }

    /* Désactiver l'animation de fond en mobile */
    html, body {
        animation: none;
        background-color: var(--background-color-1);
    }

    .appbar {
        animation: none;
        background-color: var(--background-color-1);
    }

    .side-menu {
        animation: none;
        background-color: var(--background-color-1);
    }
}

@media (min-width: 1201px) {
    .menu-footer {
        display: none;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}
